lykmapipo/sails-hook-validation

Not returning custom errors with Sails 0.12.9

Opened this issue · 4 comments

Hey, I recently upgraded to Sails 0.12.9 but now it seems it's just returning the original error messages when using model.validate.

Hi @boycce Are you push comment code in language file?
Ex:
//Authentication message "authentication.email.requered": "Hallu "
I got same issue when I push the comment in file /locale/en.json
and it work well when I remove the comment in en.json file.

+1
When i call User.validate(userObject) it is doesn't work

@chungledna is it not the default locale that changed? What locale are you usually supporting?

We need more info on this issue. I can't reproduce it. Seems to me it should be closed unless hinted otherwise soon enough.