Skip to content

Support .when({ is, then }) without subject ref #2116

@hueniverse

Description

@hueniverse

Default ref to '.' (this).

For example:

Joi.object({
    a: Joi.string()
        .when({ is: 'x', then: Joi.any().strip() }
});

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