Open mantasbertas opened 6 years ago
Validation:
const schema = Joi.object().keys({ id: Joi.number().integer().min(0).max(1000).required(), email: Joi.string().emai().required().max(30), was_breached: Joi.boolean().required(), breach_count: Joi.number().integer().min(0), was_password_breached: Joi.boolean().required(), last_breach: Joi.date(), })
Atributes: