-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validate_python / model_validate: exclude #1095
Comments
fastapi's
It's used a fair bit too: https://github.com/search?q=language%3Apython+%2Fresponse_model_exclude%3D%5C%7B%2F&type=code |
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: