trying to validate that an array has zero or more strings in one case and that it has zero or more objects in another , struggling with Joi docs :(
validate: {
Joi.array().items() accepts another Joi schema to use against the array elements. So an array of strings is this easy:
Joi.array().items()
Joi.array().items(Joi.string())
Same for an array of objects; just pass an object schema to items():
items()
Joi.array().items(Joi.object({ // Object schema }))