Joi Validation Enum

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