swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
16.94k stars 6.03k forks source link

[javascript] Creation of ES6-like Javascript code with promises #10360

Open mwallnoefer opened 4 years ago

mwallnoefer commented 4 years ago

Content & configuration

/

Is your feature request related to a problem?

No

Describe the solution you'd like

Swagger Editor provides an option to generate client-side JS bindings (option Generate Client/Javascript). It would be nice to have another option Generate Client/Javascript ES6+Promises which configures swagger-codegen-js to produce more modern code (which may be enabled over cmdline options).

Describe alternatives you've considered

/

Additional context

Bildschirmfoto vom 2020-07-01 20-32-46

mwallnoefer commented 8 months ago

Any news on this?

HugoMario commented 8 months ago

Hello @mwallnoefer,

I would handle this with an option for javascript generator instead create a new one. Feel free to file a PR and ping me when it's ready, so I can help you to get it merged