Skip to content

Added at_least_one_of parameter validator. #692

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

Merged
merged 1 commit into from
Jul 30, 2014

Conversation

dblock
Copy link
Member

@dblock dblock commented Jul 24, 2014

@oliverbarnes and @Morred, check this out pls, I could be missing something, but I don't think this is possible to implement with the current optional and requires.

Should this be refactored into at_least_n_of and at_most_n_of? Sounds weird for an API, to require 2/3 things.

Fixes #691.

dblock added a commit that referenced this pull request Jul 30, 2014
Added at_least_one_of parameter validator.
@dblock dblock merged commit 64955ed into ruby-grape:master Jul 30, 2014
@dblock dblock deleted the at-least-one-of branch October 27, 2014 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add at_least_one_of validation
1 participant