How can I display different error messages when validating multiple groups of keys within a single Joi schema?
I have a simple schema with multiple keys a,b,c,d , all of them are string .
i want to validate such that between a and b only 1 of them should be present at a time. and the same for c and d
Use of “not” with “when” in Joi.js
I have a joi validation which uses “when” and “is” to reference another value of the object. It works fine.