ModelWithRef Class — fastapi Architecture
Architecture documentation for the ModelWithRef class in test_schema_ref_pydantic_v2.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 8b046058_2da3_652c_02bc_132bb02f0455["ModelWithRef"] 571c9a79_ce50_1841_2d22_31d60e4ced6e["test_schema_ref_pydantic_v2.py"] 8b046058_2da3_652c_02bc_132bb02f0455 -->|defined in| 571c9a79_ce50_1841_2d22_31d60e4ced6e
Relationship Graph
Source Code
tests/test_schema_ref_pydantic_v2.py lines 14–16
class ModelWithRef(BaseModel):
ref: str = Field(validation_alias="$ref", serialization_alias="$ref")
model_config = ConfigDict(validate_by_alias=True, serialize_by_alias=True)
Domain
Defined In
Source
Frequently Asked Questions
What is the ModelWithRef class?
ModelWithRef is a class in the fastapi codebase, defined in tests/test_schema_ref_pydantic_v2.py.
Where is ModelWithRef defined?
ModelWithRef is defined in tests/test_schema_ref_pydantic_v2.py at line 14.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free