MCPcopy
hub / github.com/fastapi/sqlmodel / model_validate

Method model_validate

sqlmodel/main.py:872–888  ·  view source on GitHub ↗
(  # ty: ignore[invalid-method-override]
        cls: type[_TSQLModel],
        obj: Any,
        *,
        strict: bool | None = None,
        from_attributes: bool | None = None,
        context: builtins.dict[str, Any] | None = None,
        update: builtins.dict[str, Any] | None = None,
    )

Source from the content-addressed store, hash-verified

870
871 @classmethod
872 def model_validate( # ty: ignore[invalid-method-override]
873 cls: type[_TSQLModel],
874 obj: Any,
875 *,
876 strict: bool | None = None,
877 from_attributes: bool | None = None,
878 context: builtins.dict[str, Any] | None = None,
879 update: builtins.dict[str, Any] | None = None,
880 ) -> _TSQLModel:
881 return sqlmodel_validate(
882 cls=cls,
883 obj=obj,
884 strict=strict,
885 from_attributes=from_attributes,
886 context=context,
887 update=update,
888 )
889
890 def model_dump(
891 self,

Callers 15

from_ormMethod · 0.80
parse_objMethod · 0.80
create_heroFunction · 0.80
create_heroFunction · 0.80
create_heroFunction · 0.80
create_heroFunction · 0.80
create_heroFunction · 0.80
create_heroFunction · 0.80
create_heroFunction · 0.80
create_heroFunction · 0.80
create_heroFunction · 0.80
create_heroFunction · 0.80

Calls 1

sqlmodel_validateFunction · 0.85