-
Notifications
You must be signed in to change notification settings - Fork 8
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
Allow handling validation errors #140
Comments
Hello @lnogol , Indeed, completely agree. Maybe even better, always call |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@dwidge just implemented this. and is available in |
Zodios currently sends a response when validation fails:
This is fine by default, but it should also allow to handle the error manually in express error handler by calling
next(err)
instead.Perhaps as a toggle passed to
.app()
and exportingisZodiosValidationError(err)
The text was updated successfully, but these errors were encountered: