Home / Function/ test_optional_list_str_schema() — fastapi Function Reference

test_optional_list_str_schema() — fastapi Function Reference

Architecture documentation for the test_optional_list_str_schema() function in test_optional_list.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  37fc60e7_ee8a_f779_2aab_c00253940849["test_optional_list_str_schema()"]
  ab9ca345_fca0_14e6_b530_7d9da4ee783c["test_optional_list.py"]
  37fc60e7_ee8a_f779_2aab_c00253940849 -->|defined in| ab9ca345_fca0_14e6_b530_7d9da4ee783c
  style 37fc60e7_ee8a_f779_2aab_c00253940849 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_request_params/test_header/test_optional_list.py lines 37–53

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

Domain

Subdomains

Frequently Asked Questions

What does test_optional_list_str_schema() do?
test_optional_list_str_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_schema() defined?
test_optional_list_str_schema() is defined in tests/test_request_params/test_header/test_optional_list.py at line 37.

Analyze Your Own Codebase

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

Try Supermodel Free