Skip to content

Generated JS client should include request/response interceptors, too #222

Description

@srchulo

Is your feature request related to a problem?

I'd like to know when any request in my generated Swagger client fails, but there is no interceptor support for the generated JS client. I like using a generated client more as I feel this is more natural.

Describe the solution you'd like

I'd like for the generated swagger JS code to include request/response interceptor support, just like it does when you pass it a spec url.

Describe alternatives you've considered

I've considered wrapping all of my callbacks in an outer callback so I can receive all responses in that first, but this seems less ideal as if I forget to wrap one callback, I won't get the functionality that I want.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions