Skip to content

Validate without applying default values #682

@ludoblues

Description

@ludoblues

I need to be able to tune if a want the joi default values to be applied or not when validating my data.

I was thinking about an option "ignoreDefaults": joi.validate(data, schema, { ignoreDefaults: true }).
I would like to know what do you think about it before pushing a PR.

Thanks.

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions