Please open this on the swagger-codegen project

> On Dec 1, 2016, at 9:15 AM, Jason Peixoto <nanohexc...@gmail.com> wrote:
> 
> [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 io.swagger.codegen.languages.AbstractCSharpCodegen - int 
> (reserved word) cannot be used as model name. Renamed to ModelInt
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - int 
> (reserved word) cannot be used as model name. Renamed to ModelInt
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - int 
> (reserved word) cannot be used as model name. Renamed to ModelInt
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - int 
> (reserved word) cannot be used as model name. Renamed to ModelInt
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - int 
> (reserved word) cannot be used as model name. Renamed to ModelInt
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - int 
> (reserved word) cannot be used as model name. Renamed to ModelInt
> 
> 
> On Thursday, December 1, 2016 at 10:50:04 AM UTC-6, Jason Peixoto wrote:
> We have an API using swagger at http://win7.tag.de.com/api/resources 
> <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 modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate 
> \
> 
>  -i http://win7.tag.de.com/api/resources 
> <http://win7.tag.de.com/api/resources> 
> 
>  -l csharp \
> 
>  -o ~/tmp/csharp_api_client
> 
> 
> 
> 
> 
> We get something like 
> 
> [main] INFO io.swagger.codegen.AbstractGenerator - writing file 
> /Users/jasonpeixoto/tmp/csharp_api_client/docs//ValidateLoginRequest.md
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - null 
> (reserved word) cannot be used as model name. Renamed to ModelNull
> 
> [main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is 
> null. Default to ERROR_UNKNOWN
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - null 
> (reserved word) cannot be used as model name. Renamed to ModelNull
> 
> [main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is 
> null. Default to ERROR_UNKNOWN
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - null 
> (reserved word) cannot be used as model name. Renamed to ModelNull
> 
> [main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is 
> null. Default to ERROR_UNKNOWN
> 
> 
> 
> and
> 
> [main] INFO io.swagger.codegen.AbstractGenerator - writing file 
> /Users/jasonpeixoto/tmp/csharp_api_client/docs//ValidateLoginRequest.md
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - null 
> (reserved word) cannot be used as model name. Renamed to ModelNull
> 
> [main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is 
> null. Default to ERROR_UNKNOWN
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - null 
> (reserved word) cannot be used as model name. Renamed to ModelNull
> 
> [main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is 
> null. Default to ERROR_UNKNOWN
> 
> [main] WARN io.swagger.codegen.languages.AbstractCSharpCodegen - null 
> (reserved word) cannot be used as model name. Renamed to ModelNull
> 
> [main] ERROR io.swagger.codegen.DefaultCodegen - String to be sanitized is 
> null. Default to ERROR_UNKNOWN
> 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com 
> <mailto:swagger-swaggersocket+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to