Month: September 2018

API validation with Sails.js

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, … Installation As simple as: $ npm install - save […]