mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
Some cleanup
This commit is contained in:
parent
14630c7632
commit
40d83e7f52
@ -4,7 +4,7 @@
|
||||
define(['../ApiClient'{{#imports}}, '../model/{{import}}'{{/imports}}], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient.js'){{#imports}}, require('../model/{{import}}.js'){{/imports}});
|
||||
module.exports = factory(require('../ApiClient'){{#imports}}, require('../model/{{import}}'){{/imports}});
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.{{moduleName}}) {
|
||||
@ -18,7 +18,7 @@
|
||||
var {{classname}} = function {{classname}}(apiClient) {
|
||||
this.apiClient = apiClient || ApiClient.default;
|
||||
|
||||
var self = this;
|
||||
var self = this;
|
||||
{{#operations}}
|
||||
{{#operation}}
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
define(['./ApiClient'{{#models}}, './model/{{importPath}}'{{/models}}{{#apiInfo}}{{#apis}}, './api/{{importPath}}'{{/apis}}{{/apiInfo}}], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('./ApiClient.js'){{#models}}, require('./model/{{importPath}}.js'){{/models}}{{#apiInfo}}{{#apis}}, require('./api/{{importPath}}.js'){{/apis}}{{/apiInfo}});
|
||||
module.exports = factory(require('./ApiClient'){{#models}}, require('./model/{{importPath}}'){{/models}}{{#apiInfo}}{{#apis}}, require('./api/{{importPath}}'){{/apis}}{{/apiInfo}});
|
||||
}
|
||||
}(function(ApiClient{{#models}}, {{importPath}}{{/models}}{{#apiInfo}}{{#apis}}, {{importPath}}{{/apis}}{{/apiInfo}}) {
|
||||
'use strict';
|
||||
|
@ -4,7 +4,7 @@
|
||||
define([undefined{{#imports}}, './{{import}}'{{/imports}}], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(undefined{{#imports}}, require('./{{import}}.js'){{/imports}});
|
||||
module.exports = factory(undefined{{#imports}}, require('./{{import}}'){{/imports}});
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.{{moduleName}}) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
define(['../ApiClient', '../model/Pet'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient.js'), require('../model/Pet.js'));
|
||||
module.exports = factory(require('../ApiClient'), require('../model/Pet'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
@ -18,7 +18,7 @@
|
||||
var PetApi = function PetApi(apiClient) {
|
||||
this.apiClient = apiClient || ApiClient.default;
|
||||
|
||||
var self = this;
|
||||
var self = this;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
define(['../ApiClient', '../model/Order'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient.js'), require('../model/Order.js'));
|
||||
module.exports = factory(require('../ApiClient'), require('../model/Order'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
@ -18,7 +18,7 @@
|
||||
var StoreApi = function StoreApi(apiClient) {
|
||||
this.apiClient = apiClient || ApiClient.default;
|
||||
|
||||
var self = this;
|
||||
var self = this;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
define(['../ApiClient', '../model/User'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('../ApiClient.js'), require('../model/User.js'));
|
||||
module.exports = factory(require('../ApiClient'), require('../model/User'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
@ -18,7 +18,7 @@
|
||||
var UserApi = function UserApi(apiClient) {
|
||||
this.apiClient = apiClient || ApiClient.default;
|
||||
|
||||
var self = this;
|
||||
var self = this;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -4,7 +4,7 @@
|
||||
define(['./ApiClient', './model/User', './model/Category', './model/Pet', './model/Tag', './model/Order', './api/UserApi', './api/StoreApi', './api/PetApi'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(require('./ApiClient.js'), require('./model/User.js'), require('./model/Category.js'), require('./model/Pet.js'), require('./model/Tag.js'), require('./model/Order.js'), require('./api/UserApi.js'), require('./api/StoreApi.js'), require('./api/PetApi.js'));
|
||||
module.exports = factory(require('./ApiClient'), require('./model/User'), require('./model/Category'), require('./model/Pet'), require('./model/Tag'), require('./model/Order'), require('./api/UserApi'), require('./api/StoreApi'), require('./api/PetApi'));
|
||||
}
|
||||
}(function(ApiClient, User, Category, Pet, Tag, Order, UserApi, StoreApi, PetApi) {
|
||||
'use strict';
|
||||
|
@ -4,7 +4,7 @@
|
||||
define([undefined, './Category', './Tag'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports, like Node.
|
||||
module.exports = factory(undefined, require('./Category.js'), require('./Tag.js'));
|
||||
module.exports = factory(undefined, require('./Category'), require('./Tag'));
|
||||
} else {
|
||||
// Browser globals (root is window)
|
||||
if (!root.SwaggerPetstore) {
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user