You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User.create({name: null}).then(function(){}).catch(function(err){console.log(err.Errors['name']);// undefined!!, I expect the My custom message1, My custom message2});
The text was updated successfully, but these errors were encountered:
When the attribute name and the column name is different, there is a bug that does not use a custom message.
I think the problem is part of the following.
https://github.com/lykmapipo/sails-hook-validation/blob/master/lib/validateCustom.js#L45
model
code
The text was updated successfully, but these errors were encountered: