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 version: 0.32.1
Traceback (most recent call last):
File "test.py", line 31, in <module>
MyModel(foobar={'model_type': 'foo', 'f': 'x'})
File "pydantic/main.py", line 275, in pydantic.main.BaseModel.__init__
File "pydantic/main.py", line 785, in pydantic.main.validate_model
pydantic.error_wrappers.ValidationError: 2 validation errors for MyModel
foobar -> f
value is not a valid integer (type=type_error.integer)
foobar -> f
value is not a valid integer (type=type_error.integer)
When validators raise ValidationError the errors are duplicated.
Won't be that common, but should be fixed.
The text was updated successfully, but these errors were encountered:
Bug
As a work around for #619 I tried the following
Output:
When validators raise
ValidationError
the errors are duplicated.Won't be that common, but should be fixed.
The text was updated successfully, but these errors were encountered: