Joi Validations: If object matches the schema validate against it from multiple items
There are some typos in your files and validators. First of Joi.array is a function and needs to be called as one. // This is incorrect data2: Joi.array … additional: Joi.array // Should be changed to this where array is invoked as a function data2: Joi.array() … additional: Joi.array() Additionally, I’ve added a fourth validator … Read more