code: function procRequest (type, schema, req, res, next) {
    const prcHttpCallOnError = this._prcHttpCallOnError
    const options = this._validationOptions
  
    Joi.validate(req[type], schema, options, validateRequest)
  
    function validateRequest (err, value) {
      return err
        ? prcHttpCallOnError
          ? res.status(400).send(err.message)
          : res.status(400) && next(err)
        : (req[type] = value) && next()
    }
  }
docs: internal functions