We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the engine generates an error because a object.and() fails, the label for keys isn't showed. For example:
schema = Joi.object().keys({ CustomerName: Joi.string().min(1).required(), CustomerUniqueDebitMandateReference: Joi.string().label('Label1'), CustomerMandateSignatureDate: Joi.date().format('DD/MM/YYYY').label('Label2'), }).and('CustomerUniqueDebitMandateReference', 'CustomerMandateSignatureDate'); Joi.validate({ CustomerName: 'name', CustomerMandateSignatureDate: '12/02/2016', }, schema, log);
Generates
value contains CustomerMandateSignatureDate without its required peers CustomerUniqueDebitMandateReference
instead of
value contains Label2 without its required peers Label1
Is that correct?
The text was updated successfully, but these errors were encountered:
221fba5
No branches or pull requests
When the engine generates an error because a object.and() fails, the label for keys isn't showed. For example:
Generates
instead of
Is that correct?
The text was updated successfully, but these errors were encountered: