You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Joi supports abortEarly flag to return only first error that occured when validating the schema. This is by default set to true. This can be passed to joi passed via:
Closing this, since this simply returns the joi schema and if calling validate on schema directly (as opposed to Joi.validate) doesn't support options, it's because Joi does not.
Hi,
Joi supports abortEarly flag to return only first error that occured when validating the schema. This is by default set to true. This can be passed to joi passed via:
When using schema.validate() we lose the option to pass in options down to Joi:
Without having to add Joi as dependency, is there a away for enjoi to pass options down to joi?
The text was updated successfully, but these errors were encountered: