-
Notifications
You must be signed in to change notification settings - Fork 2
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
adjust ValidationError message in async validators #14
Comments
I will look into this, thanks for the bug report! |
Sorry for the late reply. Basically there are multiple things happening here: First I extended the Then you are raising a This means that This is the expected behaviour and not actually a bug. |
…lidation-errors Better align pydantic and async validation errors
pydantic
model_validator
decorator return the following output when a ValidationError is raised:but
async_model_validator
&async_field_validator
decorators return the following output:example used in fastapi with ensure_request_validation_errors:
The text was updated successfully, but these errors were encountered: