Based on this issue, it seems the typescrypt generator is going to be a more maintainable replacement than the generators you proposed. While it is currently flagged as 'experimental', I believe it will become a more solid option in the near future.
Answer from javier gil on Stack Overflownode.js - OpenAPI Generator `typescript-fetch` vs `typescript-node` vs `typescript-axios` - Stack Overflow
OpenAPI-generator, typescript-axios, and Vue?
OpenApi Generator typescript-axios Only interfaces output with typescript axios generator - Stack Overflow
typescript - How to use Axios API client generated by OpenAPITools code generator? - Stack Overflow
» npm install openapi-client-axios-typegen
Based on this issue, it seems the typescrypt generator is going to be a more maintainable replacement than the generators you proposed. While it is currently flagged as 'experimental', I believe it will become a more solid option in the near future.
There’s now openapi-fetch which automatically picks up your OpenAPI schema with very little config. And is lightweight and performant.
Have any of you had experience using API clients generated by openapi-generator with Vue 3, specifically using the typescript-axios generator? It works well for me for HTTP GET requests, but I’m seeing issues with it not specifying the correct Content-Type for HTTP POST/PUT. My OpenAPI spec clearly defines the content type as application/json, but I can see on the wire the client is specifying text/plain. Are there any decent examples showing how to best use this generated code? Is there a better way of handling OpenAPI clients in Vue 3 apps? It’s a sizable API definition, so generating the client and its model objects by hand would be very time consuming. I was hoping to speed up development using the generated API client, but now I’m stuck for a sizable part of the API. Thoughts?
» npm install openapi-client-axios