Home / Function/ test_optional_list_alias_and_validation_alias_schema() — fastapi Function Reference

test_optional_list_alias_and_validation_alias_schema() — fastapi Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_request_params/test_header/test_optional_list.py lines 275–291

def test_optional_list_alias_and_validation_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 Val Alias",
                },
                "name": "p_val_alias",
                "in": "header",
            }
        ]
    )

Domain

Subdomains

Frequently Asked Questions

What does test_optional_list_alias_and_validation_alias_schema() do?
test_optional_list_alias_and_validation_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_alias_and_validation_alias_schema() defined?
test_optional_list_alias_and_validation_alias_schema() is defined in tests/test_request_params/test_header/test_optional_list.py at line 275.

Analyze Your Own Codebase

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

Try Supermodel Free