Closed snisar closed 2 years ago
Sorry, this is not a generator from .NET to TypeScript, rather, from OpenAPI to TypeScript ;). I'd need the OpenAPI source file - either the JSON or YAML.
Also, currently, binary types are generated as Blob
when type=string
and format=binary
.
Sorry, my bad :-( Looking at the portion of the swagger, it does not define a particular response type. Will take a look at my controller and see why that is the case.
/api/SaleInvoice/download: { get: { tags: [ "SaleInvoice" ], parameters: [ { name: "id", in: "query", schema: { type: "string", format: "uuid" } } ], responses: { 200: { description: "Success" } } } },
I have a controller end point which is returning a FileStreamResult (tested with FileResult as well)
This generates a Angular service but expects a text response, whereas I believe it should be setting the response type to arraybuffer