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: {
If you want to validate an array of strings in Joi:
Joi.array().items(Joi.string().valid("item1", "item2", "item3", "item4"))