Skip to content

Added support for set the 'collectionFormat' of arrays #504

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
Sep 20, 2016

Conversation

rczjns
Copy link
Contributor

@rczjns rczjns commented Sep 20, 2016

I added support to be able to set the collection format based on swagger specification ( http://swagger.io/specification/#itemsObject ). Now I set the parameter only if it present in the documentation hash, because the default value could be possible braking change.
But I think we could use the default 'csv' format to every arrays. If you agree with that, I will modify my pull request.

@rczjns rczjns force-pushed the collection-format-support branch 3 times, most recently from 9e972ce to 6468037 Compare September 20, 2016 11:24
@LeFnord
Copy link
Member

LeFnord commented Sep 20, 2016

@rczjns … thanks for it, please rebase it
think we should not set a default value, cause it is not required and will be a breaking change

@rczjns rczjns force-pushed the collection-format-support branch from 19fe6c6 to 4920024 Compare September 20, 2016 14:03
@rczjns
Copy link
Contributor Author

rczjns commented Sep 20, 2016

@LeFnord I've rebased it and OK I've kept it without default value.

@LeFnord LeFnord merged commit 2ccb32b into ruby-grape:master Sep 20, 2016
LeFnord pushed a commit to LeFnord/grape-swagger that referenced this pull request Feb 9, 2019
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.

2 participants