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
Lazy loaded orm fields are loaded inadvertently by model_validate (which calls validate_python). I'd like to be able to exclude fields from model_validate.
With the release of pydantic v2, is it possible to load a model and exclude certain fields when loading using the new model_validate method? I was hoping the new context parameter was able to achieve this, but it looks this does not quite do what I was thinking.
Lazy loaded orm fields are loaded inadvertently by
model_validate
(which callsvalidate_python
). I'd like to be able to exclude fields frommodel_validate
.Previously discussed here pydantic/pydantic#6861.
(cross post of pydantic/pydantic#8192)
The text was updated successfully, but these errors were encountered: