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

Validations Error Required False #142

Closed
javiercornejo opened this issue May 2, 2013 · 6 comments
Closed

Validations Error Required False #142

javiercornejo opened this issue May 2, 2013 · 6 comments

Comments

@javiercornejo
Copy link

When you setup a field with "required: false" the ORM still verify if (for example) the email patterns is correct and it doesn't save when the field is empty or undefined.

[Error: no-pattern-match]
  field: 'email',
  value: undefined,
  required: false

I dont know to solve it.

@dresende
Copy link
Owner

dresende commented May 2, 2013

I'll look into it.

@dresende
Copy link
Owner

dresende commented May 2, 2013

You made me stumble on another bug :)

According to your error description, you have a pattern validation which is the one causing the error. I'm going to post a commit in a few moments.

@dresende
Copy link
Owner

dresende commented May 2, 2013

Please try the latest commit.

@javiercornejo
Copy link
Author

Cool... thank you.

@dresende
Copy link
Owner

dresende commented May 3, 2013

Does it work for you now?

@javiercornejo
Copy link
Author

Yes it work perfect. Thank You.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants