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
Not missing anything, the generator does not support binary data. Currently, I don't have the bandwidth to introduce support. If you have a moment, feel free to open a PR, I'd love to merge it.
Hi,
How can I process binary Data using this typescript-fetch generation tool?
I saw in the code:
swagger-typescript-fetch-api/src/main/resources/typescript-fetch-api/api.mustache
Line 137 in ae1c883
at .json - But sometimes the backend is returning binary data.
How to process there?
Did I miss something?
Here is my hopefully working swagger configuration:
/store/product/{id}/pic:
summary: Image
get:
parameters:
- in: path
required: true
name: id
schema:
type: number
tags:
- shop
responses:
200:
description: Alles ok
content:
image/png:
schema:
$ref: '#/components/schemas/BinaryPic'
components:
BinaryPic:
description: Binary Image file
type: string
format: binary
The text was updated successfully, but these errors were encountered: