forked from loafle/openapi-generator-original
update optional parameters in jsdoc (#15032)
This commit is contained in:
@@ -85,8 +85,8 @@ export default class FakeApi {
|
||||
* test http signature authentication
|
||||
* @param {module:model/Pet} pet Pet object that needs to be added to the store
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {String} opts.query1 query parameter
|
||||
* @param {String} opts.header1 header parameter
|
||||
* @param {String} [query1] query parameter
|
||||
* @param {String} [header1] header parameter
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
fakeHttpSignatureTestWithHttpInfo(pet, opts) {
|
||||
@@ -138,7 +138,7 @@ export default class FakeApi {
|
||||
/**
|
||||
* Test serialization of outer boolean types
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {Boolean} opts.body Input boolean as post body
|
||||
* @param {Boolean} [body] Input boolean as post body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Boolean} and HTTP response
|
||||
*/
|
||||
fakeOuterBooleanSerializeWithHttpInfo(opts) {
|
||||
@@ -182,7 +182,7 @@ export default class FakeApi {
|
||||
/**
|
||||
* Test serialization of object with outer number type
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {module:model/OuterComposite} opts.outerComposite Input composite as post body
|
||||
* @param {module:model/OuterComposite} [outerComposite] Input composite as post body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OuterComposite} and HTTP response
|
||||
*/
|
||||
fakeOuterCompositeSerializeWithHttpInfo(opts) {
|
||||
@@ -226,7 +226,7 @@ export default class FakeApi {
|
||||
/**
|
||||
* Test serialization of outer number types
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {Number} opts.body Input number as post body
|
||||
* @param {Number} [body] Input number as post body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Number} and HTTP response
|
||||
*/
|
||||
fakeOuterNumberSerializeWithHttpInfo(opts) {
|
||||
@@ -270,7 +270,7 @@ export default class FakeApi {
|
||||
/**
|
||||
* Test serialization of outer string types
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {String} opts.body Input string as post body
|
||||
* @param {String} [body] Input string as post body
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response
|
||||
*/
|
||||
fakeOuterStringSerializeWithHttpInfo(opts) {
|
||||
@@ -551,16 +551,16 @@ export default class FakeApi {
|
||||
* @param {String} patternWithoutDelimiter None
|
||||
* @param {Blob} _byte None
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {Number} opts.integer None
|
||||
* @param {Number} opts.int32 None
|
||||
* @param {Number} opts.int64 None
|
||||
* @param {Number} opts._float None
|
||||
* @param {String} opts.string None
|
||||
* @param {File} opts.binary None
|
||||
* @param {Date} opts.date None
|
||||
* @param {Date} opts.dateTime None
|
||||
* @param {String} opts.password None
|
||||
* @param {String} opts.callback None
|
||||
* @param {Number} [integer] None
|
||||
* @param {Number} [int32] None
|
||||
* @param {Number} [int64] None
|
||||
* @param {Number} [_float] None
|
||||
* @param {String} [string] None
|
||||
* @param {File} [binary] None
|
||||
* @param {Date} [date] None
|
||||
* @param {Date} [dateTime] None
|
||||
* @param {String} [password] None
|
||||
* @param {String} [callback] None
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, opts) {
|
||||
@@ -649,15 +649,15 @@ export default class FakeApi {
|
||||
* To test enum parameters
|
||||
* To test enum parameters
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {Array.<module:model/String>} opts.enumHeaderStringArray Header parameter enum test (string array)
|
||||
* @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg')
|
||||
* @param {Array.<module:model/String>} opts.enumQueryStringArray Query parameter enum test (string array)
|
||||
* @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg')
|
||||
* @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double)
|
||||
* @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double)
|
||||
* @param {Array.<module:model/EnumClass>} opts.enumQueryModelArray
|
||||
* @param {Array.<module:model/String>} opts.enumFormStringArray Form parameter enum test (string array) (default to '$')
|
||||
* @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg')
|
||||
* @param {Array.<module:model/String>} [enumHeaderStringArray] Header parameter enum test (string array)
|
||||
* @param {module:model/String} [enumHeaderString = '-efg')] Header parameter enum test (string)
|
||||
* @param {Array.<module:model/String>} [enumQueryStringArray] Query parameter enum test (string array)
|
||||
* @param {module:model/String} [enumQueryString = '-efg')] Query parameter enum test (string)
|
||||
* @param {module:model/Number} [enumQueryInteger] Query parameter enum test (double)
|
||||
* @param {module:model/Number} [enumQueryDouble] Query parameter enum test (double)
|
||||
* @param {Array.<module:model/EnumClass>} [enumQueryModelArray]
|
||||
* @param {Array.<module:model/String>} [enumFormStringArray = '$')] Form parameter enum test (string array)
|
||||
* @param {module:model/String} [enumFormString = '-efg')] Form parameter enum test (string)
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
testEnumParametersWithHttpInfo(opts) {
|
||||
@@ -723,9 +723,9 @@ export default class FakeApi {
|
||||
* @param {Boolean} requiredBooleanGroup Required Boolean in group parameters
|
||||
* @param {Number} requiredInt64Group Required Integer in group parameters
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {Number} opts.stringGroup String in group parameters
|
||||
* @param {Boolean} opts.booleanGroup Boolean in group parameters
|
||||
* @param {Number} opts.int64Group Integer in group parameters
|
||||
* @param {Number} [stringGroup] String in group parameters
|
||||
* @param {Boolean} [booleanGroup] Boolean in group parameters
|
||||
* @param {Number} [int64Group] Integer in group parameters
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) {
|
||||
@@ -901,7 +901,7 @@ export default class FakeApi {
|
||||
* @param {Array.<String>} context
|
||||
* @param {String} allowEmpty
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {Object.<String, {String: String}>} opts.language
|
||||
* @param {Object.<String, {String: String}>} [language]
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowEmpty, opts) {
|
||||
|
||||
@@ -98,7 +98,7 @@ export default class PetApi {
|
||||
*
|
||||
* @param {Number} petId Pet id to delete
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {String} opts.apiKey
|
||||
* @param {String} [apiKey]
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
deletePetWithHttpInfo(petId, opts) {
|
||||
@@ -353,8 +353,8 @@ export default class PetApi {
|
||||
*
|
||||
* @param {Number} petId ID of pet that needs to be updated
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {String} opts.name Updated name of the pet
|
||||
* @param {String} opts.status Updated status of the pet
|
||||
* @param {String} [name] Updated name of the pet
|
||||
* @param {String} [status] Updated status of the pet
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response
|
||||
*/
|
||||
updatePetWithFormWithHttpInfo(petId, opts) {
|
||||
@@ -410,8 +410,8 @@ export default class PetApi {
|
||||
*
|
||||
* @param {Number} petId ID of pet to update
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {String} opts.additionalMetadata Additional data to pass to server
|
||||
* @param {File} opts.file file to upload
|
||||
* @param {String} [additionalMetadata] Additional data to pass to server
|
||||
* @param {File} [file] file to upload
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApiResponse} and HTTP response
|
||||
*/
|
||||
uploadFileWithHttpInfo(petId, opts) {
|
||||
@@ -468,7 +468,7 @@ export default class PetApi {
|
||||
* @param {Number} petId ID of pet to update
|
||||
* @param {File} requiredFile file to upload
|
||||
* @param {Object} opts Optional parameters
|
||||
* @param {String} opts.additionalMetadata Additional data to pass to server
|
||||
* @param {String} [additionalMetadata] Additional data to pass to server
|
||||
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ApiResponse} and HTTP response
|
||||
*/
|
||||
uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, opts) {
|
||||
|
||||
Reference in New Issue
Block a user