We have a couple of APIs for uploading documents, that in our swagger look like, e.g.:
"/v1/validateFile": {
"post": {
"operationId": "validateFile",
"consumes": [
"text/plain"
],
"produces": [
"application/json"
],
But the function generated by swagger-axios-codegen has
let data = null
configs.data = data
axios(configs, resolve, reject)
i.e., there's no way to pass in the actual contents to upload to the API!
Again, I could look at contributing a fix, but is this something you'd come across before?
We also have some APIs that require application/octet-stream as the input (binary file uploads).
Thanks!
Dylan