[REQ] Support for withAWSV4Signature in TypeScript Axios Generator
See original GitHub issueTypeScript generator lacks support for signing apis with AWS v4 generator.
This generator lacks withAWSV4Signature
which indicates whether to include AWS v4 signature support. This feature is available in Go generator: https://openapi-generator.tech/docs/generators/go/
So, it would be great to have support for this feature in TypeScript Axios generator as well. https://openapi-generator.tech/docs/generators/typescript-axios/
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Documentation for the typescript-axios Generator
Property, Value, Notes. generator name, typescript-axios, pass this to the generate command after -g. generator stability, STABLE.
Read more >OpenAPI Generator `typescript-fetch` vs `typescript-node` vs ...
Based on this issue, it seems the typescrypt generator is going to be a more maintainable replacement than the generators you proposed.
Read more >OpenAPITools/openapi-generator v6.0.0-beta on GitHub
New release OpenAPITools/openapi-generator version v6.0.0-beta v6.0.0-beta released on GitHub.
Read more >openapi-typescript-codegen - npm
The OpenAPI generator supports Bearer Token authorization. In order to enable the sending of tokens in each request you can set the token...
Read more >OpenAPI-generator, typescript-axios, and Vue? : r/vuejs - Reddit
core/OpenAPI'; import { request as __request } from '. ... I'm using typescript-axios, which generates API client code using the Axios ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is the PR to add AWS V4 signature support to the Go client generator: https://github.com/OpenAPITools/openapi-generator/pull/7326/files.
Following up on this:
I see two paths forward here, we could
a) utilize the https://github.com/jamesmbourne/aws4-axios and implement as an interceptor, as seen in @jarruda’s commit b) Implement using system libraries, similar to https://github.com/mhart/aws4, implementing it similar to the existing auth methods which are added here: https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-axios/common.mustache#L30 https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/resources/typescript-axios/configuration.mustache#L5
Do we have a preference for this?
I’m inclined for option b, as it avoids a third-party dependency, but may require additional maintenance in the future if sigv4 were to change