Skip to content

JS code gen: Using Promises and non-jquery ajax #2014

Closed
@delenius

Description

@delenius

This is a couple of feature requests for the JavaScript client generator (not the runtime generator, I am generating form a swagger file offline):

  1. Is there any way to make the generator produce a JS client produce a client that uses Promises? It looks like the online generator can do this, but not the offline one, but I could be wrong.

  2. Is there any chance we could get rid of jQuery to do the ajax calls? It is unfortunate to have to pull in this heavy dependency just for that, when there are many lightweight ajax libraries out there. Ideally it should work both in a Web client and from Node, so how about something like isomorphic-fetch? This also uses Promises, so it helps with Adds the missing install-ivy build script #1 above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions