Add default includes for Array and Object.

This commit is contained in:
Andrew Z Allen
2016-01-27 23:51:25 -07:00
parent af6926bd6f
commit b1a5080121
4 changed files with 9 additions and 4 deletions

View File

@@ -53,6 +53,12 @@ public class JavascriptClosureAngularClientCodegen extends DefaultCodegen implem
typeMapping.put("map", "Object");
typeMapping.put("DateTime", "Date");
importMapping = new HashMap<String, String>();
defaultIncludes = new HashSet<String>(Arrays.asList(
"Object",
"Array"
));
outputFolder = "generated-code/javascript-closure-angular";
modelTemplateFiles.put("model.mustache", ".js");
apiTemplateFiles.put("api.mustache", ".js");