MCPcopy Index your code
hub / github.com/fastapi/fastapi / ModelWithConfig

Class ModelWithConfig

tests/test_jsonable_encoder.py:59–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57
58
59class ModelWithConfig(BaseModel):
60 role: RoleEnum | None = None
61
62 model_config = {"use_enum_values": True}
63
64
65class ModelWithAlias(BaseModel):

Callers 1

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…