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");

View File

@ -5,7 +5,7 @@
*
* This is a sample server Petstore server. You can find out more about Swagger at &lt;a href=\&quot;http://swagger.io\&quot;&gt;http://swagger.io&lt;/a&gt; or on irc.freenode.net, #swagger. For this sample, you can use the api key \&quot;special-key\&quot; to test the authorization filters
* Version: 1.0.0
* Generated at: 2016-01-27T23:29:24.021-07:00
* Generated at: 2016-01-27T23:51:03.092-07:00
* Generated by: class io.swagger.codegen.languages.JavascriptClosureAngularClientCodegen
*/
/**

View File

@ -5,7 +5,7 @@
*
* This is a sample server Petstore server. You can find out more about Swagger at &lt;a href=\&quot;http://swagger.io\&quot;&gt;http://swagger.io&lt;/a&gt; or on irc.freenode.net, #swagger. For this sample, you can use the api key \&quot;special-key\&quot; to test the authorization filters
* Version: 1.0.0
* Generated at: 2016-01-27T23:29:24.021-07:00
* Generated at: 2016-01-27T23:51:03.092-07:00
* Generated by: class io.swagger.codegen.languages.JavascriptClosureAngularClientCodegen
*/
/**

View File

@ -5,7 +5,7 @@
*
* This is a sample server Petstore server. You can find out more about Swagger at &lt;a href=\&quot;http://swagger.io\&quot;&gt;http://swagger.io&lt;/a&gt; or on irc.freenode.net, #swagger. For this sample, you can use the api key \&quot;special-key\&quot; to test the authorization filters
* Version: 1.0.0
* Generated at: 2016-01-27T23:29:24.021-07:00
* Generated at: 2016-01-27T23:51:03.092-07:00
* Generated by: class io.swagger.codegen.languages.JavascriptClosureAngularClientCodegen
*/
/**
@ -16,7 +16,6 @@
goog.provide('API.Client.UserApi');
goog.require('API.Client.User');
goog.require('java.util.List');
/**
* @constructor