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.

123456789101112
  1. const Joi = require("joi");
  2. const schema = {
  3. getUserValidator: Joi.object({
  4. name: Joi.string().min(2).required(),
  5. password: Joi.string().min(8).regex(/[a-zA-Z0-9]{3,30}/).required(),
  6. email: Joi.string().email().required(),
  7. role: Joi.string()
  8. })
  9. }
  10. module.exports = schema