fix: match output of HTTPValidationError as per Pydantic v2

Fixes https://github.com/tiangolo/fastapi/issues/10787
This commit is contained in:
Irfanuddin Shafi Ahmed 2023-12-18 23:59:43 +05:30
parent 36c2667768
commit 74c35d4004
No known key found for this signature in database
GPG Key ID: EDDB7CBA28F0477C
1 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,8 @@ validation_error_definition = {
"type": "array",
"items": {"anyOf": [{"type": "string"}, {"type": "integer"}]},
},
"input": {"title": "Input", "type": "any"},
"url": {"title": "URL", "type": "string"},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
},