ModelWithConfig Class — fastapi Architecture
Architecture documentation for the ModelWithConfig class in test_jsonable_encoder.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD f57611e7_f61b_eeb0_d179_c16f4435a433["ModelWithConfig"] 80ce950d_4c72_e7d9_21bb_a5c60524786c["test_jsonable_encoder.py"] f57611e7_f61b_eeb0_d179_c16f4435a433 -->|defined in| 80ce950d_4c72_e7d9_21bb_a5c60524786c
Relationship Graph
Source Code
tests/test_jsonable_encoder.py lines 59–62
class ModelWithConfig(BaseModel):
role: Optional[RoleEnum] = None
model_config = {"use_enum_values": True}
Domain
Defined In
Source
Frequently Asked Questions
What is the ModelWithConfig class?
ModelWithConfig is a class in the fastapi codebase, defined in tests/test_jsonable_encoder.py.
Where is ModelWithConfig defined?
ModelWithConfig is defined in tests/test_jsonable_encoder.py at line 59.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free