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

New extension function for validation: containedIn #9

Closed
Tetraquark opened this issue Jul 24, 2020 · 0 comments · Fixed by #21
Closed

New extension function for validation: containedIn #9

Tetraquark opened this issue Jul 24, 2020 · 0 comments · Fixed by #21
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Tetraquark
Copy link
Collaborator

It would be useful to have a function containedIn or something for validation like this:

val validValues = listOf("ru", "us")

return ValidationResult.of(value)
    .containedIn(
        validValues = validValues,
        errorText = errorText
    ).validate()
@Tetraquark Tetraquark added the enhancement New feature or request label Jul 24, 2020
@Tetraquark Tetraquark self-assigned this Jan 26, 2021
@Tetraquark Tetraquark linked a pull request Jan 26, 2021 that will close this issue
Alex009 added a commit that referenced this issue Jan 27, 2021
@Alex009 Alex009 added this to the 0.7.0 milestone Jan 27, 2021
@Alex009 Alex009 closed this as completed Jan 27, 2021
@Tetraquark Tetraquark mentioned this issue Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants