const schema = Joi.object({
params: {
id: Joi.string().guid({
version: [
'uuidv4'
]
}).required(),
},
body: {
name: Joi.string().min(3),
directorId: Joi.string().guid({
version: [
'uuidv4'
]
}),
genres: Joi.array()
}
});
const { error } = schema.validate(req);
и вывожу."\"_readableState\" is not allowed"
что делаю не так?