You’ll probably need to use schema.validate instead of Joi.validate as explained here.
schema.validate
Joi.validate