Enum Validation Joi
const schema = Joi.object().keys({
type: Joi.string().valid(['ios', 'android']),
});
Ehmed
const schema = Joi.object().keys({
type: Joi.string().valid(['ios', 'android']),
});