mirror of https://github.com/tiangolo/fastapi.git
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:
parent
61ffa3eb82
commit
b8a617d62f
|
|
@ -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"],
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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"},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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"],
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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
Loading…
Reference in New Issue