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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 89 additions and 237 deletions

View File

@ -2,7 +2,7 @@
{{=< >=}}(function(root, factory) { {{=< >=}}(function(root, factory) {
if (typeof define === 'function' && define.amd) { if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module. // AMD. Register as an anonymous module.
define(['<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient'<#imports>, '<#invokerPackage><&invokerPackage>/</invokerPackage><#modelPackage><&modelPackage>/</modelPackage><import>'</imports>], factory); define(['<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient'<#imports>, '<#invokerPackage><&invokerPackage>/</invokerPackage><#modelPackage><&modelPackage>/</modelPackage><&import>'</imports>], factory);
} else if (typeof module === 'object' && module.exports) { } else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node. // CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient')<#imports>, require('../<#modelPackage><&modelPackage>/</modelPackage><import>')</imports>); module.exports = factory(require('../ApiClient')<#imports>, require('../<#modelPackage><&modelPackage>/</modelPackage><import>')</imports>);
@ -13,19 +13,19 @@
} }
root.<&moduleName>.<&classname> = factory(root.<&moduleName>.ApiClient<#imports>, root.<&moduleName>.<import></imports>); root.<&moduleName>.<&classname> = factory(root.<&moduleName>.ApiClient<#imports>, root.<&moduleName>.<import></imports>);
} }
}(this, function(ApiClient<#imports>, <import></imports>) { }(this, function(ApiClient<#imports>, <&import></imports>) {
'use strict'; 'use strict';
<#emitJSDoc> /** <#emitJSDoc> /**
* <baseName> service. * <baseName> service.
* @module <#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><classname> * @module <#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>
* @version <projectVersion> * @version <projectVersion>
*/ */
/** /**
* Constructs a new <&classname>. <#description> * Constructs a new <&classname>. <#description>
* <description></description> * <&description></description>
* @alias module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><classname> * @alias module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>
* @class * @class
* @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient} [apiClient] Optional API client implementation to use, * @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient#instance} if unspecified. * default to {@link module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient#instance} if unspecified.
@ -43,24 +43,26 @@
*/</usePromises> */</usePromises>
/**<#summary> /**<#summary>
* <summary></summary><#notes> * <&summary></summary><#notes>
* <notes></notes><#allParams><#required> * <&notes></notes><#allParams><#required>
* @param {<&vendorExtensions.x-jsdoc-type>} <paramName> <description></required></allParams><#hasOptionalParams> * @param {<&vendorExtensions.x-jsdoc-type>} <&paramName> <&description></required></allParams><#hasOptionalParams>
* @param {Object} opts Optional parameters<#allParams><^required> * @param {Object} opts Optional parameters<#allParams><^required>
* @param {<&vendorExtensions.x-jsdoc-type>} opts.<paramName> <description><#defaultValue> (default to <.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises> * @param {<&vendorExtensions.x-jsdoc-type>} opts.<&paramName> <&description><#defaultValue> (default to <&.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises>
* @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<operationId>Callback} callback The callback function, accepting three arguments: error, data, response<#returnType> * @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<&operationId>Callback} callback The callback function, accepting three arguments: error, data, response<#returnType>
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises><#usePromises> * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises><#usePromises>
* @return {Promise} a {@link https://www.promisejs.org/|Promise}<#returnType>, with an object containing data of type {@link <&vendorExtensions.x-jsdoc-type>} and HTTP response</returnType><^returnType>, with an object containing HTTP response</returnType></usePromises> * @return {Promise} a {@link https://www.promisejs.org/|Promise}<#returnType>, with an object containing data of type {@link <&vendorExtensions.x-jsdoc-type>} and HTTP response</returnType><^returnType>, with an object containing HTTP response</returnType></usePromises>
*/ */
</emitJSDoc> this.<operationId><#usePromises>WithHttpInfo</usePromises> = function(<vendorExtensions.x-codegen-argList>) {<#hasOptionalParams> </emitJSDoc> this.<operationId><#usePromises>WithHttpInfo</usePromises> = function(<vendorExtensions.x-codegen-argList>) {<#hasOptionalParams>
opts = opts || {};</hasOptionalParams> opts = opts || {};</hasOptionalParams>
var postBody = <#bodyParam><#required><paramName></required><^required>opts['<paramName>']</required></bodyParam><^bodyParam>null</bodyParam>; var postBody = <#bodyParam><#required><paramName></required><^required>opts['<paramName>']</required></bodyParam><^bodyParam>null</bodyParam>;
<#allParams><#required> <#allParams>
<#required>
// verify the required parameter '<paramName>' is set // verify the required parameter '<paramName>' is set
if (<paramName> === undefined || <paramName> === null) { if (<paramName> === undefined || <paramName> === null) {
throw new Error("Missing the required parameter '<paramName>' when calling <operationId>"); throw new Error("Missing the required parameter '<paramName>' when calling <operationId>");
} }
</required></allParams> </required>
</allParams>
var pathParams = {<#pathParams> var pathParams = {<#pathParams>
'<baseName>': <#required><paramName></required><^required>opts['<paramName>']</required><#hasMore>,</hasMore></pathParams> '<baseName>': <#required><paramName></required><^required>opts['<paramName>']</required><#hasMore>,</hasMore></pathParams>
@ -106,12 +108,12 @@
<#emitJSDoc> <#emitJSDoc>
/**<#summary> /**<#summary>
* <summary></summary><#notes> * <&summary></summary><#notes>
* <notes></notes><#allParams><#required> * <&notes></notes><#allParams><#required>
* @param {<&vendorExtensions.x-jsdoc-type>} <paramName> <description></required></allParams><#hasOptionalParams> * @param {<&vendorExtensions.x-jsdoc-type>} <&paramName> <&description></required></allParams><#hasOptionalParams>
* @param {Object} opts Optional parameters<#allParams><^required> * @param {Object} opts Optional parameters<#allParams><^required>
* @param {<&vendorExtensions.x-jsdoc-type>} opts.<paramName> <description><#defaultValue> (default to <.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises> * @param {<&vendorExtensions.x-jsdoc-type>} opts.<&paramName> <&description><#defaultValue> (default to <&.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises>
* @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<operationId>Callback} callback The callback function, accepting three arguments: error, data, response<#returnType> * @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<&operationId>Callback} callback The callback function, accepting three arguments: error, data, response<#returnType>
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises><#usePromises> * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises><#usePromises>
* @return {Promise} a {@link https://www.promisejs.org/|Promise}<#returnType>, with data of type {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises> * @return {Promise} a {@link https://www.promisejs.org/|Promise}<#returnType>, with data of type {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises>
*/ */

View File

@ -2,20 +2,20 @@
{{=< >=}} {{=< >=}}
import ApiClient from "../ApiClient"; import ApiClient from "../ApiClient";
<#imports>import <import> from '../<#modelPackage><&modelPackage>/</modelPackage><import>'; <#imports>import <&import> from '../<#modelPackage><&modelPackage>/</modelPackage><import>';
</imports> </imports>
<#emitJSDoc>/** <#emitJSDoc>/**
* <baseName> service. * <baseName> service.
* @module <#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><classname> * @module <#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><classname>
* @version <projectVersion> * @version <&projectVersion>
*/</emitJSDoc> */</emitJSDoc>
export default class <classname> { export default class <&classname> {
<#emitJSDoc>/** <#emitJSDoc>/**
* Constructs a new <&classname>. <#description> * Constructs a new <&classname>. <#description>
* <description></description> * <description></description>
* @alias module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><classname> * @alias module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><classname>
* @class * @class
* @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient} [apiClient] Optional API client implementation to use, * @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient} [apiClient] Optional API client implementation to use,
* default to {@link module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient#instance} if unspecified. * default to {@link module:<#invokerPackage><&invokerPackage>/</invokerPackage>ApiClient#instance} if unspecified.
@ -26,20 +26,20 @@ export default class <classname> {
<#operations><#operation><#emitJSDoc><^usePromises> <#operations><#operation><#emitJSDoc><^usePromises>
/** /**
* Callback function to receive the result of the <operationId> operation. * Callback function to receive the result of the <&operationId> operation.
* @callback module:<#invokerPackage><invokerPackage>/</invokerPackage><#apiPackage><apiPackage>/</apiPackage><classname>~<operationId>Callback * @callback module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<&operationId>Callback
* @param {String} error Error message, if any. * @param {String} error Error message, if any.
* @param <#vendorExtensions.x-jsdoc-type>{<&vendorExtensions.x-jsdoc-type>} data The data returned by the service call.</vendorExtensions.x-jsdoc-type><^vendorExtensions.x-jsdoc-type>data This operation does not return a value.</vendorExtensions.x-jsdoc-type> * @param <#vendorExtensions.x-jsdoc-type>{<&vendorExtensions.x-jsdoc-type>} data The data returned by the service call.</vendorExtensions.x-jsdoc-type><^vendorExtensions.x-jsdoc-type>data This operation does not return a value.</vendorExtensions.x-jsdoc-type>
* @param {String} response The complete HTTP response. * @param {String} response The complete HTTP response.
*/</usePromises> */</usePromises>
/**<#summary> /**<#summary>
* <summary></summary><#notes> * <&summary></summary><#notes>
* <notes></notes><#allParams><#required> * <&notes></notes><#allParams><#required>
* @param {<&vendorExtensions.x-jsdoc-type>} <paramName> <description></required></allParams><#hasOptionalParams> * @param {<&vendorExtensions.x-jsdoc-type>} <&paramName> <&description></required></allParams><#hasOptionalParams>
* @param {Object} opts Optional parameters<#allParams><^required> * @param {Object} opts Optional parameters<#allParams><^required>
* @param {<&vendorExtensions.x-jsdoc-type>} opts.<paramName> <description><#defaultValue> (default to <.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises> * @param {<&vendorExtensions.x-jsdoc-type>} opts.<&paramName> <&description><#defaultValue> (default to <&.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises>
* @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<operationId>Callback} callback The callback function, accepting three arguments: error, data, response<#returnType> * @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<&operationId>Callback} callback The callback function, accepting three arguments: error, data, response<#returnType>
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises><#usePromises> * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises><#usePromises>
* @return {Promise} a {@link https://www.promisejs.org/|Promise}<#returnType>, with an object containing data of type {@link <&vendorExtensions.x-jsdoc-type>} and HTTP response</returnType><^returnType>, with an object containing HTTP response</returnType></usePromises> * @return {Promise} a {@link https://www.promisejs.org/|Promise}<#returnType>, with an object containing data of type {@link <&vendorExtensions.x-jsdoc-type>} and HTTP response</returnType><^returnType>, with an object containing HTTP response</returnType></usePromises>
*/ */
@ -95,12 +95,12 @@ export default class <classname> {
<#emitJSDoc> <#emitJSDoc>
/**<#summary> /**<#summary>
* <summary></summary><#notes> * <&summary></summary><#notes>
* <notes></notes><#allParams><#required> * <&notes></notes><#allParams><#required>
* @param {<&vendorExtensions.x-jsdoc-type>} <paramName> <description></required></allParams><#hasOptionalParams> * @param {<&vendorExtensions.x-jsdoc-type>} <&paramName> <&description></required></allParams><#hasOptionalParams>
* @param {Object} opts Optional parameters<#allParams><^required> * @param {Object} opts Optional parameters<#allParams><^required>
* @param {<&vendorExtensions.x-jsdoc-type>} opts.<paramName> <description><#defaultValue> (default to <.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises> * @param {<&vendorExtensions.x-jsdoc-type>} opts.<&paramName> <&description><#defaultValue> (default to <&.>)</defaultValue></required></allParams></hasOptionalParams><^usePromises>
* @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<operationId>Callback} callback The callback function, accepting three arguments: error, data, response<#returnType> * @param {module:<#invokerPackage><&invokerPackage>/</invokerPackage><#apiPackage><&apiPackage>/</apiPackage><&classname>~<&operationId>Callback} callback The callback function, accepting three arguments: error, data, response<#returnType>
* data is of type: {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises><#usePromises> * data is of type: {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises><#usePromises>
* @return {Promise} a {@link https://www.promisejs.org/|Promise}<#returnType>, with data of type {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises> * @return {Promise} a {@link https://www.promisejs.org/|Promise}<#returnType>, with data of type {@link <&vendorExtensions.x-jsdoc-type>}</returnType></usePromises>
*/ */

View File

@ -244,7 +244,7 @@ export default class FakeApi {
*/ */
/** /**
* For this test, the body for this request much reference a schema named &#x60;File&#x60;. * For this test, the body for this request much reference a schema named `File`.
* @param {module:model/FileSchemaTestClass} body * @param {module:model/FileSchemaTestClass} body
* @param {module:api/FakeApi~testBodyWithFileSchemaCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testBodyWithFileSchemaCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
@ -329,8 +329,8 @@ export default class FakeApi {
*/ */
/** /**
* To test \&quot;client\&quot; model * To test \"client\" model
* To test \&quot;client\&quot; model * To test \"client\" model
* @param {module:model/Client} body client model * @param {module:model/Client} body client model
* @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Client} * data is of type: {@link module:model/Client}
@ -457,13 +457,13 @@ export default class FakeApi {
* To test enum parameters * To test enum parameters
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {Array.<module:model/String>} opts.enumHeaderStringArray Header parameter enum test (string array) * @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 {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.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble 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 {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 &#39;-efg&#39;) * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
* @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
testEnumParameters(opts, callback) { testEnumParameters(opts, callback) {

View File

@ -44,7 +44,7 @@ export default class StoreApi {
/** /**
* Delete purchase order by ID * 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 * @param {String} orderId ID of the order that needs to be deleted
* @param {module:api/StoreApi~deleteOrderCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/StoreApi~deleteOrderCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
@ -123,7 +123,7 @@ export default class StoreApi {
/** /**
* Find purchase order by ID * 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 * @param {Number} orderId ID of pet that needs to be fetched
* @param {module:api/StoreApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/StoreApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Order} * data is of type: {@link module:model/Order}

View File

@ -263,7 +263,7 @@ export default class FakeApi {
/** /**
* For this test, the body for this request much reference a schema named &#x60;File&#x60;. * For this test, the body for this request much reference a schema named `File`.
* @param {module:model/FileSchemaTestClass} body * @param {module:model/FileSchemaTestClass} body
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/ */
@ -295,7 +295,7 @@ export default class FakeApi {
} }
/** /**
* For this test, the body for this request much reference a schema named &#x60;File&#x60;. * For this test, the body for this request much reference a schema named `File`.
* @param {module:model/FileSchemaTestClass} body * @param {module:model/FileSchemaTestClass} body
* @return {Promise} a {@link https://www.promisejs.org/|Promise} * @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/ */
@ -358,8 +358,8 @@ export default class FakeApi {
/** /**
* To test \&quot;client\&quot; model * To test \"client\" model
* To test \&quot;client\&quot; model * To test \"client\" model
* @param {module:model/Client} body 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 * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Client} and HTTP response
*/ */
@ -391,8 +391,8 @@ export default class FakeApi {
} }
/** /**
* To test \&quot;client\&quot; model * To test \"client\" model
* To test \&quot;client\&quot; model * To test \"client\" model
* @param {module:model/Client} body 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} * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Client}
*/ */
@ -511,13 +511,13 @@ export default class FakeApi {
* To test enum parameters * To test enum parameters
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {Array.<module:model/String>} opts.enumHeaderStringArray Header parameter enum test (string array) * @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 {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.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble 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 {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 &#39;-efg&#39;) * @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 * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/ */
testEnumParametersWithHttpInfo(opts) { testEnumParametersWithHttpInfo(opts) {
@ -557,13 +557,13 @@ export default class FakeApi {
* To test enum parameters * To test enum parameters
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {Array.<module:model/String>} opts.enumHeaderStringArray Header parameter enum test (string array) * @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 {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.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble 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 {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 &#39;-efg&#39;) * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
* @return {Promise} a {@link https://www.promisejs.org/|Promise} * @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/ */
testEnumParameters(opts) { testEnumParameters(opts) {

View File

@ -37,7 +37,7 @@ export default class StoreApi {
/** /**
* Delete purchase order by ID * 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 * @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 * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/ */
@ -71,7 +71,7 @@ export default class StoreApi {
/** /**
* Delete purchase order by ID * 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 * @param {String} orderId ID of the order that needs to be deleted
* @return {Promise} a {@link https://www.promisejs.org/|Promise} * @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/ */
@ -126,7 +126,7 @@ export default class StoreApi {
/** /**
* Find purchase order by ID * 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 * @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 * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Order} and HTTP response
*/ */
@ -160,7 +160,7 @@ export default class StoreApi {
/** /**
* Find purchase order by ID * 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 * @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} * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Order}
*/ */

View File

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

View File

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

View File

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

View File

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

View File

@ -50,19 +50,17 @@
/** /**
* Delete purchase order by ID * 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 * @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 * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
*/ */
this.deleteOrderWithHttpInfo = function(orderId) { this.deleteOrderWithHttpInfo = function(orderId) {
var postBody = null; var postBody = null;
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId === undefined || orderId === null) { if (orderId === undefined || orderId === null) {
throw new Error("Missing the required parameter 'orderId' when calling deleteOrder"); throw new Error("Missing the required parameter 'orderId' when calling deleteOrder");
} }
var pathParams = { var pathParams = {
'order_id': orderId 'order_id': orderId
}; };
@ -88,7 +86,7 @@
/** /**
* Delete purchase order by ID * 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 * @param {String} orderId ID of the order that needs to be deleted
* @return {Promise} a {@link https://www.promisejs.org/|Promise} * @return {Promise} a {@link https://www.promisejs.org/|Promise}
*/ */
@ -108,7 +106,6 @@
this.getInventoryWithHttpInfo = function() { this.getInventoryWithHttpInfo = function() {
var postBody = null; var postBody = null;
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -146,19 +143,17 @@
/** /**
* Find purchase order by ID * 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 * @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 * @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) { this.getOrderByIdWithHttpInfo = function(orderId) {
var postBody = null; var postBody = null;
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId === undefined || orderId === null) { if (orderId === undefined || orderId === null) {
throw new Error("Missing the required parameter 'orderId' when calling getOrderById"); throw new Error("Missing the required parameter 'orderId' when calling getOrderById");
} }
var pathParams = { var pathParams = {
'order_id': orderId 'order_id': orderId
}; };
@ -184,7 +179,7 @@
/** /**
* Find purchase order by ID * 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 * @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} * @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) { this.placeOrderWithHttpInfo = function(body) {
var postBody = body; var postBody = body;
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling placeOrder"); throw new Error("Missing the required parameter 'body' when calling placeOrder");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {

View File

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

View File

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

View File

@ -63,13 +63,11 @@
*/ */
this.createXmlItem = function(xmlItem, callback) { this.createXmlItem = function(xmlItem, callback) {
var postBody = xmlItem; var postBody = xmlItem;
// verify the required parameter 'xmlItem' is set // verify the required parameter 'xmlItem' is set
if (xmlItem === undefined || xmlItem === null) { if (xmlItem === undefined || xmlItem === null) {
throw new Error("Missing the required parameter 'xmlItem' when calling createXmlItem"); throw new Error("Missing the required parameter 'xmlItem' when calling createXmlItem");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -111,7 +109,6 @@
opts = opts || {}; opts = opts || {};
var postBody = opts['body']; var postBody = opts['body'];
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -153,7 +150,6 @@
opts = opts || {}; opts = opts || {};
var postBody = opts['body']; var postBody = opts['body'];
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -195,7 +191,6 @@
opts = opts || {}; opts = opts || {};
var postBody = opts['body']; var postBody = opts['body'];
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -237,7 +232,6 @@
opts = opts || {}; opts = opts || {};
var postBody = opts['body']; var postBody = opts['body'];
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -269,19 +263,17 @@
*/ */
/** /**
* For this test, the body for this request much reference a schema named &#x60;File&#x60;. * For this test, the body for this request much reference a schema named `File`.
* @param {module:model/FileSchemaTestClass} body * @param {module:model/FileSchemaTestClass} body
* @param {module:api/FakeApi~testBodyWithFileSchemaCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testBodyWithFileSchemaCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
this.testBodyWithFileSchema = function(body, callback) { this.testBodyWithFileSchema = function(body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testBodyWithFileSchema"); throw new Error("Missing the required parameter 'body' when calling testBodyWithFileSchema");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -319,18 +311,15 @@
*/ */
this.testBodyWithQueryParams = function(query, body, callback) { this.testBodyWithQueryParams = function(query, body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'query' is set // verify the required parameter 'query' is set
if (query === undefined || query === null) { if (query === undefined || query === null) {
throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams"); throw new Error("Missing the required parameter 'query' when calling testBodyWithQueryParams");
} }
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testBodyWithQueryParams"); throw new Error("Missing the required parameter 'body' when calling testBodyWithQueryParams");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -363,21 +352,19 @@
*/ */
/** /**
* To test \&quot;client\&quot; model * To test \"client\" model
* To test \&quot;client\&quot; model * To test \"client\" model
* @param {module:model/Client} body client model * @param {module:model/Client} body client model
* @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Client} * data is of type: {@link module:model/Client}
*/ */
this.testClientModel = function(body, callback) { this.testClientModel = function(body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling testClientModel"); throw new Error("Missing the required parameter 'body' when calling testClientModel");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -431,28 +418,23 @@
this.testEndpointParameters = function(_number, _double, patternWithoutDelimiter, _byte, opts, callback) { this.testEndpointParameters = function(_number, _double, patternWithoutDelimiter, _byte, opts, callback) {
opts = opts || {}; opts = opts || {};
var postBody = null; var postBody = null;
// verify the required parameter '_number' is set // verify the required parameter '_number' is set
if (_number === undefined || _number === null) { if (_number === undefined || _number === null) {
throw new Error("Missing the required parameter '_number' when calling testEndpointParameters"); throw new Error("Missing the required parameter '_number' when calling testEndpointParameters");
} }
// verify the required parameter '_double' is set // verify the required parameter '_double' is set
if (_double === undefined || _double === null) { if (_double === undefined || _double === null) {
throw new Error("Missing the required parameter '_double' when calling testEndpointParameters"); throw new Error("Missing the required parameter '_double' when calling testEndpointParameters");
} }
// verify the required parameter 'patternWithoutDelimiter' is set // verify the required parameter 'patternWithoutDelimiter' is set
if (patternWithoutDelimiter === undefined || patternWithoutDelimiter === null) { if (patternWithoutDelimiter === undefined || patternWithoutDelimiter === null) {
throw new Error("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters"); throw new Error("Missing the required parameter 'patternWithoutDelimiter' when calling testEndpointParameters");
} }
// verify the required parameter '_byte' is set // verify the required parameter '_byte' is set
if (_byte === undefined || _byte === null) { if (_byte === undefined || _byte === null) {
throw new Error("Missing the required parameter '_byte' when calling testEndpointParameters"); throw new Error("Missing the required parameter '_byte' when calling testEndpointParameters");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -502,20 +484,19 @@
* To test enum parameters * To test enum parameters
* @param {Object} opts Optional parameters * @param {Object} opts Optional parameters
* @param {Array.<module:model/String>} opts.enumHeaderStringArray Header parameter enum test (string array) * @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 {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.enumQueryInteger Query parameter enum test (double)
* @param {module:model/Number} opts.enumQueryDouble 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 {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 &#39;-efg&#39;) * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
* @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
this.testEnumParameters = function(opts, callback) { this.testEnumParameters = function(opts, callback) {
opts = opts || {}; opts = opts || {};
var postBody = null; var postBody = null;
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -572,23 +553,19 @@
this.testGroupParameters = function(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts, callback) { this.testGroupParameters = function(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts, callback) {
opts = opts || {}; opts = opts || {};
var postBody = null; var postBody = null;
// verify the required parameter 'requiredStringGroup' is set // verify the required parameter 'requiredStringGroup' is set
if (requiredStringGroup === undefined || requiredStringGroup === null) { if (requiredStringGroup === undefined || requiredStringGroup === null) {
throw new Error("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters"); throw new Error("Missing the required parameter 'requiredStringGroup' when calling testGroupParameters");
} }
// verify the required parameter 'requiredBooleanGroup' is set // verify the required parameter 'requiredBooleanGroup' is set
if (requiredBooleanGroup === undefined || requiredBooleanGroup === null) { if (requiredBooleanGroup === undefined || requiredBooleanGroup === null) {
throw new Error("Missing the required parameter 'requiredBooleanGroup' when calling testGroupParameters"); throw new Error("Missing the required parameter 'requiredBooleanGroup' when calling testGroupParameters");
} }
// verify the required parameter 'requiredInt64Group' is set // verify the required parameter 'requiredInt64Group' is set
if (requiredInt64Group === undefined || requiredInt64Group === null) { if (requiredInt64Group === undefined || requiredInt64Group === null) {
throw new Error("Missing the required parameter 'requiredInt64Group' when calling testGroupParameters"); throw new Error("Missing the required parameter 'requiredInt64Group' when calling testGroupParameters");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -632,13 +609,11 @@
*/ */
this.testInlineAdditionalProperties = function(param, callback) { this.testInlineAdditionalProperties = function(param, callback) {
var postBody = param; var postBody = param;
// verify the required parameter 'param' is set // verify the required parameter 'param' is set
if (param === undefined || param === null) { if (param === undefined || param === null) {
throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties"); throw new Error("Missing the required parameter 'param' when calling testInlineAdditionalProperties");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -677,18 +652,15 @@
*/ */
this.testJsonFormData = function(param, param2, callback) { this.testJsonFormData = function(param, param2, callback) {
var postBody = null; var postBody = null;
// verify the required parameter 'param' is set // verify the required parameter 'param' is set
if (param === undefined || param === null) { if (param === undefined || param === null) {
throw new Error("Missing the required parameter 'param' when calling testJsonFormData"); throw new Error("Missing the required parameter 'param' when calling testJsonFormData");
} }
// verify the required parameter 'param2' is set // verify the required parameter 'param2' is set
if (param2 === undefined || param2 === null) { if (param2 === undefined || param2 === null) {
throw new Error("Missing the required parameter 'param2' when calling testJsonFormData"); throw new Error("Missing the required parameter 'param2' when calling testJsonFormData");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {

View File

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

View File

@ -62,13 +62,11 @@
*/ */
this.addPet = function(body, callback) { this.addPet = function(body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling addPet"); throw new Error("Missing the required parameter 'body' when calling addPet");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -109,13 +107,11 @@
this.deletePet = function(petId, opts, callback) { this.deletePet = function(petId, opts, callback) {
opts = opts || {}; opts = opts || {};
var postBody = null; var postBody = null;
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId === undefined || petId === null) { if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling deletePet"); throw new Error("Missing the required parameter 'petId' when calling deletePet");
} }
var pathParams = { var pathParams = {
'petId': petId 'petId': petId
}; };
@ -157,13 +153,11 @@
*/ */
this.findPetsByStatus = function(status, callback) { this.findPetsByStatus = function(status, callback) {
var postBody = null; var postBody = null;
// verify the required parameter 'status' is set // verify the required parameter 'status' is set
if (status === undefined || status === null) { if (status === undefined || status === null) {
throw new Error("Missing the required parameter 'status' when calling findPetsByStatus"); throw new Error("Missing the required parameter 'status' when calling findPetsByStatus");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -207,13 +201,11 @@
*/ */
this.findPetsByTags = function(tags, callback) { this.findPetsByTags = function(tags, callback) {
var postBody = null; var postBody = null;
// verify the required parameter 'tags' is set // verify the required parameter 'tags' is set
if (tags === undefined || tags === null) { if (tags === undefined || tags === null) {
throw new Error("Missing the required parameter 'tags' when calling findPetsByTags"); throw new Error("Missing the required parameter 'tags' when calling findPetsByTags");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -257,13 +249,11 @@
*/ */
this.getPetById = function(petId, callback) { this.getPetById = function(petId, callback) {
var postBody = null; var postBody = null;
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId === undefined || petId === null) { if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling getPetById"); throw new Error("Missing the required parameter 'petId' when calling getPetById");
} }
var pathParams = { var pathParams = {
'petId': petId 'petId': petId
}; };
@ -302,13 +292,11 @@
*/ */
this.updatePet = function(body, callback) { this.updatePet = function(body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling updatePet"); throw new Error("Missing the required parameter 'body' when calling updatePet");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -350,13 +338,11 @@
this.updatePetWithForm = function(petId, opts, callback) { this.updatePetWithForm = function(petId, opts, callback) {
opts = opts || {}; opts = opts || {};
var postBody = null; var postBody = null;
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId === undefined || petId === null) { if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling updatePetWithForm"); throw new Error("Missing the required parameter 'petId' when calling updatePetWithForm");
} }
var pathParams = { var pathParams = {
'petId': petId 'petId': petId
}; };
@ -402,13 +388,11 @@
this.uploadFile = function(petId, opts, callback) { this.uploadFile = function(petId, opts, callback) {
opts = opts || {}; opts = opts || {};
var postBody = null; var postBody = null;
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId === undefined || petId === null) { if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling uploadFile"); throw new Error("Missing the required parameter 'petId' when calling uploadFile");
} }
var pathParams = { var pathParams = {
'petId': petId 'petId': petId
}; };
@ -454,18 +438,15 @@
this.uploadFileWithRequiredFile = function(petId, requiredFile, opts, callback) { this.uploadFileWithRequiredFile = function(petId, requiredFile, opts, callback) {
opts = opts || {}; opts = opts || {};
var postBody = null; var postBody = null;
// verify the required parameter 'petId' is set // verify the required parameter 'petId' is set
if (petId === undefined || petId === null) { if (petId === undefined || petId === null) {
throw new Error("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile"); throw new Error("Missing the required parameter 'petId' when calling uploadFileWithRequiredFile");
} }
// verify the required parameter 'requiredFile' is set // verify the required parameter 'requiredFile' is set
if (requiredFile === undefined || requiredFile === null) { if (requiredFile === undefined || requiredFile === null) {
throw new Error("Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile"); throw new Error("Missing the required parameter 'requiredFile' when calling uploadFileWithRequiredFile");
} }
var pathParams = { var pathParams = {
'petId': petId 'petId': petId
}; };

View File

@ -57,19 +57,17 @@
/** /**
* Delete purchase order by ID * 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 * @param {String} orderId ID of the order that needs to be deleted
* @param {module:api/StoreApi~deleteOrderCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/StoreApi~deleteOrderCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
this.deleteOrder = function(orderId, callback) { this.deleteOrder = function(orderId, callback) {
var postBody = null; var postBody = null;
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId === undefined || orderId === null) { if (orderId === undefined || orderId === null) {
throw new Error("Missing the required parameter 'orderId' when calling deleteOrder"); throw new Error("Missing the required parameter 'orderId' when calling deleteOrder");
} }
var pathParams = { var pathParams = {
'order_id': orderId 'order_id': orderId
}; };
@ -110,7 +108,6 @@
this.getInventory = function(callback) { this.getInventory = function(callback) {
var postBody = null; var postBody = null;
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -143,20 +140,18 @@
/** /**
* Find purchase order by ID * 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 * @param {Number} orderId ID of pet that needs to be fetched
* @param {module:api/StoreApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/StoreApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/Order} * data is of type: {@link module:model/Order}
*/ */
this.getOrderById = function(orderId, callback) { this.getOrderById = function(orderId, callback) {
var postBody = null; var postBody = null;
// verify the required parameter 'orderId' is set // verify the required parameter 'orderId' is set
if (orderId === undefined || orderId === null) { if (orderId === undefined || orderId === null) {
throw new Error("Missing the required parameter 'orderId' when calling getOrderById"); throw new Error("Missing the required parameter 'orderId' when calling getOrderById");
} }
var pathParams = { var pathParams = {
'order_id': orderId 'order_id': orderId
}; };
@ -196,13 +191,11 @@
*/ */
this.placeOrder = function(body, callback) { this.placeOrder = function(body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling placeOrder"); throw new Error("Missing the required parameter 'body' when calling placeOrder");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {

View File

@ -63,13 +63,11 @@
*/ */
this.createUser = function(body, callback) { this.createUser = function(body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling createUser"); throw new Error("Missing the required parameter 'body' when calling createUser");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -107,13 +105,11 @@
*/ */
this.createUsersWithArrayInput = function(body, callback) { this.createUsersWithArrayInput = function(body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput"); throw new Error("Missing the required parameter 'body' when calling createUsersWithArrayInput");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -151,13 +147,11 @@
*/ */
this.createUsersWithListInput = function(body, callback) { this.createUsersWithListInput = function(body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput"); throw new Error("Missing the required parameter 'body' when calling createUsersWithListInput");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -196,13 +190,11 @@
*/ */
this.deleteUser = function(username, callback) { this.deleteUser = function(username, callback) {
var postBody = null; var postBody = null;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username === undefined || username === null) { if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling deleteUser"); throw new Error("Missing the required parameter 'username' when calling deleteUser");
} }
var pathParams = { var pathParams = {
'username': username 'username': username
}; };
@ -242,13 +234,11 @@
*/ */
this.getUserByName = function(username, callback) { this.getUserByName = function(username, callback) {
var postBody = null; var postBody = null;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username === undefined || username === null) { if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling getUserByName"); throw new Error("Missing the required parameter 'username' when calling getUserByName");
} }
var pathParams = { var pathParams = {
'username': username 'username': username
}; };
@ -289,18 +279,15 @@
*/ */
this.loginUser = function(username, password, callback) { this.loginUser = function(username, password, callback) {
var postBody = null; var postBody = null;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username === undefined || username === null) { if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling loginUser"); throw new Error("Missing the required parameter 'username' when calling loginUser");
} }
// verify the required parameter 'password' is set // verify the required parameter 'password' is set
if (password === undefined || password === null) { if (password === undefined || password === null) {
throw new Error("Missing the required parameter 'password' when calling loginUser"); throw new Error("Missing the required parameter 'password' when calling loginUser");
} }
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -340,7 +327,6 @@
this.logoutUser = function(callback) { this.logoutUser = function(callback) {
var postBody = null; var postBody = null;
var pathParams = { var pathParams = {
}; };
var queryParams = { var queryParams = {
@ -380,18 +366,15 @@
*/ */
this.updateUser = function(username, body, callback) { this.updateUser = function(username, body, callback) {
var postBody = body; var postBody = body;
// verify the required parameter 'username' is set // verify the required parameter 'username' is set
if (username === undefined || username === null) { if (username === undefined || username === null) {
throw new Error("Missing the required parameter 'username' when calling updateUser"); throw new Error("Missing the required parameter 'username' when calling updateUser");
} }
// verify the required parameter 'body' is set // verify the required parameter 'body' is set
if (body === undefined || body === null) { if (body === undefined || body === null) {
throw new Error("Missing the required parameter 'body' when calling updateUser"); throw new Error("Missing the required parameter 'body' when calling updateUser");
} }
var pathParams = { var pathParams = {
'username': username 'username': username
}; };