Pdf file request with response headers #1043
Open
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.
We have a similar problems like #829 and #981, when trying to access an endpoint with a pdf file and the filename in the header.
Therefore I started working on this branch and fixed it (at least for our problem). Please be aware that this pull request at the moment would introduce breaking change and I doubt it is in the sense of the original design. So in effect I don't expect this to be merged but I still hope it might be useful for someone.
getOperation
both the header and the content from the responses are pushed to the list, handled to create the necessary entries and finally the header is dropped, in order to not polluting the types.Known short comings:
This branch includes other than stated in the contribution guideline merge commits from the two open pull requests (#1037 and #986 )
Would be happy about any feedback.
Best regards and thank you very much for this neat code generator