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

Array group parameters #636

Open
adie opened this issue Sep 26, 2017 · 0 comments
Open

Array group parameters #636

adie opened this issue Sep 26, 2017 · 0 comments

Comments

@adie
Copy link
Contributor

adie commented Sep 26, 2017

Hi, I have an issue that I believe was fixed by #221 but then got overridden by #455.
I think it was needed to support both cases, not just "fix" those specs: https://github.com/ruby-grape/grape-swagger/pull/455/files#diff-2b857d0b8829328970ec856ccd7d8ac3L43

Right now things like

requires :group, type: Array do
  requires :param_1, type: Integer
  requires :param_2, type: String
end

are being displayed as a simple Hash, not as an Array.

swagger-group-issue
I would expect to have group[][param_1] and group[][param_2] instead

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 a pull request may close this issue.

1 participant