Skip to content
New issue

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

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

Closed
hueniverse opened this issue Sep 16, 2019 · 0 comments
Closed

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

hueniverse opened this issue Sep 16, 2019 · 0 comments
Assignees
Labels
feature New functionality or improvement
Milestone

Comments

@hueniverse
Copy link
Contributor

hueniverse commented Sep 16, 2019

Default ref to '.' (this).

For example:

Joi.object({
    a: Joi.string()
        .when({ is: 'x', then: Joi.any().strip() }
});
@hueniverse hueniverse added the feature New functionality or improvement label Sep 16, 2019
@hueniverse hueniverse added this to the 16.0.2 milestone Sep 16, 2019
@hueniverse hueniverse self-assigned this Sep 16, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Mar 17, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

1 participant