Re: Codegenerater convert int? into IntNull so won't compile

2016-12-01 Thread Jason Peixoto
[main] INFO io.swagger.codegen.languages.CSharpClientCodegen - Generating code for .NET Framework v4.5 [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - int (reserved word) cannot be used as model name. Renamed to ModelInt [main] WARN

Codegenerater convert int? into IntNull so won't compile

2016-12-01 Thread Jason Peixoto
We have an API using swagger at http://win7.tag.de.com/api/resources When using the code-gen for csharp it is converting nullable objects i.e. "int?" into a name that does not exist i.e. "IntNull" How to support nullable objects? java -jar

How to specify a property can be null or a reference

2016-12-01 Thread Daniel Popowich
I've seen a lot of talk on github issues regarding swagger's lack of support for oneOf and anyOf. Setting aside the merits of the arguments over there, I'm looking for a practical solution to the problem of a response object (or any object, really) that has a property that can be EITHER

Re: Codegenerater convert int? into IntNull so won't compile

2016-12-01 Thread tony tam
Please open this on the swagger-codegen project > On Dec 1, 2016, at 9:15 AM, Jason Peixoto wrote: > > [main] INFO io.swagger.codegen.languages.CSharpClientCodegen - Generating > code for .NET Framework v4.5 > > [main] WARN