test_openapi_schema_no_separate() — fastapi Function Reference
Architecture documentation for the test_openapi_schema_no_separate() function in test_openapi_separate_input_output_schemas.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD a1e0676e_5a61_22e4_c21f_b0df96184338["test_openapi_schema_no_separate()"] 97adeb06_a3f2_aa0f_0da8_64acee359394["test_openapi_separate_input_output_schemas.py"] a1e0676e_5a61_22e4_c21f_b0df96184338 -->|defined in| 97adeb06_a3f2_aa0f_0da8_64acee359394 c660ea81_fb98_0581_a314_dc8cb8b042bf["get_app_client()"] a1e0676e_5a61_22e4_c21f_b0df96184338 -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf style a1e0676e_5a61_22e4_c21f_b0df96184338 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_openapi_separate_input_output_schemas.py lines 443–678
def test_openapi_schema_no_separate():
client = get_app_client(separate_input_output_schemas=False)
response = client.get("/openapi.json")
assert response.status_code == 200, response.text
assert response.json() == snapshot(
{
"openapi": "3.1.0",
"info": {"title": "FastAPI", "version": "0.1.0"},
"paths": {
"/items/": {
"get": {
"summary": "Read Items",
"operationId": "read_items_items__get",
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"items": {
"$ref": "#/components/schemas/Item"
},
"type": "array",
"title": "Response Read Items Items Get",
}
}
},
}
},
},
"post": {
"summary": "Create Item",
"operationId": "create_item_items__post",
"requestBody": {
"content": {
"application/json": {
"schema": {"$ref": "#/components/schemas/Item"}
}
},
"required": True,
},
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {"$ref": "#/components/schemas/Item"}
}
},
},
"402": {
"description": "Payment Required",
"content": {
"application/json": {
"schema": {"$ref": "#/components/schemas/Item"}
}
},
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
},
},
},
},
},
"/items-list/": {
"post": {
"summary": "Create Item List",
"operationId": "create_item_list_items_list__post",
"requestBody": {
"content": {
"application/json": {
"schema": {
"items": {"$ref": "#/components/schemas/Item"},
"type": "array",
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_openapi_schema_no_separate() do?
test_openapi_schema_no_separate() is a function in the fastapi codebase, defined in tests/test_openapi_separate_input_output_schemas.py.
Where is test_openapi_schema_no_separate() defined?
test_openapi_schema_no_separate() is defined in tests/test_openapi_separate_input_output_schemas.py at line 443.
What does test_openapi_schema_no_separate() call?
test_openapi_schema_no_separate() calls 1 function(s): get_app_client.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free