Waterline Joi
npm i --save waterline-joi
Waterline Blueprint to Joi validation converter.
// Get Waterline.var Waterline = // Get the function to convert schemas.var waterline_to_joi = // Define your schema.var schema = attributes: firstName: type: 'string' required: true lastName: type: 'string' required: true // Create a Joi schema.var joi_schema = // Create the uservar User = WaterlineCollection