-
Notifications
You must be signed in to change notification settings - Fork 9
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
Aliases #65
Conversation
* Alias for requiredIf | ||
*/ | ||
requireIf: function(def, value, key, errors, data) { | ||
console.log('-----\n`requireIf` should be `requiredIf`\n-----') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make this a bit clearer:
-----\nObey Warning: `requireIf` should be `requiredIf`\n-----
* Alias for requiredIfNot | ||
*/ | ||
requireIfNot: function(def, value, key, errors, data) { | ||
console.log('-----\n`requireIfNot` should be `requiredIfNot`\n-----') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as L97
if (def.require) { | ||
def.required = def.require | ||
delete def.require | ||
console.log('-----\n`require` should be `required`\n-----') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as comments above
Besides the comments on the messaging 👍 |
Closes #62