Skip to content
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

Context sensitive valueIsAllowed #6

Closed
sbking opened this issue Aug 20, 2013 · 1 comment
Closed

Context sensitive valueIsAllowed #6

sbking opened this issue Aug 20, 2013 · 1 comment

Comments

@sbking
Copy link
Contributor

sbking commented Aug 20, 2013

There should be a way to validate fields that rely on other fields. For example, a verify password or verify email field needs to be matched against another value. Maybe there could be a valueIsAllowed function that was passed the entire object instead of just the value?

@aldeed
Copy link
Collaborator

aldeed commented Aug 21, 2013

It looks like it would be fairly easy to have it pass the entire doc as the second argument of valueIsAllowed. Does that sound good?

@aldeed aldeed closed this as completed in c4df844 Aug 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants