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 modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate 
\

 -i 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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to