Timplan - JSONSchema validation for hapi
Timplan allows you to use JSON schemas instead of joi in hapi. It's still possible to use hapi for validation. So one possible strategy could be to let path and query parameter validation remain in joi, but use schemas for payload and response.
Example
var lib = hapi: timplan: ; // Set up a validatorvar validator = baseUrl: 'http://api.bloglovin.se/schemas/' schemaDir: './schemas';// Add the schemas that we will usevalidator;validator; var server = 'localhost' 8000 cors: true ; server; serverstart { console;};