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)
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)