-
Notifications
You must be signed in to change notification settings - Fork 36
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
singleError fails with custom validators #19
Comments
I've added #20 with the fix for the issue. |
Could you provide me with an example, please? I can't replicate this issue. |
Does a coffee test work for you? |
Sure. |
Hmm. My tests do not behave the same as my script does... so I guess the issue was between the keyboard and chair. If something else pops up I'll add it here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Creating a schema and then calling the validate method with added custom validators while setting
{ singleError: false }
on the method call returns no errors to the callback. Removing the{ singleError: false }
makes it work again. It seems the issue lies not on the value provided forsingleError
, as passing{ singleError: true }
also breaks the validation error returns. My tests have shown that, even though the error objects are not returned, the custom methods do run.The text was updated successfully, but these errors were encountered: