forked from loafle/openapi-generator-original
Change indentation to +4 and map binary to string
This commit is contained in:
parent
b1a5080121
commit
b9eb26baff
@ -56,9 +56,12 @@ public class JavascriptClosureAngularClientCodegen extends DefaultCodegen implem
|
|||||||
importMapping = new HashMap<String, String>();
|
importMapping = new HashMap<String, String>();
|
||||||
defaultIncludes = new HashSet<String>(Arrays.asList(
|
defaultIncludes = new HashSet<String>(Arrays.asList(
|
||||||
"Object",
|
"Object",
|
||||||
"Array"
|
"Array",
|
||||||
|
"Blob"
|
||||||
));
|
));
|
||||||
|
|
||||||
|
typeMapping.put("binary", "string");
|
||||||
|
|
||||||
outputFolder = "generated-code/javascript-closure-angular";
|
outputFolder = "generated-code/javascript-closure-angular";
|
||||||
modelTemplateFiles.put("model.mustache", ".js");
|
modelTemplateFiles.put("model.mustache", ".js");
|
||||||
apiTemplateFiles.put("api.mustache", ".js");
|
apiTemplateFiles.put("api.mustache", ".js");
|
||||||
@ -170,8 +173,9 @@ public class JavascriptClosureAngularClientCodegen extends DefaultCodegen implem
|
|||||||
String type = null;
|
String type = null;
|
||||||
if (typeMapping.containsKey(swaggerType)) {
|
if (typeMapping.containsKey(swaggerType)) {
|
||||||
type = typeMapping.get(swaggerType);
|
type = typeMapping.get(swaggerType);
|
||||||
if (languageSpecificPrimitives.contains(type))
|
if (languageSpecificPrimitives.contains(type)) {
|
||||||
return type;
|
return type;
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
type = swaggerType;
|
type = swaggerType;
|
||||||
return type;
|
return type;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user