const schema = Joi.object().keys({
type: Joi.string().valid('ios', 'android'),
});
const myObj = { type: 'none' };
const result = Joi.validate(myObj, schema);
console.log(result);
const schema = Joi.object().keys({
type: Joi.string().valid(['ios', 'android']),
});