I've got a schema where one of two optional forms can be added at runtime and one of them must be added to pass validation. I've got that bit working with the use of an xor() but I want to set a custom error message like "You must add a formA or formB to continue" instead of the default "value" must contain at least one of [formA, formB].
I've tried calling .xor().message() but I get the error
Error: Cannot apply rules to empty ruleset or the last rule added does not support rule properties
How can I specify a custom error message for a Joi xor() ?