Update ValidationError schema for Pydantic V2 compatibility

Add input, ctx, and url fields to the ValidationError OpenAPI definition
to accurately reflect the actual error structure returned by Pydantic V2.

Pydantic V2 validation errors include additional fields:
- input: The value that failed validation
- ctx: Additional context about the error (optional)
- url: Documentation URL for the error type (optional)

Fixes #10787
This commit is contained in:
majiayu000 2025-12-14 17:02:12 +08:00
parent 61ffa3eb82
commit b8a617d62f
138 changed files with 453 additions and 0 deletions

View File

@ -50,6 +50,9 @@ validation_error_definition = {
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"required": ["loc", "msg", "type"],
}

View File

@ -91,6 +91,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -123,6 +123,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -145,6 +145,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -66,6 +66,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -305,6 +305,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -1269,6 +1269,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -1111,6 +1111,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -239,6 +239,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -49,6 +49,9 @@ expected_schema = {
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"required": ["loc", "msg", "type"],
"title": "ValidationError",

View File

@ -352,6 +352,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -123,6 +123,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -177,6 +177,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -89,6 +89,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -223,6 +223,9 @@ def test_top_level_generate_unique_id():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}
@ -424,6 +427,9 @@ def test_router_overrides_generate_unique_id():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}
@ -625,6 +631,9 @@ def test_router_include_overrides_generate_unique_id():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}
@ -899,6 +908,9 @@ def test_subrouter_top_level_include_overrides_generate_unique_id():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}
@ -1103,6 +1115,9 @@ def test_router_path_operation_overrides_generate_unique_id():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}
@ -1311,6 +1326,9 @@ def test_app_path_operation_overrides_generate_unique_id():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}
@ -1597,6 +1615,9 @@ def test_callback_override_generate_unique_id():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -81,6 +81,9 @@ openapi_schema = {
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"required": ["loc", "msg", "type"],
"title": "ValidationError",

View File

@ -100,6 +100,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -7290,6 +7290,9 @@ def test_openapi():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -350,6 +350,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -131,6 +131,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -221,6 +221,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -118,6 +118,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -192,6 +192,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -461,6 +461,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -130,6 +130,9 @@ def test_openapi():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -438,6 +438,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],
@ -670,6 +673,9 @@ def test_openapi_schema_no_separate():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -86,6 +86,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -151,6 +151,9 @@ openapi_schema = {
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -78,6 +78,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -464,6 +464,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -690,6 +690,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -1488,6 +1488,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -831,6 +831,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],
@ -1042,6 +1045,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -755,6 +755,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -170,6 +170,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -153,6 +153,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -42,6 +42,9 @@ schema = {
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"required": ["loc", "msg", "type"],
"title": "ValidationError",

View File

@ -50,6 +50,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"required": ["loc", "msg", "type"],
"title": "ValidationError",

View File

@ -90,6 +90,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -170,6 +170,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -959,6 +959,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -300,6 +300,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -303,6 +303,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -304,6 +304,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -184,6 +184,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -305,6 +305,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -303,6 +303,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -98,6 +98,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -122,6 +122,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -102,6 +102,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -125,6 +125,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -719,6 +719,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -471,6 +471,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -198,6 +198,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -201,6 +201,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -268,6 +268,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -115,6 +115,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -170,6 +170,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {
@ -304,6 +307,9 @@ def test_openapi_schema_pv1(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -194,6 +194,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -232,6 +232,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -109,6 +109,9 @@ def test_openapi_schema(mod: ModuleType):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -155,6 +155,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -197,6 +197,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}
@ -331,6 +334,9 @@ def test_openapi_schema_pv1(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -182,6 +182,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -161,6 +161,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -147,6 +147,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -259,6 +259,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -72,6 +72,9 @@ def test_openapi_schema(app: FastAPI):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -85,6 +85,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -175,6 +175,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -131,6 +131,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -180,6 +180,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -72,6 +72,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -72,6 +72,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -73,6 +73,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -78,6 +78,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -117,6 +117,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -100,6 +100,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -227,6 +227,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -238,6 +238,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -274,6 +274,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -100,6 +100,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -112,6 +112,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -124,6 +124,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -214,6 +214,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -107,6 +107,9 @@ def test_openapi_schema():
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -120,6 +120,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {
@ -217,6 +220,9 @@ def test_openapi_schema_pv1(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -119,6 +119,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {
@ -216,6 +219,9 @@ def test_openapi_schema_pv1(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -73,6 +73,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -136,6 +136,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
}

View File

@ -129,6 +129,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -143,6 +143,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -142,6 +142,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -249,6 +249,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -271,6 +271,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"type": "string", "title": "Message"},
"type": {"type": "string", "title": "Error Type"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
"type": "object",
"required": ["loc", "msg", "type"],

View File

@ -100,6 +100,9 @@ def test_openapi_schema():
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -167,6 +167,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -165,6 +165,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -111,6 +111,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

View File

@ -97,6 +97,9 @@ def test_openapi_schema(client: TestClient):
},
"msg": {"title": "Message", "type": "string"},
"type": {"title": "Error Type", "type": "string"},
"input": {"title": "Input"},
"ctx": {"title": "Context", "type": "object"},
"url": {"title": "Error URL", "type": "string", "format": "uri"},
},
},
"HTTPValidationError": {

Some files were not shown because too many files have changed in this diff Show More