openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

TypeScript Fetch Generator

Open mmartinsdev opened this issue 2 years ago • 2 comments

Bug Report Checklist

  • I have a question about the typescript fetch generator. In the YAML API Definition, i have the following block :
{
                        "name": "file",
                        "in": "formData",
                        "description": "The file",
                        "required": false,
                        "type": "file"
                    }

The generator map the formData with Blob structure :

export interface postResquest {
    file?: Blob;
}

But I have no idea to create a Blob struture. Can you hep me ?

I use NodeJS v18.

Thanks

mmartinsdev avatar Oct 17 '22 18:10 mmartinsdev

@mmartinsdev I am running into same issue. Did you find any solution ?

alpesh1988 avatar Feb 26 '24 11:02 alpesh1988

Same here. Did you manage to find a solution?

glundgren93 avatar Apr 30 '24 12:04 glundgren93