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

Parameter group not working with type #605

Closed
klausmeyer opened this issue Mar 24, 2014 · 0 comments
Closed

Parameter group not working with type #605

klausmeyer opened this issue Mar 24, 2014 · 0 comments

Comments

@klausmeyer
Copy link
Contributor

Against what the README @ master is telling us the parameter group does not allow to pass an type argument:

group :documents, type: Hash do
  requires :filename
  requires :content
end

Error:

lib/grape/validations.rb:135:in `group': wrong number of arguments (2 for 1) (ArgumentError)

Whereas it's working with optional parameter without any problems.

I'm using the source from master and ruby 2.1.1

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

No branches or pull requests

1 participant