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
isEmail validator does not work (as described in documentation) #3770
Labels
Comments
What version do you use? This should have been fixed |
I'm on 3.0.1. I do have that code — maybe I'm doing something dumb. Here's what I'm trying: email: {
type: DataTypes.STRING
allowNull: false
validate: {
isEmail: {args: true, msg: 'phy-simpleUser-email-invalid'}
}
} |
It should work if you remove |
So it does! I was under the impression that that was required. |
IrfanBaqui
pushed a commit
to IrfanBaqui/sequelize
that referenced
this issue
Jun 24, 2015
IrfanBaqui
pushed a commit
to IrfanBaqui/sequelize
that referenced
this issue
Jun 24, 2015
Fix two minor issues. Closes sequelize#3812 and sequelize#3770
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The documentation states that this should work:
However, this yields:
The correct value
validator.js
expects is:The text was updated successfully, but these errors were encountered: