When validating with full mode, I'd expect that all errors would be collected, so in my example, if I send the request with an empty object, I would get an error message for both propertyId and cancellationPolicyId. However, only the first error is being collected.
Is this intended behaviour or is there something not right here?
If it is intended, would you be open to adding a new mode that would collect all errors?
node
version - 14.16.0celebrate
version - 14.0.0joi
version - 17.3.0My
joi
schema looks like this:When validating with full mode, I'd expect that all errors would be collected, so in my example, if I send the request with an empty object, I would get an error message for both
propertyId
andcancellationPolicyId
. However, only the first error is being collected.Is this intended behaviour or is there something not right here?
If it is intended, would you be open to adding a new mode that would collect all errors?