swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
I have a simple API for upload file.
When i generate the client library csharp, the code generated is not valid.
The parameters is byte[] but should be Stream
I have tried to edit the type from string to file and the parameter is generated as Stream but then it is not addedd correctly to the localVarFormParams, it is added like a string and not file
Description
We are using Swagger-codegen version 3.0.19
I have a simple API for upload file. When i generate the client library csharp, the code generated is not valid. The parameters is byte[] but should be Stream
this is the link of the API https://gist.github.com/biasc/c910bf26b28a6d76e95d6bc25eed041a
I have tried to edit the type from string to file and the parameter is generated as Stream but then it is not addedd correctly to the localVarFormParams, it is added like a string and not file
Command line used for generation
-jar "%Folder%swagger-codegen-cli-3.0.19.jar" generate -i http://localhost/demoApi/swagger/v1/swagger.json -l csharp -o "%Folder%Generated"