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

Fix handling of Top Level Operation Headers #52

Merged
merged 3 commits into from
Jul 30, 2019

Conversation

cortinico
Copy link
Collaborator

This PR cleans up the mustache template responsible of handling the generation of top level Retrofit headers.

Headers are now generated inside the KotlinGenerator class and passed to the template as a list of pair. This makes the handling of 0, 1, more header scenarios easier both on the generator and on the mustache template.

JUnit tests are attached.

Fixes #45

@cortinico cortinico added bug Something isn't working enhancement New feature or request labels Jul 26, 2019
@cortinico cortinico added this to the 1.2.0 milestone Jul 26, 2019
@cortinico cortinico requested a review from macisamuele July 26, 2019 18:17
@cortinico cortinico self-assigned this Jul 26, 2019
Copy link
Collaborator

@macisamuele macisamuele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks good, please run the check for consumes and if that is a no-op then I'll be shipping this PR :)

Copy link
Collaborator

@macisamuele macisamuele left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@cortinico cortinico merged commit 88ac0ef into master Jul 30, 2019
@cortinico cortinico deleted the fix-45-empty-header-annotation branch July 30, 2019 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty Headers added to the API when there no operationId in Swagger
2 participants