You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ng-openapi-gen generates methods which use responseType 'blob' like that:
return http.request( rb.build({ responseType: 'blob', accept: '*/*', context }) ).pipe( filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse), map((r: HttpResponse<any>) => { return r as StrictHttpResponse<UserInfoDto>; }) ); }
I need to change default responseType from blob to json and have this piece of code in config, but this is not working: "customizedResponseType": { ".*": { "toUse": "json" } }
how to configure correctly customizedResponseType propery?
The text was updated successfully, but these errors were encountered:
Can you share your specification yaml / json?
The customizedResponseType was added via a PR, so I myself have never used it, but it doesn't support patterns, but matches for exact paths.
Can you share your specification yaml / json? The customizedResponseType was added via a PR, so I myself have never used it, but it doesn't support patterns, but matches for exact paths.
I think the solution will be custom handlebars if I can use it with ng-openapi-gen command. There is no specific information about which responseType has each endpoint in my yaml/json.
ng-openapi-gen generates methods which use responseType 'blob' like that:
return http.request( rb.build({ responseType: 'blob', accept: '*/*', context }) ).pipe( filter((r: any): r is HttpResponse<any> => r instanceof HttpResponse), map((r: HttpResponse<any>) => { return r as StrictHttpResponse<UserInfoDto>; }) ); }
I need to change default responseType from blob to json and have this piece of code in config, but this is not working:
"customizedResponseType": { ".*": { "toUse": "json" } }
how to configure correctly customizedResponseType propery?
The text was updated successfully, but these errors were encountered: