-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
Validate on runs validation on all attributes #124
Comments
Im not sure I'm understanding you question but if if (isEmpty(whiteList) || whiteList.indexOf(name) !== -1) { ... } |
That is the thing we don't only validate the attributes that are in the given collection. We validate all the attributes but only return the results of the whitelisted attributes. The original validate calls My updated code above only runs the validations if the attribute is whitelisted. |
Oh you posted modified code! I thought that was the original code lol. I see what you mean! I'll make the change 😸 |
Thanks for creating the issue and bringing this to my attention! |
If you add this to the CHANGELOG can you attribute it to me? thank you |
good catch |
Fixed with |
I'm wondering why when using
on
during validate, validate still validates each attr and only stores the results of those whitelisted. This seems like unnecessary processing. Why not only run the validation if on is not defined or the attr is specified.The text was updated successfully, but these errors were encountered: