this
Schema = {
name: Joi.object().keys({
type: Joi.string().valid("xxx", "yyy"),
}),
}
but it says "name" must be an object.
this happens when i choose one of valid enum value.
name: Joi.string().valid(..)?
yes, this fix the problem. Thank you so much.
Обсуждают сегодня