forked from loafle/openapi-generator-original
Add default includes for Array and Object.
This commit is contained in:
@@ -53,6 +53,12 @@ public class JavascriptClosureAngularClientCodegen extends DefaultCodegen implem
|
|||||||
typeMapping.put("map", "Object");
|
typeMapping.put("map", "Object");
|
||||||
typeMapping.put("DateTime", "Date");
|
typeMapping.put("DateTime", "Date");
|
||||||
|
|
||||||
|
importMapping = new HashMap<String, String>();
|
||||||
|
defaultIncludes = new HashSet<String>(Arrays.asList(
|
||||||
|
"Object",
|
||||||
|
"Array"
|
||||||
|
));
|
||||||
|
|
||||||
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");
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Version: 1.0.0
|
* 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
|
* Generated by: class io.swagger.codegen.languages.JavascriptClosureAngularClientCodegen
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Version: 1.0.0
|
* 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
|
* Generated by: class io.swagger.codegen.languages.JavascriptClosureAngularClientCodegen
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
*
|
*
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
||||||
* Version: 1.0.0
|
* 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
|
* Generated by: class io.swagger.codegen.languages.JavascriptClosureAngularClientCodegen
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
goog.provide('API.Client.UserApi');
|
goog.provide('API.Client.UserApi');
|
||||||
|
|
||||||
goog.require('API.Client.User');
|
goog.require('API.Client.User');
|
||||||
goog.require('java.util.List');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
|
|||||||
Reference in New Issue
Block a user