API validation with Sails.js
Sep 3, 2018 · 1 min read
Upon many failed efforts to find a working validation hook / middleware for Sails.js 1.x, I gave up and created my own helper hook. You can find it under sails-hook-validation-ev on github.
About
It is a Sails 1.x hook for validating REST requests with the help of express-validator. Because — why reinvent the wheel? Uses the same configuration functions as `express-validator`. Supports validators, sanitizers, localization, …
