[BUG] [Typescript] [Axios] Header does not support complex-objects
Created by: sruehl
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
What's the version of OpenAPI Generator used? -
Have you search for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Bounty to sponsor the fix (example)
Description
When using a header that is a complex object like defined here https://swagger.io/specification/#headerObject the serialization is missing here: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-axios/api.mustache#L175 https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-axios/api.mustache#L180 this should be done like here: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-axios/api.mustache#L226
openapi-generator version
master
OpenAPI declaration file content or url
https://gist.github.com/sruehl/9919a4f8aab6ef9bb1ca47cf90b3c6e5
Command line used for generation
Steps to reproduce
Related issues/PRs
#1874
Suggest a fix
implement serialization like here https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-axios/api.mustache#L226