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

Support multiple headers at the same time #6

Closed
wants to merge 2 commits into from

Conversation

Tyr0
Copy link
Contributor

@Tyr0 Tyr0 commented Mar 6, 2015

Swagger supports multiple headers but requires that each one uses a unique name. The existing approach overwrote the previous header definition. This also caused issues when changing the value of #input_apiKey as it stores the api key with the same name as all defined headers, leading to complete header loss on api key addition. This fix ensures each header is given a unique name.

For more information see: https://github.com/swagger-api/swagger-ui#header-parameters

Swagger supports multiple headers but requires that each one uses a unique name. The existing approach overwrote the previous header definition. This also caused issues when changing the value of `#input_apiKey` as it stores the api key with the same name as all defined headers, leading to complete header loss on api key addition. This fix ensures each header is given a unique name.

For more information see: https://github.com/swagger-api/swagger-ui#header-parameters
@dblock
Copy link
Member

dblock commented Mar 6, 2015

This makes total sense. Needs a CHANGELOG entry please.

@Tyr0
Copy link
Contributor Author

Tyr0 commented Mar 7, 2015

CHANGELOG entry added, good to merge?

@dblock
Copy link
Member

dblock commented Mar 9, 2015

Squash-merged via d6ed844. Thanks.

@dblock dblock closed this Mar 9, 2015
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