forked from loafle/openapi-generator-original
Merge pull request #2990 from jimschubert/cs/number_to_decimal
[csharp] map number/no format to Decimal
This commit is contained in:
commit
a1e9b8f81e
@ -77,6 +77,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
|||||||
"string",
|
"string",
|
||||||
"bool?",
|
"bool?",
|
||||||
"double?",
|
"double?",
|
||||||
|
"decimal?",
|
||||||
"int?",
|
"int?",
|
||||||
"long?",
|
"long?",
|
||||||
"float?",
|
"float?",
|
||||||
@ -112,7 +113,7 @@ public abstract class AbstractCSharpCodegen extends DefaultCodegen implements Co
|
|||||||
typeMapping.put("float", "float?");
|
typeMapping.put("float", "float?");
|
||||||
typeMapping.put("long", "long?");
|
typeMapping.put("long", "long?");
|
||||||
typeMapping.put("double", "double?");
|
typeMapping.put("double", "double?");
|
||||||
typeMapping.put("number", "double?");
|
typeMapping.put("number", "decimal?");
|
||||||
typeMapping.put("datetime", "DateTime?");
|
typeMapping.put("datetime", "DateTime?");
|
||||||
typeMapping.put("date", "DateTime?");
|
typeMapping.put("date", "DateTime?");
|
||||||
typeMapping.put("file", "System.IO.Stream");
|
typeMapping.put("file", "System.IO.Stream");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user