Closed
Description
Describe the bug
Right now, binary multipart/form-data
requests almost always fail to work.
Issues:
- no way to upload files: Question: is there a way to override the generated Blob type to be File? ferdikoomen/openapi-typescript-codegen#1825
- axios rejecting generated formdata object: getFormData causes issue in submitting files ferdikoomen/openapi-typescript-codegen#1989
- malformed form data serialization: Issue with Multipart Form Data Serialization in openapi-typescript-codegen ferdikoomen/openapi-typescript-codegen#1804
- client processing incorrect form fields:
In my testing, I've used example requests from Swagger documentation and compared the result to the official java-based typescript-axios generator. The official generator correctly inferred the requests were containing files, made the operation input be File
instead of Blob
and correctly serialized and performed the request.