Unescape HTML characters in JS docstring (#2636)

* unescape html characters in JS docstring

* better codee format
This commit is contained in:
William Cheng
2019-04-11 23:30:00 +08:00
committed by GitHub
parent c941b87067
commit 85d05981ec
18 changed files with 89 additions and 237 deletions

View File

@@ -56,13 +56,11 @@
*/
this.call123testSpecialTagsWithHttpInfo = function(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling call123testSpecialTags");
}
var pathParams = {
};
var queryParams = {

View File

@@ -56,13 +56,11 @@
*/
this.createXmlItemWithHttpInfo = function(xmlItem) {
var postBody = xmlItem;
// verify the required parameter 'xmlItem' is set
if (xmlItem === undefined || xmlItem === null) {
throw new Error("Missing the required parameter 'xmlItem' when calling createXmlItem");
}
var pathParams = {
};
var queryParams = {
@@ -109,7 +107,6 @@
opts = opts || {};
var postBody = opts['body'];
var pathParams = {
};
var queryParams = {
@@ -156,7 +153,6 @@
opts = opts || {};
var postBody = opts['body'];
var pathParams = {
};
var queryParams = {
@@ -203,7 +199,6 @@
opts = opts || {};
var postBody = opts['body'];
var pathParams = {
};
var queryParams = {
@@ -250,7 +245,6 @@
opts = opts || {};
var postBody = opts['body'];
var pathParams = {
};
var queryParams = {
@@ -288,19 +282,17 @@
/**
* For this test, the body for this request much reference a schema named `File`.
* For this test, the body for this request much reference a schema named `File`.
* @param {module:model/FileSchemaTestClass} body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
this.testBodyWithFileSchemaWithHttpInfo = function(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testBodyWithFileSchema");
}
var pathParams = {
};
var queryParams = {
@@ -324,7 +316,7 @@
}
/**
* For this test, the body for this request much reference a schema named `File`.
* For this test, the body for this request much reference a schema named `File`.
* @param {module:model/FileSchemaTestClass} body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
@@ -343,18 +335,15 @@
*/
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 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testBodyWithQueryParams");
}
var pathParams = {
};
var queryParams = {
@@ -392,20 +381,18 @@
/**
* To test \"client\" model
* To test \"client\" model
* To test \"client\" model
* To test \"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(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testClientModel");
}
var pathParams = {
};
var queryParams = {
@@ -429,8 +416,8 @@
}
/**
* To test \"client\" model
* To test \"client\" model
* To test \"client\" model
* To test \"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}
*/
@@ -465,28 +452,23 @@
this.testEndpointParametersWithHttpInfo = function(_number, _double, patternWithoutDelimiter, _byte, opts) {
opts = opts || {};
var postBody = null;
// verify the required parameter '_number' is set
if (_number === undefined || _number === null) {
throw new Error("Missing the required parameter '_number' when calling testEndpointParameters");
}
// verify the required parameter '_double' is set
if (_double === undefined || _double === null) {
throw new Error("Missing the required parameter '_double' when calling testEndpointParameters");
}
// verify the required parameter 'patternWithoutDelimiter' is set
if (patternWithoutDelimiter === undefined || patternWithoutDelimiter === null) {
throw new Error("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters");
}
// verify the required parameter '_byte' is set
if (_byte === undefined || _byte === null) {
throw new Error("Missing the required parameter '_byte' when calling testEndpointParameters");
}
var pathParams = {
};
var queryParams = {
@@ -556,20 +538,19 @@
* To test enum parameters
* @param {Object} opts Optional parameters
* @param {Array.<module:model/String>} opts.enumHeaderStringArray Header parameter enum test (string array)
* @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to &#39;-efg&#39;)
* @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg')
* @param {Array.<module:model/String>} opts.enumQueryStringArray Query parameter enum test (string array)
* @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to &#39;-efg&#39;)
* @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg')
* @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
* @param {Array.<module:model/String>} opts.enumFormStringArray Form parameter enum test (string array) (default to &#39;$&#39;)
* @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to &#39;-efg&#39;)
* @param {Array.<module:model/String>} opts.enumFormStringArray Form parameter enum test (string array) (default to '$')
* @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
this.testEnumParametersWithHttpInfo = function(opts) {
opts = opts || {};
var postBody = null;
var pathParams = {
};
var queryParams = {
@@ -608,13 +589,13 @@
* To test enum parameters
* @param {Object} opts Optional parameters
* @param {Array.<module:model/String>} opts.enumHeaderStringArray Header parameter enum test (string array)
* @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to &#39;-efg&#39;)
* @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg')
* @param {Array.<module:model/String>} opts.enumQueryStringArray Query parameter enum test (string array)
* @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to &#39;-efg&#39;)
* @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg')
* @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
* @param {Array.<module:model/String>} opts.enumFormStringArray Form parameter enum test (string array) (default to &#39;$&#39;)
* @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to &#39;-efg&#39;)
* @param {Array.<module:model/String>} opts.enumFormStringArray Form parameter enum test (string array) (default to '$')
* @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
this.testEnumParameters = function(opts) {
@@ -640,23 +621,19 @@
this.testGroupParametersWithHttpInfo = function(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) {
opts = opts || {};
var postBody = null;
// verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup === undefined || requiredStringGroup === null) {
throw new Error("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters");
}
// verify the required parameter 'requiredBooleanGroup' is set
if (requiredBooleanGroup === undefined || requiredBooleanGroup === null) {
throw new Error("Missing the required parameter 'requiredBooleanGroup' when calling testGroupParameters");
}
// verify the required parameter 'requiredInt64Group' is set
if (requiredInt64Group === undefined || requiredInt64Group === null) {
throw new Error("Missing the required parameter 'requiredInt64Group' when calling testGroupParameters");
}
var pathParams = {
};
var queryParams = {
@@ -712,13 +689,11 @@
*/
this.testInlineAdditionalPropertiesWithHttpInfo = function(param) {
var postBody = param;
// verify the required parameter 'param' is set
if (param === undefined || param === null) {
throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
}
var pathParams = {
};
var queryParams = {
@@ -762,18 +737,15 @@
*/
this.testJsonFormDataWithHttpInfo = function(param, param2) {
var postBody = null;
// verify the required parameter 'param' is set
if (param === undefined || param === null) {
throw new Error("Missing the required parameter 'param' when calling testJsonFormData");
}
// verify the required parameter 'param2' is set
if (param2 === undefined || param2 === null) {
throw new Error("Missing the required parameter 'param2' when calling testJsonFormData");
}
var pathParams = {
};
var queryParams = {

View File

@@ -56,13 +56,11 @@
*/
this.testClassnameWithHttpInfo = function(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testClassname");
}
var pathParams = {
};
var queryParams = {

View File

@@ -55,13 +55,11 @@
*/
this.addPetWithHttpInfo = function(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling addPet");
}
var pathParams = {
};
var queryParams = {
@@ -107,13 +105,11 @@
this.deletePetWithHttpInfo = function(petId, opts) {
opts = opts || {};
var postBody = null;
// verify the required parameter 'petId' is set
if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling deletePet");
}
var pathParams = {
'petId': petId
};
@@ -161,13 +157,11 @@
*/
this.findPetsByStatusWithHttpInfo = function(status) {
var postBody = null;
// verify the required parameter 'status' is set
if (status === undefined || status === null) {
throw new Error("Missing the required parameter 'status' when calling findPetsByStatus");
}
var pathParams = {
};
var queryParams = {
@@ -216,13 +210,11 @@
*/
this.findPetsByTagsWithHttpInfo = function(tags) {
var postBody = null;
// verify the required parameter 'tags' is set
if (tags === undefined || tags === null) {
throw new Error("Missing the required parameter 'tags' when calling findPetsByTags");
}
var pathParams = {
};
var queryParams = {
@@ -271,13 +263,11 @@
*/
this.getPetByIdWithHttpInfo = function(petId) {
var postBody = null;
// verify the required parameter 'petId' is set
if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling getPetById");
}
var pathParams = {
'petId': petId
};
@@ -322,13 +312,11 @@
*/
this.updatePetWithHttpInfo = function(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling updatePet");
}
var pathParams = {
};
var queryParams = {
@@ -375,13 +363,11 @@
this.updatePetWithFormWithHttpInfo = function(petId, opts) {
opts = opts || {};
var postBody = null;
// verify the required parameter 'petId' is set
if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling updatePetWithForm");
}
var pathParams = {
'petId': petId
};
@@ -434,13 +420,11 @@
this.uploadFileWithHttpInfo = function(petId, opts) {
opts = opts || {};
var postBody = null;
// verify the required parameter 'petId' is set
if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling uploadFile");
}
var pathParams = {
'petId': petId
};
@@ -493,18 +477,15 @@
this.uploadFileWithRequiredFileWithHttpInfo = function(petId, requiredFile, opts) {
opts = opts || {};
var postBody = null;
// verify the required parameter 'petId' is set
if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile");
}
// verify the required parameter 'requiredFile' is set
if (requiredFile === undefined || requiredFile === null) {
throw new Error("Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile");
}
var pathParams = {
'petId': petId
};

View File

@@ -50,19 +50,17 @@
/**
* Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
* @param {String} orderId ID of the order that needs to be deleted
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/
this.deleteOrderWithHttpInfo = function(orderId) {
var postBody = null;
// verify the required parameter 'orderId' is set
if (orderId === undefined || orderId === null) {
throw new Error("Missing the required parameter 'orderId' when calling deleteOrder");
}
var pathParams = {
'order_id': orderId
};
@@ -88,7 +86,7 @@
/**
* Delete purchase order by ID
* For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
* For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
* @param {String} orderId ID of the order that needs to be deleted
* @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/
@@ -108,7 +106,6 @@
this.getInventoryWithHttpInfo = function() {
var postBody = null;
var pathParams = {
};
var queryParams = {
@@ -146,19 +143,17 @@
/**
* Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
* @param {Number} orderId ID of pet that needs to be fetched
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
*/
this.getOrderByIdWithHttpInfo = function(orderId) {
var postBody = null;
// verify the required parameter 'orderId' is set
if (orderId === undefined || orderId === null) {
throw new Error("Missing the required parameter 'orderId' when calling getOrderById");
}
var pathParams = {
'order_id': orderId
};
@@ -184,7 +179,7 @@
/**
* Find purchase order by ID
* For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
* For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
* @param {Number} orderId ID of pet that needs to be fetched
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/
@@ -203,13 +198,11 @@
*/
this.placeOrderWithHttpInfo = function(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling placeOrder");
}
var pathParams = {
};
var queryParams = {

View File

@@ -56,13 +56,11 @@
*/
this.createUserWithHttpInfo = function(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling createUser");
}
var pathParams = {
};
var queryParams = {
@@ -106,13 +104,11 @@
*/
this.createUsersWithArrayInputWithHttpInfo = function(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput");
}
var pathParams = {
};
var queryParams = {
@@ -155,13 +151,11 @@
*/
this.createUsersWithListInputWithHttpInfo = function(body) {
var postBody = body;
// verify the required parameter 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput");
}
var pathParams = {
};
var queryParams = {
@@ -205,13 +199,11 @@
*/
this.deleteUserWithHttpInfo = function(username) {
var postBody = null;
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling deleteUser");
}
var pathParams = {
'username': username
};
@@ -256,13 +248,11 @@
*/
this.getUserByNameWithHttpInfo = function(username) {
var postBody = null;
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling getUserByName");
}
var pathParams = {
'username': username
};
@@ -307,18 +297,15 @@
*/
this.loginUserWithHttpInfo = function(username, password) {
var postBody = null;
// verify the required parameter 'username' is set
if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling loginUser");
}
// verify the required parameter 'password' is set
if (password === undefined || password === null) {
throw new Error("Missing the required parameter 'password' when calling loginUser");
}
var pathParams = {
};
var queryParams = {
@@ -364,7 +351,6 @@
this.logoutUserWithHttpInfo = function() {
var postBody = null;
var pathParams = {
};
var queryParams = {
@@ -408,18 +394,15 @@
*/
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 'body' is set
if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling updateUser");
}
var pathParams = {
'username': username
};