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
Bug: oneOf returns all the errors of a group #956
Comments
Hi, I don't think this should be treated as a bug, but instead as an improvement of @gustavohenke do you have any suggestions on how to improve this? |
Looks like I should have seen this a long time ago 🙃
Can you clarify, please?
This is a simple change, SGTM. |
Other than these: adding an option to |
I meant that we may group the errors per branch instead of showing all of them together. |
This is out in https://github.com/express-validator/express-validator/releases/tag/v7.0.0 now! |
Describe the bug
when using
oneOf
with groups of validation it returns all the errors of a groupTo Reproduce
Expected behavior
Current behavior
Express-validator version:
The text was updated successfully, but these errors were encountered: