-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make values parameter in OneOf to be variadic (#12)
This PR alters the signature of `validate.OneOf` function so that its second parameter, `values`, becomes a variadic parameter instead of a flat slice type. This aims to improve the experience of restraining values.
- Loading branch information
1 parent
0889409
commit 1b71356
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters