forked from loafle/openapi-generator-original
dart now uses double instead of num to represent double
This commit is contained in:
parent
c39bf41d10
commit
be23d44f12
@ -52,9 +52,8 @@ public class DartClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
Arrays.asList(
|
Arrays.asList(
|
||||||
"String",
|
"String",
|
||||||
"bool",
|
"bool",
|
||||||
"num",
|
|
||||||
"int",
|
"int",
|
||||||
"float")
|
"double")
|
||||||
);
|
);
|
||||||
instantiationTypes.put("array", "List");
|
instantiationTypes.put("array", "List");
|
||||||
instantiationTypes.put("map", "Map");
|
instantiationTypes.put("map", "Map");
|
||||||
@ -66,11 +65,11 @@ public class DartClientCodegen extends DefaultCodegen implements CodegenConfig {
|
|||||||
typeMapping.put("boolean", "bool");
|
typeMapping.put("boolean", "bool");
|
||||||
typeMapping.put("string", "String");
|
typeMapping.put("string", "String");
|
||||||
typeMapping.put("int", "int");
|
typeMapping.put("int", "int");
|
||||||
typeMapping.put("float", "num");
|
typeMapping.put("float", "double");
|
||||||
typeMapping.put("long", "int");
|
typeMapping.put("long", "int");
|
||||||
typeMapping.put("short", "int");
|
typeMapping.put("short", "int");
|
||||||
typeMapping.put("char", "String");
|
typeMapping.put("char", "String");
|
||||||
typeMapping.put("double", "num");
|
typeMapping.put("double", "double");
|
||||||
typeMapping.put("object", "Object");
|
typeMapping.put("object", "Object");
|
||||||
typeMapping.put("integer", "int");
|
typeMapping.put("integer", "int");
|
||||||
typeMapping.put("Date", "DateTime");
|
typeMapping.put("Date", "DateTime");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user