Tuesday, 14 August 2018

Custom validation messages for Sails.js v1?

I just upgraded my Sails project from v0.12 to v1. Everything works fine except sails-hook-validation, a hook I use for custom validation messages. It hasn't been updated to support v1 yet (project has not been updated for close to a year). I tried unsuccessfully to create a custom hook to display custom validation messages for my app. Waterline doesn't return invalidAttributes in its error object anymore and only throws the first validation error it catches. I'd appreciate any help on how to get this working. Thanks!

Submitted August 14, 2018 at 10:35AM by nicholaskajoh

No comments:

Post a Comment