mirror of https://github.com/tiangolo/fastapi.git
fix: match output of HTTPValidationError as per Pydantic v2
Fixes https://github.com/tiangolo/fastapi/issues/10787
This commit is contained in:
parent
36c2667768
commit
74c35d4004
|
|
@ -42,6 +42,8 @@ validation_error_definition = {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
|
"items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
|
||||||
},
|
},
|
||||||
|
"input": {"title": "Input", "type": "any"},
|
||||||
|
"url": {"title": "URL", "type": "string"},
|
||||||
"msg": {"title": "Message", "type": "string"},
|
"msg": {"title": "Message", "type": "string"},
|
||||||
"type": {"title": "Error Type", "type": "string"},
|
"type": {"title": "Error Type", "type": "string"},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue