Skip to content

Added serialization support for typescript on complex object headers. #1874

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

Conversation

sruehl
Copy link
Contributor

@sruehl sruehl commented Jan 10, 2019

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: master, 3.4.x, 4.0.x. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

When using headers which are defined as complex objects we need to render them as json

fixes #1865

cc: @TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10)

@wing328 wing328 modified the milestones: 4.0.0, 4.0.1 May 13, 2019
@wing328 wing328 modified the milestones: 4.0.1, 4.0.2 May 31, 2019
@wing328 wing328 modified the milestones: 4.0.2, 4.0.3 Jun 20, 2019
@wing328 wing328 modified the milestones: 4.0.3, 4.1.0 Jul 9, 2019
@macjohnny
Copy link
Member

@sruehl could you fix the conflicts?

Sebastian Rühl added 2 commits July 25, 2019 10:19
…ng-serilazation

# Conflicts:
#	bin/typescript-axios-petstore-all.sh
#	modules/openapi-generator/src/main/resources/typescript-axios/api.mustache
@sruehl
Copy link
Contributor Author

sruehl commented Jul 25, 2019

@macjohnny I merged the upstream master and fixed the merge after that. Additionally I re-ran the bin/typescript-axios-petstore-with-complex-headers.sh which produced no diff. LGTM

Co-Authored-By: Esteban Gehring <[email protected]>
@macjohnny
Copy link
Member

@sruehl can you re-generate the samples, please?

@sruehl
Copy link
Contributor Author

sruehl commented Jul 25, 2019

@macjohnny done (as allways forgot to rerun maven install)

@sruehl
Copy link
Contributor Author

sruehl commented Jul 29, 2019

the failing build is because of kotlin, seems like this is not related to this PR...

@macjohnny
Copy link
Member

@sruehl can you please merge the current master? the CI build failure should be fixed

@macjohnny macjohnny merged commit 1bf8c15 into OpenAPITools:master Jul 29, 2019
@wing328
Copy link
Member

wing328 commented Aug 10, 2019

@sruehl thanks for the PR, which has been included in the 4.1.0 release: https://twitter.com/oas_generator/status/1160000504455319553

@wing328 wing328 changed the title [BUG-1865] Added serialization support for typescript on complex object headers. Added serialization support for typescript on complex object headers. Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] [Typescript] [Axios] Header does not support complex-objects
3 participants