mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 12:26:11 +00:00
Use JS ES6 as the default (#1825)
* set JS ES6 as the default * update doc
This commit is contained in:
@@ -51,15 +51,15 @@
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param {module:model/Client} client client model
|
||||
* @param {module:model/Client} body client model
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
|
||||
*/
|
||||
this.call123testSpecialTagsWithHttpInfo = function(client) {
|
||||
var postBody = client;
|
||||
this.call123testSpecialTagsWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client === undefined || client === null) {
|
||||
throw new Error("Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling call123testSpecialTags");
|
||||
}
|
||||
|
||||
|
||||
@@ -89,11 +89,11 @@
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* @param {module:model/Client} client client model
|
||||
* @param {module:model/Client} body client model
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
|
||||
*/
|
||||
this.call123testSpecialTags = function(client) {
|
||||
return this.call123testSpecialTagsWithHttpInfo(client)
|
||||
this.call123testSpecialTags = function(body) {
|
||||
return this.call123testSpecialTagsWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
|
||||
@@ -99,12 +99,12 @@
|
||||
/**
|
||||
* Test serialization of object with outer number type
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {module:model/OuterComposite} opts.outerComposite Input composite as post body
|
||||
* @param {module:model/OuterComposite} opts.body Input composite as post body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterComposite} and HTTP response
|
||||
*/
|
||||
this.fakeOuterCompositeSerializeWithHttpInfo = function(opts) {
|
||||
opts = opts || {};
|
||||
var postBody = opts['outerComposite'];
|
||||
var postBody = opts['body'];
|
||||
|
||||
|
||||
var pathParams = {
|
||||
@@ -133,7 +133,7 @@
|
||||
/**
|
||||
* Test serialization of object with outer number type
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {module:model/OuterComposite} opts.outerComposite Input composite as post body
|
||||
* @param {module:model/OuterComposite} opts.body Input composite as post body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OuterComposite}
|
||||
*/
|
||||
this.fakeOuterCompositeSerialize = function(opts) {
|
||||
@@ -242,15 +242,15 @@
|
||||
|
||||
/**
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* @param {module:model/FileSchemaTestClass} fileSchemaTestClass
|
||||
* @param {module:model/FileSchemaTestClass} body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.testBodyWithFileSchemaWithHttpInfo = function(fileSchemaTestClass) {
|
||||
var postBody = fileSchemaTestClass;
|
||||
this.testBodyWithFileSchemaWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass === undefined || fileSchemaTestClass === null) {
|
||||
throw new Error("Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
||||
}
|
||||
|
||||
|
||||
@@ -279,11 +279,11 @@
|
||||
|
||||
/**
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* @param {module:model/FileSchemaTestClass} fileSchemaTestClass
|
||||
* @param {module:model/FileSchemaTestClass} body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.testBodyWithFileSchema = function(fileSchemaTestClass) {
|
||||
return this.testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass)
|
||||
this.testBodyWithFileSchema = function(body) {
|
||||
return this.testBodyWithFileSchemaWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
@@ -292,20 +292,20 @@
|
||||
|
||||
/**
|
||||
* @param {String} query
|
||||
* @param {module:model/User} user
|
||||
* @param {module:model/User} body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.testBodyWithQueryParamsWithHttpInfo = function(query, user) {
|
||||
var postBody = user;
|
||||
this.testBodyWithQueryParamsWithHttpInfo = function(query, body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'query' is set
|
||||
if (query === undefined || query === null) {
|
||||
throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user === undefined || user === null) {
|
||||
throw new Error("Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
|
||||
@@ -335,11 +335,11 @@
|
||||
|
||||
/**
|
||||
* @param {String} query
|
||||
* @param {module:model/User} user
|
||||
* @param {module:model/User} body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.testBodyWithQueryParams = function(query, user) {
|
||||
return this.testBodyWithQueryParamsWithHttpInfo(query, user)
|
||||
this.testBodyWithQueryParams = function(query, body) {
|
||||
return this.testBodyWithQueryParamsWithHttpInfo(query, body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
@@ -349,15 +349,15 @@
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* @param {module:model/Client} client client model
|
||||
* @param {module:model/Client} body client model
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
|
||||
*/
|
||||
this.testClientModelWithHttpInfo = function(client) {
|
||||
var postBody = client;
|
||||
this.testClientModelWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client === undefined || client === null) {
|
||||
throw new Error("Missing the required parameter 'client' when calling testClientModel");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling testClientModel");
|
||||
}
|
||||
|
||||
|
||||
@@ -387,11 +387,11 @@
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* @param {module:model/Client} client client model
|
||||
* @param {module:model/Client} body client model
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
|
||||
*/
|
||||
this.testClientModel = function(client) {
|
||||
return this.testClientModelWithHttpInfo(client)
|
||||
this.testClientModel = function(body) {
|
||||
return this.testClientModelWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
@@ -666,15 +666,15 @@
|
||||
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
* @param {Object.<String, {String: String}>} requestBody request body
|
||||
* @param {Object.<String, {String: String}>} param request body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.testInlineAdditionalPropertiesWithHttpInfo = function(requestBody) {
|
||||
var postBody = requestBody;
|
||||
this.testInlineAdditionalPropertiesWithHttpInfo = function(param) {
|
||||
var postBody = param;
|
||||
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody === undefined || requestBody === null) {
|
||||
throw new Error("Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||
// verify the required parameter 'param' is set
|
||||
if (param === undefined || param === null) {
|
||||
throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
||||
}
|
||||
|
||||
|
||||
@@ -703,11 +703,11 @@
|
||||
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
* @param {Object.<String, {String: String}>} requestBody request body
|
||||
* @param {Object.<String, {String: String}>} param request body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.testInlineAdditionalProperties = function(requestBody) {
|
||||
return this.testInlineAdditionalPropertiesWithHttpInfo(requestBody)
|
||||
this.testInlineAdditionalProperties = function(param) {
|
||||
return this.testInlineAdditionalPropertiesWithHttpInfo(param)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
|
||||
@@ -51,15 +51,15 @@
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* @param {module:model/Client} client client model
|
||||
* @param {module:model/Client} body client model
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
|
||||
*/
|
||||
this.testClassnameWithHttpInfo = function(client) {
|
||||
var postBody = client;
|
||||
this.testClassnameWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'client' is set
|
||||
if (client === undefined || client === null) {
|
||||
throw new Error("Missing the required parameter 'client' when calling testClassname");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling testClassname");
|
||||
}
|
||||
|
||||
|
||||
@@ -89,11 +89,11 @@
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* @param {module:model/Client} client client model
|
||||
* @param {module:model/Client} body client model
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
|
||||
*/
|
||||
this.testClassname = function(client) {
|
||||
return this.testClassnameWithHttpInfo(client)
|
||||
this.testClassname = function(body) {
|
||||
return this.testClassnameWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
|
||||
@@ -50,15 +50,15 @@
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
* @param {module:model/Pet} pet Pet object that needs to be added to the store
|
||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.addPetWithHttpInfo = function(pet) {
|
||||
var postBody = pet;
|
||||
this.addPetWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet === undefined || pet === null) {
|
||||
throw new Error("Missing the required parameter 'pet' when calling addPet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling addPet");
|
||||
}
|
||||
|
||||
|
||||
@@ -87,11 +87,11 @@
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
* @param {module:model/Pet} pet Pet object that needs to be added to the store
|
||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.addPet = function(pet) {
|
||||
return this.addPetWithHttpInfo(pet)
|
||||
this.addPet = function(body) {
|
||||
return this.addPetWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
@@ -322,15 +322,15 @@
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
* @param {module:model/Pet} pet Pet object that needs to be added to the store
|
||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.updatePetWithHttpInfo = function(pet) {
|
||||
var postBody = pet;
|
||||
this.updatePetWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet === undefined || pet === null) {
|
||||
throw new Error("Missing the required parameter 'pet' when calling updatePet");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling updatePet");
|
||||
}
|
||||
|
||||
|
||||
@@ -359,11 +359,11 @@
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
* @param {module:model/Pet} pet Pet object that needs to be added to the store
|
||||
* @param {module:model/Pet} body Pet object that needs to be added to the store
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.updatePet = function(pet) {
|
||||
return this.updatePetWithHttpInfo(pet)
|
||||
this.updatePet = function(body) {
|
||||
return this.updatePetWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
|
||||
@@ -201,15 +201,15 @@
|
||||
|
||||
/**
|
||||
* Place an order for a pet
|
||||
* @param {module:model/Order} order order placed for purchasing the pet
|
||||
* @param {module:model/Order} body order placed for purchasing the pet
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
|
||||
*/
|
||||
this.placeOrderWithHttpInfo = function(order) {
|
||||
var postBody = order;
|
||||
this.placeOrderWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'order' is set
|
||||
if (order === undefined || order === null) {
|
||||
throw new Error("Missing the required parameter 'order' when calling placeOrder");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling placeOrder");
|
||||
}
|
||||
|
||||
|
||||
@@ -238,11 +238,11 @@
|
||||
|
||||
/**
|
||||
* Place an order for a pet
|
||||
* @param {module:model/Order} order order placed for purchasing the pet
|
||||
* @param {module:model/Order} body order placed for purchasing the pet
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
|
||||
*/
|
||||
this.placeOrder = function(order) {
|
||||
return this.placeOrderWithHttpInfo(order)
|
||||
this.placeOrder = function(body) {
|
||||
return this.placeOrderWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
|
||||
@@ -51,15 +51,15 @@
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param {module:model/User} user Created user object
|
||||
* @param {module:model/User} body Created user object
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.createUserWithHttpInfo = function(user) {
|
||||
var postBody = user;
|
||||
this.createUserWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user === undefined || user === null) {
|
||||
throw new Error("Missing the required parameter 'user' when calling createUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling createUser");
|
||||
}
|
||||
|
||||
|
||||
@@ -89,11 +89,11 @@
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* @param {module:model/User} user Created user object
|
||||
* @param {module:model/User} body Created user object
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.createUser = function(user) {
|
||||
return this.createUserWithHttpInfo(user)
|
||||
this.createUser = function(body) {
|
||||
return this.createUserWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
@@ -102,15 +102,15 @@
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param {Array.<User>} user List of user object
|
||||
* @param {Array.<User>} body List of user object
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.createUsersWithArrayInputWithHttpInfo = function(user) {
|
||||
var postBody = user;
|
||||
this.createUsersWithArrayInputWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user === undefined || user === null) {
|
||||
throw new Error("Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
||||
}
|
||||
|
||||
|
||||
@@ -139,11 +139,11 @@
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param {Array.<User>} user List of user object
|
||||
* @param {Array.<User>} body List of user object
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.createUsersWithArrayInput = function(user) {
|
||||
return this.createUsersWithArrayInputWithHttpInfo(user)
|
||||
this.createUsersWithArrayInput = function(body) {
|
||||
return this.createUsersWithArrayInputWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
@@ -152,15 +152,15 @@
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param {Array.<User>} user List of user object
|
||||
* @param {Array.<User>} body List of user object
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.createUsersWithListInputWithHttpInfo = function(user) {
|
||||
var postBody = user;
|
||||
this.createUsersWithListInputWithHttpInfo = function(body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user === undefined || user === null) {
|
||||
throw new Error("Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput");
|
||||
}
|
||||
|
||||
|
||||
@@ -189,11 +189,11 @@
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
* @param {Array.<User>} user List of user object
|
||||
* @param {Array.<User>} body List of user object
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.createUsersWithListInput = function(user) {
|
||||
return this.createUsersWithListInputWithHttpInfo(user)
|
||||
this.createUsersWithListInput = function(body) {
|
||||
return this.createUsersWithListInputWithHttpInfo(body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
@@ -410,20 +410,20 @@
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param {String} username name that need to be deleted
|
||||
* @param {module:model/User} user Updated user object
|
||||
* @param {module:model/User} body Updated user object
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
this.updateUserWithHttpInfo = function(username, user) {
|
||||
var postBody = user;
|
||||
this.updateUserWithHttpInfo = function(username, body) {
|
||||
var postBody = body;
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username === undefined || username === null) {
|
||||
throw new Error("Missing the required parameter 'username' when calling updateUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'user' is set
|
||||
if (user === undefined || user === null) {
|
||||
throw new Error("Missing the required parameter 'user' when calling updateUser");
|
||||
// verify the required parameter 'body' is set
|
||||
if (body === undefined || body === null) {
|
||||
throw new Error("Missing the required parameter 'body' when calling updateUser");
|
||||
}
|
||||
|
||||
|
||||
@@ -455,11 +455,11 @@
|
||||
* Updated user
|
||||
* This can only be done by the logged in user.
|
||||
* @param {String} username name that need to be deleted
|
||||
* @param {module:model/User} user Updated user object
|
||||
* @param {module:model/User} body Updated user object
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
|
||||
*/
|
||||
this.updateUser = function(username, user) {
|
||||
return this.updateUserWithHttpInfo(username, user)
|
||||
this.updateUser = function(username, body) {
|
||||
return this.updateUserWithHttpInfo(username, body)
|
||||
.then(function(response_and_data) {
|
||||
return response_and_data.data;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user