Skip to content

Add an separator parameter to Joi.reach #1383

@pierreis

Description

@pierreis

Currently, the separator of Joi.reach is fixed as a dot. This might not be a good choices for for use cases where object keys are e-mails or URLs, causing the method not to behave as expected.

I would suggest adding a third parameter separator to that method, allowing to be user-configured. For example, slashes can make sense for compatibility with JSON patch. The default would remain a dot for compatibility.

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