common-headers
Description
Node.js hapi.js common Joi validation schema plugin
Common Joi validation schema: Allows to set common Joi validation schema for routes that doesn't have skipTag or doesn't have skipPath
Usage example:
In manifest.js
const Joi = ; moduleexports = server: app: slogan: 'New shiny service' plugins: 'hapi-joi-common-schema': skipTags: 'hapi-swagger' skipPath: /^\/swaggerui/ /^\/documentation/ /^\/swagger\.json/ schema: headers: Joiobject label'x-request and x-correlation-id headers'