-
Notifications
You must be signed in to change notification settings - Fork 2k
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
is
model validation rule missing in v0.12.1 (Error: Unknown rule: is
)
#3649
Comments
Hi @jpbecotte! It looks like you may have removed some required elements from the initial comment template, without which I can't verify that this post meets our contribution guidelines. To re-open this issue, please copy the template from here, paste it at the beginning of your initial comment, and follow the instructions in the text. Then post a new comment (e.g. "ok, fixed!") so that I know to go back and check. Sorry to be a hassle, but following these instructions ensures that we can help you in the best way possible and keep the Sails project running smoothly. If you feel this message is in error, or you want to debate the merits of my existence (sniffle), please contact [email protected]. |
Ok, fixed! |
Hey @jpbecotte, thank you for the report. One of us will look into this asap. In the mean time, just flagged this issue as a bug, and for reference, here's the link to the Thanks again! |
is
model validation rule missing in v0.12.1 (Error: Unknown rule: is
)
@jpbecotte just recreated this and tracked it down to sailshq/anchor@e7fbec2#diff-b9cfc7f2cdf78a7f4b91a753d10865a2 which seems to be the culprit. |
@jpbecotte in the middle of working this out and will have a fix in shortly. First and foremost, while it's not a huge deal in this case, Waterline should crash the process in this case, so I'm starting there. |
forgot to ref from the other side, so balderdashy/waterline@935f4a0 |
@jpbecotte ok! This is solved by anchor 0.11.1, which should be picked up automatically if you reinstall sails and its deps (if you have trouble, try (Also, the next release of Waterline will handle unrecognized validation rule errors more gracefully.) |
Sails version: 0.12.1
Node version: v4.4.0
NPM version: 2.14.20
Operating system: Windows 7
Model validation "is" doesn't work.
So add the is validation in any attribute. Then it gives the following error:
In the doc, , it says:
"Ensure incoming value matches the configured regular expression."
The text was updated successfully, but these errors were encountered: