Is there a way to validate that two arrays need to have the same length using joi?
Here's an example:
Joi.object().keys({
firstNames: Joi.array().items(Joi.string()).single(),
lastNames: Joi.array().items(Joi.string()).single(),
});
If that was to work, it should also match both array's length so no firstName lacks a lastName.
Thanks for the help!