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

Added validation of existence (in other model) and JSON validation #228

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

myame
Copy link

@myame myame commented Mar 19, 2013

No description provided.

* ```
* User.validatesJSONOf('{"test": 12}', {convertToObject: true});
* User.validatesJSONOf({"test": 12}, {convertToObject: true, nullValid: null});
* User.validatesJSONOf('null', {nullValid: true, message: 'no JSON'});
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have allowNull and allowBlank standard options, I don't want create new one with same functionality and different spelling, see nullCheck and blank functions.

@philippsimon
Copy link

and i realized some problem with valdidateExistenceOf - just don't have the time to check what exactly is the problem

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

Successfully merging this pull request may close these issues.

3 participants