Closed drenda closed 2 years ago
The Blob
type is generated because you have "format": "binary"
.
However, there's still a bug that the generated responseType
should be blob
and not text
.
The
Blob
type is generated because you have"format": "binary"
. However, there's still a bug that the generatedresponseType
should beblob
and nottext
.
Thanks for your quick reply. Binary format is good in my case, I expect to have a blob on the client; I don't expect the responseType to be text "text" but blob instead.
Released in 0.19.2
I've this endpoint in my backend:
with this OpenApi desc:
Running ng-openapi-gen the service is created:
When I manage the result Blob I get some trouble because it seems justa
string
and not a real Blob. I think the problem is theresponseType
that should be "blob" and not "text" as you can see in the generated service. Am I missing something or is there a way to instruct ng-openapi-gen to considertext/calendar
as a blob? I'm using 0.17.3 version