mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 10:58:55 +00:00
Merge pull request #150 from msolujic/master
Added 'char' and 'short' to alowed special words for Java generator.
This commit is contained in:
commit
ee361e9ae2
@ -27,6 +27,8 @@ class BasicJavaGenerator extends BasicGenerator {
|
||||
"double",
|
||||
"int",
|
||||
"long",
|
||||
"short",
|
||||
"char",
|
||||
"float",
|
||||
"String",
|
||||
"boolean",
|
||||
@ -52,6 +54,8 @@ class BasicJavaGenerator extends BasicGenerator {
|
||||
"int" -> "Integer",
|
||||
"float" -> "Float",
|
||||
"long" -> "Long",
|
||||
"short" -> "Short",
|
||||
"char" -> "String",
|
||||
"double" -> "Double",
|
||||
"object" -> "Object",
|
||||
"integer" -> "Integer")
|
||||
@ -188,6 +192,7 @@ class BasicJavaGenerator extends BasicGenerator {
|
||||
case "Boolean" => "null"
|
||||
case "Integer" => "null"
|
||||
case "Long" => "null"
|
||||
case "Short" => "null"
|
||||
case "Float" => "null"
|
||||
case "Double" => "null"
|
||||
case "List" => {
|
||||
|
Loading…
Reference in New Issue
Block a user