Closed mikebrules closed 6 years ago
Using ...validators
makes no sense here, since the exported object is a Joi schema object. You're copying the attributes of the schema object and treating those as schemas, which is nonsense. Just do schema: validators
.
Also, this is a Joi question, not a Dynogels question.
Hello - I'm trying to understand the cause of an exception I see when my stack starts up, and which I can't find any background on -
Error: Cannot add other alternatives without at least one schema
I am defining a schema and using
spread
to pull in a Joi Objtect defined in a different file; i.e.where
...validators
is this...I can't understand what the "alternatives" relates to?
Many thanks
Mike