MCPcopy Index your code
hub / github.com/fastapi/sqlmodel / test_schema_extra_validation_alias_sqlmodel_v2

Function test_schema_extra_validation_alias_sqlmodel_v2

tests/test_aliases.py:124–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122
123
124def test_schema_extra_validation_alias_sqlmodel_v2():
125 class M(SQLModel):
126 f: str = Field(schema_extra={"validation_alias": "f_alias"})
127
128 m = M.model_validate({"f_alias": "asd"})
129 assert m.f == "asd"
130
131
132def test_schema_extra_serialization_alias_sqlmodel_v2():

Callers

nothing calls this directly

Calls 1

model_validateMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…