wcandillon / swagger-js-codegen

A Swagger Codegen for typescript, nodejs & angularjs
Apache License 2.0
693 stars 286 forks source link

allow buffers to be submitted as multipart form data #228

Closed kastentx closed 5 years ago

kastentx commented 5 years ago

With this change, a buffer containing file data can be submitted as input to a POST request method and it will dynamically generate the keys and filename (with extension) needed to handle it as a normal uploaded file.

This is particularly useful for another project I'm working on, Node-RED. This change would save a lot of time from a common workflow involving the output from swagger-js-codegen. I would be interested in taking over maintenance duties, too, if you're still looking for assistance/collaboration.