You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

params.js 398B

1234567891011
  1. const Joi = require('joi')
  2. module.exports = {
  3. profileId: Joi.object({ profile_id: Joi.number() }).label('profile_id_param'),
  4. profileInclude: Joi.object({ include_profile: Joi.bool() }),
  5. userId: Joi.object({ user_id: Joi.number() }).label('user_id_param'),
  6. userName: Joi.object({
  7. name: Joi.string().min(3).max(11),
  8. all: Joi.array(),
  9. }).label('user_name_param')
  10. }