-
-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Added serialization support for typescript on complex object headers. #1874
Conversation
samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts
Outdated
Show resolved
Hide resolved
samples/client/petstore/typescript-axios/builds/with-complex-headers/api.ts
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-axios/api.mustache
Outdated
Show resolved
Hide resolved
integrate feedback from OpenAPITools#1874 (comment)
@sruehl could you fix the conflicts? |
…ng-serilazation # Conflicts: # bin/typescript-axios-petstore-all.sh # modules/openapi-generator/src/main/resources/typescript-axios/api.mustache
@macjohnny I merged the upstream master and fixed the merge after that. Additionally I re-ran the |
modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
Outdated
Show resolved
Hide resolved
modules/openapi-generator/src/main/resources/typescript-axios/apiInner.mustache
Outdated
Show resolved
Hide resolved
Co-Authored-By: Esteban Gehring <[email protected]>
@sruehl can you re-generate the samples, please? |
@macjohnny done (as allways forgot to rerun |
the failing build is because of kotlin, seems like this is not related to this PR... |
@sruehl can you please merge the current master? the CI build failure should be fixed |
@sruehl thanks for the PR, which has been included in the 4.1.0 release: https://twitter.com/oas_generator/status/1160000504455319553 |
PR checklist
./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\
.master
,. Default:3.4.x
,4.0.x
master
.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)