Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
csharp int and list<???> are not reconized #4372
When using the csharp langauge we are receiving the following errors, when looking at the code list are not missing there parameters as well. So for example List we only get List in the code generation. We are getting int is a reserved word.
We are sing swagger from servicestack the latest version, hope this helps.
[main] INFO io.swagger.parser.Swagger20Parser - reading from http://win7.tag.de.com/api/resources
[main] WARN io.swagger.codegen.DefaultCodegen - generated unique operationId
Use ServiceStack as api server, and ServiceStack.Swagger as well.
Swagger 1.2 supported.
the latest version from github.
Swagger declaration file content or url
Command line used for generation
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate
Steps to reproduce
use the command line above.
Suggest a Fix
In your swagger spec (v1.2), you name the model as "int", which is a reserved word in C#. I believe you actually mean the property/parameter is an integer (
I would suggest you to contact ServiceStack on how to define that in the ServiceStack.
You may also want to explore the option to export the Swagger spec in the latest version 2.0 instead of 1.2 from ServiceStack.