- Sort Score
- Num 10 results
- Language All
Results 31 - 40 of 611 for Schemas (0.18 seconds)
-
tests/test_tutorial/test_body_nested_models/test_tutorial004.py
"requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Item", } } }, "required": True,
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 9.5K bytes - Click Count (0) -
docs/zh/docs/advanced/additional-responses.md
* 一个媒体类型作为键,例如 `application/json`,它的值是另一个 JSON 对象,该对象包含: * 一个键 `schema`,它的值是来自该模型的 JSON Schema,这里就是正确的位置。 * **FastAPI** 会在这里添加一个引用,指向你 OpenAPI 中另一个位置的全局 JSON Schemas,而不是直接内联。这样,其他应用和客户端可以直接使用这些 JSON Schemas,提供更好的代码生成工具等。 /// 为该*路径操作*在 OpenAPI 中生成的响应将是: ```JSON hl_lines="3-12" { "responses": { "404": { "description": "Additional Response", "content": {Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 8.7K bytes - Click Count (0) -
tests/test_schema_ref_pydantic_v2.py
"content": { "application/json": { "schema": { "$ref": "#/components/schemas/ModelWithRef" } } }, }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.1K bytes - Click Count (0) -
tests/test_starlette_exception.py
"schema": {"title": "Item Id", "type": "string"}, "name": "item_id", "in": "path", } ], } }, }, "components": { "schemas": { "ValidationError": {Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 8.1K bytes - Click Count (0) -
tests/test_regex_deprecated_params.py
} }, "components": { "schemas": { "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "type": "array",Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 5.1K bytes - Click Count (0) -
tests/test_request_body_parameters_media_type.py
"components": { "schemas": { "Body_create_product_products_post": { "title": "Body_create_product_products_post", "required": ["data"], "type": "object", "properties": { "data": {"$ref": "#/components/schemas/Product"} },
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 7.2K bytes - Click Count (0) -
tests/test_response_model_as_return_annotation.py
"description": "Successful Response", "content": { "application/json": { "schema": {"$ref": "#/components/schemas/User"} } }, } }, } },
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 50.3K bytes - Click Count (0) -
tests/test_request_params/test_body/test_required_str.py
["/required-str", "/model-required-str"], ) def test_required_str_schema(path: str): openapi = app.openapi() body_model_name = get_body_model_name(openapi, path) assert app.openapi()["components"]["schemas"][body_model_name] == { "properties": { "p": {"title": "P", "type": "string"}, }, "required": ["p"], "title": body_model_name, "type": "object", }
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 10.9K bytes - Click Count (0) -
tests/test_request_params/test_file/test_optional_list.py
"/optional-list-uploadfile", ], ) def test_optional_list_schema(path: str): openapi = app.openapi() body_model_name = get_body_model_name(openapi, path) assert app.openapi()["components"]["schemas"][body_model_name] == { "properties": { "p": { "anyOf": [ { "type": "array", "items": {Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 10.8K bytes - Click Count (0) -
tests/test_extra_routes.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 14.7K bytes - Click Count (0)