You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pydantic validates model data on __init__
One way to skip validation is to use model_construct instead of __init__, but it does not support recursively constructing models from dicts so it is not suitable for our needs
The other idea is to split our Pydantic models into ReadModel and CreateModel and overwrite all fields on ReadModel with SkipValidation or look into how to overwrite schema that is going to be validated
The text was updated successfully, but these errors were encountered:
Pydantic validates model data on
__init__
One way to skip validation is to use
model_construct
instead of__init__
, but it does not support recursively constructing models from dicts so it is not suitable for our needsThe other idea is to split our Pydantic models into
ReadModel
andCreateModel
and overwrite all fields on ReadModel withSkipValidation
or look into how to overwrite schema that is going to be validatedThe text was updated successfully, but these errors were encountered: