Home / Function/ test_optional_list_str_alias_schema() — fastapi Function Reference

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
  85d366d2_1de0_e5bf_e46a_d1a57a71b6d3["test_optional_list_str_alias_schema()"]
  ab9ca345_fca0_14e6_b530_7d9da4ee783c["test_optional_list.py"]
  85d366d2_1de0_e5bf_e46a_d1a57a71b6d3 -->|defined in| ab9ca345_fca0_14e6_b530_7d9da4ee783c
  style 85d366d2_1de0_e5bf_e46a_d1a57a71b6d3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_request_params/test_header/test_optional_list.py lines 104–120

def test_optional_list_str_alias_schema(path: str):
    assert app.openapi()["paths"][path]["get"]["parameters"] == snapshot(
        [
            {
                "required": False,
                "schema": {
                    "anyOf": [
                        {"items": {"type": "string"}, "type": "array"},
                        {"type": "null"},
                    ],
                    "title": "P Alias",
                },
                "name": "p_alias",
                "in": "header",
            }
        ]
    )

Domain

Subdomains

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_header/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_header/test_optional_list.py at line 104.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free