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
In pydantic 1.x, ValidationError has a model property which references the model being validated.
We used this when deciding what error to show to the user.
It doesn't seem possible to get this information in 2.x.
Would you consider adding it back?
(I'm guessing this issue belongs in core and not in pydantic. If it's in the wrong place, let me know)
The text was updated successfully, but these errors were encountered:
Good question - I don't think we'll add this back, but we will allow subclassing of ValidationError, which will enable support for something like this on the user side.
See pydantic/pydantic#9686 to track that progress. Going to close this as resolved for now 👍
In pydantic 1.x,
ValidationError
has amodel
property which references the model being validated.We used this when deciding what error to show to the user.
It doesn't seem possible to get this information in 2.x.
Would you consider adding it back?
(I'm guessing this issue belongs in core and not in pydantic. If it's in the wrong place, let me know)
The text was updated successfully, but these errors were encountered: