lykmapipo / sails-hook-validation

Custom validation error messages for sails model with i18n support
104 stars 29 forks source link

Model.validation don´t return Errors #21

Closed vagnernascimento closed 8 years ago

vagnernascimento commented 9 years ago

Hi, I am implementing a app using i18n and Sails-hook-validation, everything works fine except when I try with MyModel.validation function. The functions create and update return the translated validation messages in Errors hash. I had tested as static method and instance method and both has the same problem. Could you help me ?

lykmapipo commented 9 years ago

@vagnernascimento

May you please share samples codes that cause the problem. I will appreciate that.

lykmapipo commented 8 years ago

@vagnernascimento

checkout v0.4.3