Added feature to report header params in params block #393
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's this PR do, and where should I start?
This PR address Issue #391
This PR changes the behavior by no longer output a header tag at the root level of an endpoint, and replaces that with parameters tagged with
"in": "header"
, which is the correct Swagger 2.0 method.See changes to spec/swagger_v2/simple_mounted_api_spec.rb to see how the behavior changed.
How should this be manually tested?
Fire up the example app and add some header variables using the proper grape syntax (note the example below is <= 0.14, not what is in the docs for 0.16.2:
Any background context you want to provide?
Ran into this issue when I tried to add header params to our app.