test_optional_list_schema() — fastapi Function Reference
Architecture documentation for the test_optional_list_schema() function in test_optional_list.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD f5f6f8eb_12ea_4309_8e05_76955b7e6f92["test_optional_list_schema()"] 04e698d5_447d_679b_7e1b_39a05b89aa16["test_optional_list.py"] f5f6f8eb_12ea_4309_8e05_76955b7e6f92 -->|defined in| 04e698d5_447d_679b_7e1b_39a05b89aa16 d1360ba2_24b5_be26_1bb8_d64ba3706aef["get_body_model_name()"] f5f6f8eb_12ea_4309_8e05_76955b7e6f92 -->|calls| d1360ba2_24b5_be26_1bb8_d64ba3706aef style f5f6f8eb_12ea_4309_8e05_76955b7e6f92 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_request_params/test_file/test_optional_list.py lines 34–53
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": {"type": "string", "format": "binary"},
},
{"type": "null"},
],
"title": "P",
}
},
"title": body_model_name,
"type": "object",
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_optional_list_schema() do?
test_optional_list_schema() is a function in the fastapi codebase, defined in tests/test_request_params/test_file/test_optional_list.py.
Where is test_optional_list_schema() defined?
test_optional_list_schema() is defined in tests/test_request_params/test_file/test_optional_list.py at line 34.
What does test_optional_list_schema() call?
test_optional_list_schema() calls 1 function(s): get_body_model_name.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free