Manweill / swagger-axios-codegen

swagger client to use axios and typescript
MIT License
306 stars 83 forks source link

why is responseType omitted? #152

Closed VincentVanclef closed 2 years ago

VincentVanclef commented 3 years ago

Hi there, why is responseType omitted?

Ive got an endpoint which returns a FileResult, and thus i need to change the responseType from json to blob. Why is this omitted?

export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {

Also, why isnt it possible to change this on the fly? Currently this:

const responseFormat = (format && this.format) || void 0;

Prevents me from changing it to any other type as this always returns undefined, unless i specify the format type in the constructor, which overwrites whatever setting i add later.

Regards, Vincent

Manweill commented 3 years ago

i dont get what you say