test_optional_list_str_alias_schema() — fastapi Function Reference
Architecture documentation for the test_optional_list_str_alias_schema() function in test_optional_list.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 7eb35b44_304e_1516_d1ca_58e1fba1a5ce["test_optional_list_str_alias_schema()"] b252ffb1_a82c_7132_1b26_b73869e66dc7["test_optional_list.py"] 7eb35b44_304e_1516_d1ca_58e1fba1a5ce -->|defined in| b252ffb1_a82c_7132_1b26_b73869e66dc7 5fadf4ad_2b8a_4b4f_fde9_555fff6ad722["get_body_model_name()"] 7eb35b44_304e_1516_d1ca_58e1fba1a5ce -->|calls| 5fadf4ad_2b8a_4b4f_fde9_555fff6ad722 style 7eb35b44_304e_1516_d1ca_58e1fba1a5ce fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_request_params/test_form/test_optional_list.py lines 106–122
def test_optional_list_str_alias_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_alias": {
"anyOf": [
{"items": {"type": "string"}, "type": "array"},
{"type": "null"},
],
"title": "P Alias",
},
},
"title": body_model_name,
"type": "object",
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_optional_list_str_alias_schema() do?
test_optional_list_str_alias_schema() is a function in the fastapi codebase, defined in tests/test_request_params/test_form/test_optional_list.py.
Where is test_optional_list_str_alias_schema() defined?
test_optional_list_str_alias_schema() is defined in tests/test_request_params/test_form/test_optional_list.py at line 106.
What does test_optional_list_str_alias_schema() call?
test_optional_list_str_alias_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