Fix typo in javascript generator template (#3249)

* Fix typo in javascript generator template

* Update sample client
This commit is contained in:
Michael Petö 2019-06-30 06:07:49 +02:00 committed by William Cheng
parent 3e5e82460f
commit 1730a4efce
119 changed files with 1082 additions and 249 deletions

View File

@ -30,7 +30,7 @@ Then install it via:
npm install {{{projectName}}} --save npm install {{{projectName}}} --save
``` ```
Finaly, you need to build the module: Finally, you need to build the module:
```shell ```shell
npm run build npm run build
@ -56,7 +56,7 @@ To use the link you just defined in your project, switch to the directory you wa
npm link /path/to/<JAVASCRIPT_CLIENT_DIR> npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
``` ```
Finaly, you need to build the module: Finally, you need to build the module:
```shell ```shell
npm run build npm run build

View File

@ -22,7 +22,7 @@ Then install it via:
npm install open_api_petstore --save npm install open_api_petstore --save
``` ```
Finaly, you need to build the module: Finally, you need to build the module:
```shell ```shell
npm run build npm run build
@ -48,7 +48,7 @@ To use the link you just defined in your project, switch to the directory you wa
npm link /path/to/<JAVASCRIPT_CLIENT_DIR> npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
``` ```
Finaly, you need to build the module: Finally, you need to build the module:
```shell ```shell
npm run build npm run build

View File

@ -22,7 +22,7 @@ Then install it via:
npm install open_api_petstore --save npm install open_api_petstore --save
``` ```
Finaly, you need to build the module: Finally, you need to build the module:
```shell ```shell
npm run build npm run build
@ -48,7 +48,7 @@ To use the link you just defined in your project, switch to the directory you wa
npm link /path/to/<JAVASCRIPT_CLIENT_DIR> npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
``` ```
Finaly, you need to build the module: Finally, you need to build the module:
```shell ```shell
npm run build npm run build

View File

@ -1 +1 @@
4.0.0-SNAPSHOT 4.0.3-SNAPSHOT

View File

@ -1,7 +1,5 @@
language: node_js language: node_js
cache: npm
node_js: node_js:
- "6" - "6"
- "6.1" - "6.1"
- "5"
- "5.11"

View File

@ -14,8 +14,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
#### npm #### npm
To publish the library as a [npm](https://www.npmjs.com/), To publish the library as a [npm](https://www.npmjs.com/), please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
Then install it via: Then install it via:
@ -23,10 +22,41 @@ Then install it via:
npm install open_api_petstore --save npm install open_api_petstore --save
``` ```
Finally, you need to build the module:
```shell
npm run build
```
##### Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:
```shell
npm install
```
Next, [link](https://docs.npmjs.com/cli/link) it globally in npm with the following, also from `JAVASCRIPT_CLIENT_DIR`:
```shell
npm link
```
To use the link you just defined in your project, switch to the directory you want to use your open_api_petstore from, and run:
```shell
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
```
Finally, you need to build the module:
```shell
npm run build
```
#### git #### git
#
If the library is hosted at a git repository, e.g. If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID
https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via: then install it via:
```shell ```shell
@ -139,10 +169,12 @@ Class | Method | HTTP request | Description
- [OpenApiPetstore.ArrayTest](docs/ArrayTest.md) - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md)
- [OpenApiPetstore.Capitalization](docs/Capitalization.md) - [OpenApiPetstore.Capitalization](docs/Capitalization.md)
- [OpenApiPetstore.Cat](docs/Cat.md) - [OpenApiPetstore.Cat](docs/Cat.md)
- [OpenApiPetstore.CatAllOf](docs/CatAllOf.md)
- [OpenApiPetstore.Category](docs/Category.md) - [OpenApiPetstore.Category](docs/Category.md)
- [OpenApiPetstore.ClassModel](docs/ClassModel.md) - [OpenApiPetstore.ClassModel](docs/ClassModel.md)
- [OpenApiPetstore.Client](docs/Client.md) - [OpenApiPetstore.Client](docs/Client.md)
- [OpenApiPetstore.Dog](docs/Dog.md) - [OpenApiPetstore.Dog](docs/Dog.md)
- [OpenApiPetstore.DogAllOf](docs/DogAllOf.md)
- [OpenApiPetstore.EnumArrays](docs/EnumArrays.md) - [OpenApiPetstore.EnumArrays](docs/EnumArrays.md)
- [OpenApiPetstore.EnumClass](docs/EnumClass.md) - [OpenApiPetstore.EnumClass](docs/EnumClass.md)
- [OpenApiPetstore.EnumTest](docs/EnumTest.md) - [OpenApiPetstore.EnumTest](docs/EnumTest.md)
@ -165,6 +197,7 @@ Class | Method | HTTP request | Description
- [OpenApiPetstore.Model200Response](docs/Model200Response.md) - [OpenApiPetstore.Model200Response](docs/Model200Response.md)
- [OpenApiPetstore.ModelReturn](docs/ModelReturn.md) - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md)
- [OpenApiPetstore.Name](docs/Name.md) - [OpenApiPetstore.Name](docs/Name.md)
- [OpenApiPetstore.NullableClass](docs/NullableClass.md)
- [OpenApiPetstore.NumberOnly](docs/NumberOnly.md) - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md)
- [OpenApiPetstore.Order](docs/Order.md) - [OpenApiPetstore.Order](docs/Order.md)
- [OpenApiPetstore.OuterComposite](docs/OuterComposite.md) - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md)
@ -182,32 +215,40 @@ Class | Method | HTTP request | Description
## Documentation for Authorization ## Documentation for Authorization
### api_key ### api_key
- **Type**: API key - **Type**: API key
- **API key parameter name**: api_key - **API key parameter name**: api_key
- **Location**: HTTP header - **Location**: HTTP header
### api_key_query ### api_key_query
- **Type**: API key - **Type**: API key
- **API key parameter name**: api_key_query - **API key parameter name**: api_key_query
- **Location**: URL query string - **Location**: URL query string
### bearer_test ### bearer_test
- **Type**: Bearer authentication (JWT) - **Type**: Bearer authentication (JWT)
### http_basic_test ### http_basic_test
- **Type**: HTTP basic authentication - **Type**: HTTP basic authentication
### petstore_auth ### petstore_auth
- **Type**: OAuth - **Type**: OAuth
- **Flow**: implicit - **Flow**: implicit
- **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog - **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.AdditionalPropertiesClass # OpenApiPetstore.AdditionalPropertiesClass
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**mapProperty** | **{String: String}** | | [optional] **mapProperty** | **{String: String}** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Animal # OpenApiPetstore.Animal
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**className** | **String** | | **className** | **String** | |

View File

@ -7,8 +7,9 @@ Method | HTTP request | Description
[**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags [**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
<a name="call123testSpecialTags"></a>
# **call123testSpecialTags** ## call123testSpecialTags
> Client call123testSpecialTags(client) > Client call123testSpecialTags(client)
To test special tags To test special tags
@ -16,6 +17,7 @@ To test special tags
To test special tags and operation ID starting with number To test special tags and operation ID starting with number
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -32,6 +34,7 @@ apiInstance.call123testSpecialTags(client, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **client** | [**Client**](Client.md)| client model |
@ -46,6 +49,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: application/json - **Accept**: application/json

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.ApiResponse # OpenApiPetstore.ApiResponse
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**code** | **Number** | | [optional] **code** | **Number** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.ArrayOfArrayOfNumberOnly # OpenApiPetstore.ArrayOfArrayOfNumberOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**arrayArrayNumber** | **[[Number]]** | | [optional] **arrayArrayNumber** | **[[Number]]** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.ArrayOfNumberOnly # OpenApiPetstore.ArrayOfNumberOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**arrayNumber** | **[Number]** | | [optional] **arrayNumber** | **[Number]** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.ArrayTest # OpenApiPetstore.ArrayTest
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**arrayOfString** | **[String]** | | [optional] **arrayOfString** | **[String]** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Capitalization # OpenApiPetstore.Capitalization
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**smallCamel** | **String** | | [optional] **smallCamel** | **String** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Cat # OpenApiPetstore.Cat
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**declawed** | **Boolean** | | [optional] **declawed** | **Boolean** | | [optional]

View File

@ -0,0 +1,9 @@
# OpenApiPetstore.CatAllOf
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**declawed** | **Boolean** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Category # OpenApiPetstore.Category
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **Number** | | [optional] **id** | **Number** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.ClassModel # OpenApiPetstore.ClassModel
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**_class** | **String** | | [optional] **_class** | **String** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Client # OpenApiPetstore.Client
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**client** | **String** | | [optional] **client** | **String** | | [optional]

View File

@ -7,13 +7,15 @@ Method | HTTP request | Description
[**fooGet**](DefaultApi.md#fooGet) | **GET** /foo | [**fooGet**](DefaultApi.md#fooGet) | **GET** /foo |
<a name="fooGet"></a>
# **fooGet** ## fooGet
> InlineResponseDefault fooGet() > InlineResponseDefault fooGet()
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -28,6 +30,7 @@ apiInstance.fooGet((error, data, response) => {
``` ```
### Parameters ### Parameters
This endpoint does not need any parameter. This endpoint does not need any parameter.
### Return type ### Return type
@ -40,6 +43,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/json - **Accept**: application/json

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Dog # OpenApiPetstore.Dog
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**breed** | **String** | | [optional] **breed** | **String** | | [optional]

View File

@ -0,0 +1,9 @@
# OpenApiPetstore.DogAllOf
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**breed** | **String** | | [optional]

View File

@ -1,13 +1,14 @@
# OpenApiPetstore.EnumArrays # OpenApiPetstore.EnumArrays
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**justSymbol** | **String** | | [optional] **justSymbol** | **String** | | [optional]
**arrayEnum** | **[String]** | | [optional] **arrayEnum** | **[String]** | | [optional]
<a name="JustSymbolEnum"></a>
## Enum: JustSymbolEnum ## Enum: JustSymbolEnum
@ -18,7 +19,7 @@ Name | Type | Description | Notes
<a name="[ArrayEnumEnum]"></a>
## Enum: [ArrayEnumEnum] ## Enum: [ArrayEnumEnum]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.EnumTest # OpenApiPetstore.EnumTest
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**enumString** | **String** | | [optional] **enumString** | **String** | | [optional]
@ -13,7 +14,7 @@ Name | Type | Description | Notes
**outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] **outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional]
<a name="EnumStringEnum"></a>
## Enum: EnumStringEnum ## Enum: EnumStringEnum
@ -26,7 +27,7 @@ Name | Type | Description | Notes
<a name="EnumStringRequiredEnum"></a>
## Enum: EnumStringRequiredEnum ## Enum: EnumStringRequiredEnum
@ -39,7 +40,7 @@ Name | Type | Description | Notes
<a name="EnumIntegerEnum"></a>
## Enum: EnumIntegerEnum ## Enum: EnumIntegerEnum
@ -50,7 +51,7 @@ Name | Type | Description | Notes
<a name="EnumNumberEnum"></a>
## Enum: EnumNumberEnum ## Enum: EnumNumberEnum

View File

@ -19,13 +19,15 @@ Method | HTTP request | Description
[**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data
<a name="fakeHealthGet"></a>
# **fakeHealthGet** ## fakeHealthGet
> HealthCheckResult fakeHealthGet() > HealthCheckResult fakeHealthGet()
Health check endpoint Health check endpoint
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -40,6 +42,7 @@ apiInstance.fakeHealthGet((error, data, response) => {
``` ```
### Parameters ### Parameters
This endpoint does not need any parameter. This endpoint does not need any parameter.
### Return type ### Return type
@ -52,11 +55,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/json - **Accept**: application/json
## fakeOuterBooleanSerialize
<a name="fakeOuterBooleanSerialize"></a>
# **fakeOuterBooleanSerialize**
> Boolean fakeOuterBooleanSerialize(opts) > Boolean fakeOuterBooleanSerialize(opts)
@ -64,6 +68,7 @@ No authorization required
Test serialization of outer boolean types Test serialization of outer boolean types
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -82,6 +87,7 @@ apiInstance.fakeOuterBooleanSerialize(opts, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | **Boolean**| Input boolean as post body | [optional] **body** | **Boolean**| Input boolean as post body | [optional]
@ -96,11 +102,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: */* - **Accept**: */*
## fakeOuterCompositeSerialize
<a name="fakeOuterCompositeSerialize"></a>
# **fakeOuterCompositeSerialize**
> OuterComposite fakeOuterCompositeSerialize(opts) > OuterComposite fakeOuterCompositeSerialize(opts)
@ -108,6 +115,7 @@ No authorization required
Test serialization of object with outer number type Test serialization of object with outer number type
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -126,6 +134,7 @@ apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
@ -140,11 +149,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: */* - **Accept**: */*
## fakeOuterNumberSerialize
<a name="fakeOuterNumberSerialize"></a>
# **fakeOuterNumberSerialize**
> Number fakeOuterNumberSerialize(opts) > Number fakeOuterNumberSerialize(opts)
@ -152,6 +162,7 @@ No authorization required
Test serialization of outer number types Test serialization of outer number types
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -170,6 +181,7 @@ apiInstance.fakeOuterNumberSerialize(opts, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | **Number**| Input number as post body | [optional] **body** | **Number**| Input number as post body | [optional]
@ -184,11 +196,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: */* - **Accept**: */*
## fakeOuterStringSerialize
<a name="fakeOuterStringSerialize"></a>
# **fakeOuterStringSerialize**
> String fakeOuterStringSerialize(opts) > String fakeOuterStringSerialize(opts)
@ -196,6 +209,7 @@ No authorization required
Test serialization of outer string types Test serialization of outer string types
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -214,6 +228,7 @@ apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**body** | **String**| Input string as post body | [optional] **body** | **String**| Input string as post body | [optional]
@ -228,11 +243,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: */* - **Accept**: */*
## testBodyWithFileSchema
<a name="testBodyWithFileSchema"></a>
# **testBodyWithFileSchema**
> testBodyWithFileSchema(fileSchemaTestClass) > testBodyWithFileSchema(fileSchemaTestClass)
@ -240,6 +256,7 @@ No authorization required
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 &#x60;File&#x60;.
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -256,6 +273,7 @@ apiInstance.testBodyWithFileSchema(fileSchemaTestClass, (error, data, response)
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
@ -270,16 +288,18 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
## testBodyWithQueryParams
<a name="testBodyWithQueryParams"></a>
# **testBodyWithQueryParams**
> testBodyWithQueryParams(query, user) > testBodyWithQueryParams(query, user)
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -297,6 +317,7 @@ apiInstance.testBodyWithQueryParams(query, user, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**query** | **String**| | **query** | **String**| |
@ -312,11 +333,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
## testClientModel
<a name="testClientModel"></a>
# **testClientModel**
> Client testClientModel(client) > Client testClientModel(client)
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
@ -324,6 +346,7 @@ To test \&quot;client\&quot; model
To test \&quot;client\&quot; model To test \&quot;client\&quot; model
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -340,6 +363,7 @@ apiInstance.testClientModel(client, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **client** | [**Client**](Client.md)| client model |
@ -354,11 +378,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: application/json - **Accept**: application/json
## testEndpointParameters
<a name="testEndpointParameters"></a>
# **testEndpointParameters**
> testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts) > testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts)
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
@ -366,6 +391,7 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -402,6 +428,7 @@ apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _b
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**_number** | **Number**| None | **_number** | **Number**| None |
@ -429,11 +456,12 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined - **Accept**: Not defined
## testEnumParameters
<a name="testEnumParameters"></a>
# **testEnumParameters**
> testEnumParameters(opts) > testEnumParameters(opts)
To test enum parameters To test enum parameters
@ -441,6 +469,7 @@ To test enum parameters
To test enum parameters To test enum parameters
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -466,6 +495,7 @@ apiInstance.testEnumParameters(opts, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional] **enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional]
@ -487,11 +517,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined - **Accept**: Not defined
## testGroupParameters
<a name="testGroupParameters"></a>
# **testGroupParameters**
> testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) > testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts)
Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional)
@ -499,6 +530,7 @@ Fake endpoint to test group parameters (optional)
Fake endpoint to test group parameters (optional) Fake endpoint to test group parameters (optional)
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -526,6 +558,7 @@ apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requi
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requiredStringGroup** | **Number**| Required String in group parameters | **requiredStringGroup** | **Number**| Required String in group parameters |
@ -545,16 +578,18 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
## testInlineAdditionalProperties
<a name="testInlineAdditionalProperties"></a>
# **testInlineAdditionalProperties**
> testInlineAdditionalProperties(requestBody) > testInlineAdditionalProperties(requestBody)
test inline additionalProperties test inline additionalProperties
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -571,6 +606,7 @@ apiInstance.testInlineAdditionalProperties(requestBody, (error, data, response)
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**requestBody** | [**{String: String}**](String.md)| request body | **requestBody** | [**{String: String}**](String.md)| request body |
@ -585,16 +621,18 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
## testJsonFormData
<a name="testJsonFormData"></a>
# **testJsonFormData**
> testJsonFormData(param, param2) > testJsonFormData(param, param2)
test json serialization of form data test json serialization of form data
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -612,6 +650,7 @@ apiInstance.testJsonFormData(param, param2, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**param** | **String**| field1 | **param** | **String**| field1 |
@ -627,6 +666,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined - **Accept**: Not defined

View File

@ -7,8 +7,9 @@ Method | HTTP request | Description
[**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case [**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case
<a name="testClassname"></a>
# **testClassname** ## testClassname
> Client testClassname(client) > Client testClassname(client)
To test class name in snake case To test class name in snake case
@ -16,6 +17,7 @@ To test class name in snake case
To test class name in snake case To test class name in snake case
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -38,6 +40,7 @@ apiInstance.testClassname(client, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**client** | [**Client**](Client.md)| client model | **client** | [**Client**](Client.md)| client model |
@ -52,6 +55,6 @@ Name | Type | Description | Notes
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: application/json - **Accept**: application/json

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.File # OpenApiPetstore.File
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**sourceURI** | **String** | Test capitalization | [optional] **sourceURI** | **String** | Test capitalization | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.FileSchemaTestClass # OpenApiPetstore.FileSchemaTestClass
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**file** | **File** | | [optional] **file** | **File** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Foo # OpenApiPetstore.Foo
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**bar** | **String** | | [optional] [default to &#39;bar&#39;] **bar** | **String** | | [optional] [default to &#39;bar&#39;]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.FormatTest # OpenApiPetstore.FormatTest
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**integer** | **Number** | | [optional] **integer** | **Number** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.HasOnlyReadOnly # OpenApiPetstore.HasOnlyReadOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**bar** | **String** | | [optional] **bar** | **String** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.HealthCheckResult # OpenApiPetstore.HealthCheckResult
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**nullableMessage** | **String** | | [optional] **nullableMessage** | **String** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.InlineObject # OpenApiPetstore.InlineObject
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**name** | **String** | Updated name of the pet | [optional] **name** | **String** | Updated name of the pet | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.InlineObject1 # OpenApiPetstore.InlineObject1
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**additionalMetadata** | **String** | Additional data to pass to server | [optional] **additionalMetadata** | **String** | Additional data to pass to server | [optional]

View File

@ -1,13 +1,14 @@
# OpenApiPetstore.InlineObject2 # OpenApiPetstore.InlineObject2
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**enumFormStringArray** | **[String]** | Form parameter enum test (string array) | [optional] **enumFormStringArray** | **[String]** | Form parameter enum test (string array) | [optional]
**enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to &#39;-efg&#39;] **enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to &#39;-efg&#39;]
<a name="[EnumFormStringArrayEnum]"></a>
## Enum: [EnumFormStringArrayEnum] ## Enum: [EnumFormStringArrayEnum]
@ -18,7 +19,7 @@ Name | Type | Description | Notes
<a name="EnumFormStringEnum"></a>
## Enum: EnumFormStringEnum ## Enum: EnumFormStringEnum

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.InlineObject3 # OpenApiPetstore.InlineObject3
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**integer** | **Number** | None | [optional] **integer** | **Number** | None | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.InlineObject4 # OpenApiPetstore.InlineObject4
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**param** | **String** | field1 | **param** | **String** | field1 |

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.InlineObject5 # OpenApiPetstore.InlineObject5
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**additionalMetadata** | **String** | Additional data to pass to server | [optional] **additionalMetadata** | **String** | Additional data to pass to server | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.InlineResponseDefault # OpenApiPetstore.InlineResponseDefault
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**_string** | [**Foo**](Foo.md) | | [optional] **_string** | [**Foo**](Foo.md) | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.List # OpenApiPetstore.List
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**_123list** | **String** | | [optional] **_123list** | **String** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.MapTest # OpenApiPetstore.MapTest
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**mapMapOfString** | **{String: {String: String}}** | | [optional] **mapMapOfString** | **{String: {String: String}}** | | [optional]
@ -9,7 +10,7 @@ Name | Type | Description | Notes
**indirectMap** | **{String: Boolean}** | | [optional] **indirectMap** | **{String: Boolean}** | | [optional]
<a name="{String: String}"></a>
## Enum: {String: String} ## Enum: {String: String}

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass # OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**uuid** | **String** | | [optional] **uuid** | **String** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Model200Response # OpenApiPetstore.Model200Response
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**name** | **Number** | | [optional] **name** | **Number** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.ModelReturn # OpenApiPetstore.ModelReturn
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**_return** | **Number** | | [optional] **_return** | **Number** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Name # OpenApiPetstore.Name
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**name** | **Number** | | **name** | **Number** | |

View File

@ -0,0 +1,20 @@
# OpenApiPetstore.NullableClass
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**integerProp** | **Number** | | [optional]
**numberProp** | **Number** | | [optional]
**booleanProp** | **Boolean** | | [optional]
**stringProp** | **String** | | [optional]
**dateProp** | **Date** | | [optional]
**datetimeProp** | **Date** | | [optional]
**arrayNullableProp** | **[Object]** | | [optional]
**arrayAndItemsNullableProp** | **[Object]** | | [optional]
**arrayItemsNullable** | **[Object]** | | [optional]
**objectNullableProp** | **{String: Object}** | | [optional]
**objectAndItemsNullableProp** | **{String: Object}** | | [optional]
**objectItemsNullable** | **{String: Object}** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.NumberOnly # OpenApiPetstore.NumberOnly
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**justNumber** | **Number** | | [optional] **justNumber** | **Number** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Order # OpenApiPetstore.Order
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **Number** | | [optional] **id** | **Number** | | [optional]
@ -11,7 +12,7 @@ Name | Type | Description | Notes
**complete** | **Boolean** | | [optional] [default to false] **complete** | **Boolean** | | [optional] [default to false]
<a name="StatusEnum"></a>
## Enum: StatusEnum ## Enum: StatusEnum

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.OuterComposite # OpenApiPetstore.OuterComposite
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**myNumber** | **Number** | | [optional] **myNumber** | **Number** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Pet # OpenApiPetstore.Pet
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **Number** | | [optional] **id** | **Number** | | [optional]
@ -11,7 +12,7 @@ Name | Type | Description | Notes
**status** | **String** | pet status in the store | [optional] **status** | **String** | pet status in the store | [optional]
<a name="StatusEnum"></a>
## Enum: StatusEnum ## Enum: StatusEnum

View File

@ -15,13 +15,15 @@ Method | HTTP request | Description
[**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) [**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required)
<a name="addPet"></a>
# **addPet** ## addPet
> addPet(pet) > addPet(pet)
Add a new pet to the store Add a new pet to the store
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -42,6 +44,7 @@ apiInstance.addPet(pet, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
@ -56,16 +59,18 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json, application/xml - **Content-Type**: application/json, application/xml
- **Accept**: Not defined - **Accept**: Not defined
## deletePet
<a name="deletePet"></a>
# **deletePet**
> deletePet(petId, opts) > deletePet(petId, opts)
Deletes a pet Deletes a pet
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -89,6 +94,7 @@ apiInstance.deletePet(petId, opts, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **Number**| Pet id to delete | **petId** | **Number**| Pet id to delete |
@ -104,11 +110,12 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
## findPetsByStatus
<a name="findPetsByStatus"></a>
# **findPetsByStatus**
> [Pet] findPetsByStatus(status) > [Pet] findPetsByStatus(status)
Finds Pets by status Finds Pets by status
@ -116,6 +123,7 @@ Finds Pets by status
Multiple status values can be provided with comma separated strings Multiple status values can be provided with comma separated strings
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -136,6 +144,7 @@ apiInstance.findPetsByStatus(status, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**status** | [**[String]**](String.md)| Status values that need to be considered for filter | **status** | [**[String]**](String.md)| Status values that need to be considered for filter |
@ -150,11 +159,12 @@ Name | Type | Description | Notes
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
## findPetsByTags
<a name="findPetsByTags"></a>
# **findPetsByTags**
> [Pet] findPetsByTags(tags) > [Pet] findPetsByTags(tags)
Finds Pets by tags Finds Pets by tags
@ -162,6 +172,7 @@ Finds Pets by tags
Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -182,6 +193,7 @@ apiInstance.findPetsByTags(tags, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**tags** | [**[String]**](String.md)| Tags to filter by | **tags** | [**[String]**](String.md)| Tags to filter by |
@ -196,11 +208,12 @@ Name | Type | Description | Notes
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
## getPetById
<a name="getPetById"></a>
# **getPetById**
> Pet getPetById(petId) > Pet getPetById(petId)
Find pet by ID Find pet by ID
@ -208,6 +221,7 @@ Find pet by ID
Returns a single pet Returns a single pet
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -230,6 +244,7 @@ apiInstance.getPetById(petId, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **Number**| ID of pet to return | **petId** | **Number**| ID of pet to return |
@ -244,16 +259,18 @@ Name | Type | Description | Notes
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
## updatePet
<a name="updatePet"></a>
# **updatePet**
> updatePet(pet) > updatePet(pet)
Update an existing pet Update an existing pet
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -274,6 +291,7 @@ apiInstance.updatePet(pet, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
@ -288,16 +306,18 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json, application/xml - **Content-Type**: application/json, application/xml
- **Accept**: Not defined - **Accept**: Not defined
## updatePetWithForm
<a name="updatePetWithForm"></a>
# **updatePetWithForm**
> updatePetWithForm(petId, opts) > updatePetWithForm(petId, opts)
Updates a pet in the store with form data Updates a pet in the store with form data
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -322,6 +342,7 @@ apiInstance.updatePetWithForm(petId, opts, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **Number**| ID of pet that needs to be updated | **petId** | **Number**| ID of pet that needs to be updated |
@ -338,16 +359,18 @@ null (empty response body)
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/x-www-form-urlencoded - **Content-Type**: application/x-www-form-urlencoded
- **Accept**: Not defined - **Accept**: Not defined
## uploadFile
<a name="uploadFile"></a>
# **uploadFile**
> ApiResponse uploadFile(petId, opts) > ApiResponse uploadFile(petId, opts)
uploads an image uploads an image
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -372,6 +395,7 @@ apiInstance.uploadFile(petId, opts, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **Number**| ID of pet to update | **petId** | **Number**| ID of pet to update |
@ -388,16 +412,18 @@ Name | Type | Description | Notes
### HTTP request headers ### HTTP request headers
- **Content-Type**: multipart/form-data - **Content-Type**: multipart/form-data
- **Accept**: application/json - **Accept**: application/json
## uploadFileWithRequiredFile
<a name="uploadFileWithRequiredFile"></a>
# **uploadFileWithRequiredFile**
> ApiResponse uploadFileWithRequiredFile(petId, requiredFile, opts) > ApiResponse uploadFileWithRequiredFile(petId, requiredFile, opts)
uploads an image (required) uploads an image (required)
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -422,6 +448,7 @@ apiInstance.uploadFileWithRequiredFile(petId, requiredFile, opts, (error, data,
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**petId** | **Number**| ID of pet to update | **petId** | **Number**| ID of pet to update |
@ -438,6 +465,6 @@ Name | Type | Description | Notes
### HTTP request headers ### HTTP request headers
- **Content-Type**: multipart/form-data - **Content-Type**: multipart/form-data
- **Accept**: application/json - **Accept**: application/json

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.ReadOnlyFirst # OpenApiPetstore.ReadOnlyFirst
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**bar** | **String** | | [optional] **bar** | **String** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.SpecialModelName # OpenApiPetstore.SpecialModelName
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**specialPropertyName** | **Number** | | [optional] **specialPropertyName** | **Number** | | [optional]

View File

@ -10,8 +10,9 @@ Method | HTTP request | Description
[**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet [**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet
<a name="deleteOrder"></a>
# **deleteOrder** ## deleteOrder
> deleteOrder(orderId) > deleteOrder(orderId)
Delete purchase order by ID Delete purchase order by ID
@ -19,6 +20,7 @@ Delete purchase order by ID
For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors For valid response try integer IDs with value &lt; 1000. Anything above 1000 or nonintegers will generate API errors
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -35,6 +37,7 @@ apiInstance.deleteOrder(orderId, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**orderId** | **String**| ID of the order that needs to be deleted | **orderId** | **String**| ID of the order that needs to be deleted |
@ -49,11 +52,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
## getInventory
<a name="getInventory"></a>
# **getInventory**
> {String: Number} getInventory() > {String: Number} getInventory()
Returns pet inventories by status Returns pet inventories by status
@ -61,6 +65,7 @@ Returns pet inventories by status
Returns a map of status codes to quantities Returns a map of status codes to quantities
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
let defaultClient = OpenApiPetstore.ApiClient.instance; let defaultClient = OpenApiPetstore.ApiClient.instance;
@ -81,6 +86,7 @@ apiInstance.getInventory((error, data, response) => {
``` ```
### Parameters ### Parameters
This endpoint does not need any parameter. This endpoint does not need any parameter.
### Return type ### Return type
@ -93,11 +99,12 @@ This endpoint does not need any parameter.
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/json - **Accept**: application/json
## getOrderById
<a name="getOrderById"></a>
# **getOrderById**
> Order getOrderById(orderId) > Order getOrderById(orderId)
Find purchase order by ID Find purchase order by ID
@ -105,6 +112,7 @@ Find purchase order by ID
For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions For valid response try integer IDs with value &lt;&#x3D; 5 or &gt; 10. Other values will generated exceptions
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -121,6 +129,7 @@ apiInstance.getOrderById(orderId, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**orderId** | **Number**| ID of pet that needs to be fetched | **orderId** | **Number**| ID of pet that needs to be fetched |
@ -135,16 +144,18 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
## placeOrder
<a name="placeOrder"></a>
# **placeOrder**
> Order placeOrder(order) > Order placeOrder(order)
Place an order for a pet Place an order for a pet
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -161,6 +172,7 @@ apiInstance.placeOrder(order, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**order** | [**Order**](Order.md)| order placed for purchasing the pet | **order** | [**Order**](Order.md)| order placed for purchasing the pet |
@ -175,6 +187,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.Tag # OpenApiPetstore.Tag
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **Number** | | [optional] **id** | **Number** | | [optional]

View File

@ -1,6 +1,7 @@
# OpenApiPetstore.User # OpenApiPetstore.User
## Properties ## Properties
Name | Type | Description | Notes Name | Type | Description | Notes
------------ | ------------- | ------------- | ------------- ------------ | ------------- | ------------- | -------------
**id** | **Number** | | [optional] **id** | **Number** | | [optional]

View File

@ -14,8 +14,9 @@ Method | HTTP request | Description
[**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user [**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user
<a name="createUser"></a>
# **createUser** ## createUser
> createUser(user) > createUser(user)
Create user Create user
@ -23,6 +24,7 @@ Create user
This can only be done by the logged in user. This can only be done by the logged in user.
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -39,6 +41,7 @@ apiInstance.createUser(user, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**User**](User.md)| Created user object | **user** | [**User**](User.md)| Created user object |
@ -53,16 +56,18 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
## createUsersWithArrayInput
<a name="createUsersWithArrayInput"></a>
# **createUsersWithArrayInput**
> createUsersWithArrayInput(user) > createUsersWithArrayInput(user)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -79,9 +84,10 @@ apiInstance.createUsersWithArrayInput(user, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**[User]**](Array.md)| List of user object | **user** | [**[User]**](User.md)| List of user object |
### Return type ### Return type
@ -93,16 +99,18 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
## createUsersWithListInput
<a name="createUsersWithListInput"></a>
# **createUsersWithListInput**
> createUsersWithListInput(user) > createUsersWithListInput(user)
Creates list of users with given input array Creates list of users with given input array
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -119,9 +127,10 @@ apiInstance.createUsersWithListInput(user, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**user** | [**[User]**](Array.md)| List of user object | **user** | [**[User]**](User.md)| List of user object |
### Return type ### Return type
@ -133,11 +142,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined
## deleteUser
<a name="deleteUser"></a>
# **deleteUser**
> deleteUser(username) > deleteUser(username)
Delete user Delete user
@ -145,6 +155,7 @@ Delete user
This can only be done by the logged in user. This can only be done by the logged in user.
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -161,6 +172,7 @@ apiInstance.deleteUser(username, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| The name that needs to be deleted | **username** | **String**| The name that needs to be deleted |
@ -175,16 +187,18 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
## getUserByName
<a name="getUserByName"></a>
# **getUserByName**
> User getUserByName(username) > User getUserByName(username)
Get user by user name Get user by user name
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -201,6 +215,7 @@ apiInstance.getUserByName(username, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| The name that needs to be fetched. Use user1 for testing. | **username** | **String**| The name that needs to be fetched. Use user1 for testing. |
@ -215,16 +230,18 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
## loginUser
<a name="loginUser"></a>
# **loginUser**
> String loginUser(username, password) > String loginUser(username, password)
Logs user into the system Logs user into the system
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -242,6 +259,7 @@ apiInstance.loginUser(username, password, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| The user name for login | **username** | **String**| The user name for login |
@ -257,16 +275,18 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: application/xml, application/json - **Accept**: application/xml, application/json
## logoutUser
<a name="logoutUser"></a>
# **logoutUser**
> logoutUser() > logoutUser()
Logs out current logged in user session Logs out current logged in user session
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -281,6 +301,7 @@ apiInstance.logoutUser((error, data, response) => {
``` ```
### Parameters ### Parameters
This endpoint does not need any parameter. This endpoint does not need any parameter.
### Return type ### Return type
@ -293,11 +314,12 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: Not defined - **Content-Type**: Not defined
- **Accept**: Not defined - **Accept**: Not defined
## updateUser
<a name="updateUser"></a>
# **updateUser**
> updateUser(username, user) > updateUser(username, user)
Updated user Updated user
@ -305,6 +327,7 @@ Updated user
This can only be done by the logged in user. This can only be done by the logged in user.
### Example ### Example
```javascript ```javascript
import OpenApiPetstore from 'open_api_petstore'; import OpenApiPetstore from 'open_api_petstore';
@ -322,6 +345,7 @@ apiInstance.updateUser(username, user, (error, data, response) => {
### Parameters ### Parameters
Name | Type | Description | Notes Name | Type | Description | Notes
------------- | ------------- | ------------- | ------------- ------------- | ------------- | ------------- | -------------
**username** | **String**| name that need to be deleted | **username** | **String**| name that need to be deleted |
@ -337,6 +361,6 @@ No authorization required
### HTTP request headers ### HTTP request headers
- **Content-Type**: application/json - **Content-Type**: application/json
- **Accept**: Not defined - **Accept**: Not defined

View File

@ -1,7 +1,7 @@
{ {
"name": "open_api_petstore", "name": "open_api_petstore",
"version": "1.0.0", "version": "1.0.0",
"description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__", "description": "This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters___",
"license": "Apache-2.0", "license": "Apache-2.0",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
@ -20,9 +20,9 @@
"babel-core": "6.26.0", "babel-core": "6.26.0",
"babel-preset-env": "^1.6.1", "babel-preset-env": "^1.6.1",
"babel-preset-stage-0": "^6.24.1", "babel-preset-stage-0": "^6.24.1",
"expect.js": "~0.3.1", "expect.js": "^0.3.1",
"mocha": "^5.2.0", "mocha": "^5.2.0",
"sinon": "1.17.3" "sinon": "^7.2.0"
}, },
"files": [ "files": [
"dist" "dist"

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -610,7 +610,8 @@ class ApiClient {
// go through variable and assign a value // go through variable and assign a value
for (var variable_name in server['variables']) { for (var variable_name in server['variables']) {
if (variable_name in variables) { if (variable_name in variables) {
if (server['variables'][variable_name]['enum_values'].includes(variables[variable_name])) { let variable = server['variables'][variable_name];
if ( !('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name]) ) {
url = url.replace("{" + variable_name + "}", variables[variable_name]); url = url.replace("{" + variable_name + "}", variables[variable_name]);
} else { } else {
throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + ".");

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -239,7 +239,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} fileSchemaTestClass * @param {module:model/FileSchemaTestClass} fileSchemaTestClass
* @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
*/ */
@ -324,8 +324,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} client client model * @param {module:model/Client} client 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}
@ -452,13 +452,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

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -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

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -85,7 +85,7 @@ export default class UserApi {
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* @param {Array.<User>} user List of user object * @param {Array.<module:model/User>} user List of user object
* @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
createUsersWithArrayInput(user, callback) { createUsersWithArrayInput(user, callback) {
@ -125,7 +125,7 @@ export default class UserApi {
/** /**
* Creates list of users with given input array * Creates list of users with given input array
* @param {Array.<User>} user List of user object * @param {Array.<module:model/User>} user List of user object
* @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response * @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response
*/ */
createUsersWithListInput(user, callback) { createUsersWithListInput(user, callback) {

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -21,10 +21,12 @@ import ArrayOfNumberOnly from './model/ArrayOfNumberOnly';
import ArrayTest from './model/ArrayTest'; import ArrayTest from './model/ArrayTest';
import Capitalization from './model/Capitalization'; import Capitalization from './model/Capitalization';
import Cat from './model/Cat'; import Cat from './model/Cat';
import CatAllOf from './model/CatAllOf';
import Category from './model/Category'; import Category from './model/Category';
import ClassModel from './model/ClassModel'; import ClassModel from './model/ClassModel';
import Client from './model/Client'; import Client from './model/Client';
import Dog from './model/Dog'; import Dog from './model/Dog';
import DogAllOf from './model/DogAllOf';
import EnumArrays from './model/EnumArrays'; import EnumArrays from './model/EnumArrays';
import EnumClass from './model/EnumClass'; import EnumClass from './model/EnumClass';
import EnumTest from './model/EnumTest'; import EnumTest from './model/EnumTest';
@ -47,6 +49,7 @@ import MixedPropertiesAndAdditionalPropertiesClass from './model/MixedProperties
import Model200Response from './model/Model200Response'; import Model200Response from './model/Model200Response';
import ModelReturn from './model/ModelReturn'; import ModelReturn from './model/ModelReturn';
import Name from './model/Name'; import Name from './model/Name';
import NullableClass from './model/NullableClass';
import NumberOnly from './model/NumberOnly'; import NumberOnly from './model/NumberOnly';
import Order from './model/Order'; import Order from './model/Order';
import OuterComposite from './model/OuterComposite'; import OuterComposite from './model/OuterComposite';
@ -69,7 +72,7 @@ import UserApi from './api/UserApi';
/** /**
* This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters__.<br> * This_spec_is_mainly_for_testing_Petstore_server_and_contains_fake_endpoints_models__Please_do_not_use_this_for_any_other_purpose__Special_characters___.<br>
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API. * The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
* <p> * <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: * An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
@ -154,6 +157,12 @@ export {
*/ */
Cat, Cat,
/**
* The CatAllOf model constructor.
* @property {module:model/CatAllOf}
*/
CatAllOf,
/** /**
* The Category model constructor. * The Category model constructor.
* @property {module:model/Category} * @property {module:model/Category}
@ -178,6 +187,12 @@ export {
*/ */
Dog, Dog,
/**
* The DogAllOf model constructor.
* @property {module:model/DogAllOf}
*/
DogAllOf,
/** /**
* The EnumArrays model constructor. * The EnumArrays model constructor.
* @property {module:model/EnumArrays} * @property {module:model/EnumArrays}
@ -310,6 +325,12 @@ export {
*/ */
Name, Name,
/**
* The NullableClass model constructor.
* @property {module:model/NullableClass}
*/
NullableClass,
/** /**
* The NumberOnly model constructor. * The NumberOnly model constructor.
* @property {module:model/NumberOnly} * @property {module:model/NumberOnly}

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
import ApiClient from '../ApiClient'; import ApiClient from '../ApiClient';
import Animal from './Animal'; import Animal from './Animal';
import CatAllOf from './CatAllOf';
/** /**
* The Cat model module. * The Cat model module.
@ -25,10 +26,11 @@ class Cat {
* @alias module:model/Cat * @alias module:model/Cat
* @extends module:model/Animal * @extends module:model/Animal
* @implements module:model/Animal * @implements module:model/Animal
* @implements module:model/CatAllOf
* @param className {String} * @param className {String}
*/ */
constructor(className) { constructor(className) {
Animal.initialize(this, className); Animal.initialize(this, className);CatAllOf.initialize(this);
Cat.initialize(this, className); Cat.initialize(this, className);
} }
@ -52,6 +54,7 @@ class Cat {
obj = obj || new Cat(); obj = obj || new Cat();
Animal.constructFromObject(data, obj); Animal.constructFromObject(data, obj);
Animal.constructFromObject(data, obj); Animal.constructFromObject(data, obj);
CatAllOf.constructFromObject(data, obj);
if (data.hasOwnProperty('declawed')) { if (data.hasOwnProperty('declawed')) {
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean'); obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
@ -79,6 +82,11 @@ Animal.prototype['className'] = undefined;
* @default 'red' * @default 'red'
*/ */
Animal.prototype['color'] = 'red'; Animal.prototype['color'] = 'red';
// Implement CatAllOf interface:
/**
* @member {Boolean} declawed
*/
CatAllOf.prototype['declawed'] = undefined;

View File

@ -0,0 +1,71 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The CatAllOf model module.
* @module model/CatAllOf
* @version 1.0.0
*/
class CatAllOf {
/**
* Constructs a new <code>CatAllOf</code>.
* @alias module:model/CatAllOf
*/
constructor() {
CatAllOf.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>CatAllOf</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/CatAllOf} obj Optional instance to populate.
* @return {module:model/CatAllOf} The populated <code>CatAllOf</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new CatAllOf();
if (data.hasOwnProperty('declawed')) {
obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean');
}
}
return obj;
}
}
/**
* @member {Boolean} declawed
*/
CatAllOf.prototype['declawed'] = undefined;
export default CatAllOf;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@ -13,6 +13,7 @@
import ApiClient from '../ApiClient'; import ApiClient from '../ApiClient';
import Animal from './Animal'; import Animal from './Animal';
import DogAllOf from './DogAllOf';
/** /**
* The Dog model module. * The Dog model module.
@ -25,10 +26,11 @@ class Dog {
* @alias module:model/Dog * @alias module:model/Dog
* @extends module:model/Animal * @extends module:model/Animal
* @implements module:model/Animal * @implements module:model/Animal
* @implements module:model/DogAllOf
* @param className {String} * @param className {String}
*/ */
constructor(className) { constructor(className) {
Animal.initialize(this, className); Animal.initialize(this, className);DogAllOf.initialize(this);
Dog.initialize(this, className); Dog.initialize(this, className);
} }
@ -52,6 +54,7 @@ class Dog {
obj = obj || new Dog(); obj = obj || new Dog();
Animal.constructFromObject(data, obj); Animal.constructFromObject(data, obj);
Animal.constructFromObject(data, obj); Animal.constructFromObject(data, obj);
DogAllOf.constructFromObject(data, obj);
if (data.hasOwnProperty('breed')) { if (data.hasOwnProperty('breed')) {
obj['breed'] = ApiClient.convertToType(data['breed'], 'String'); obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
@ -79,6 +82,11 @@ Animal.prototype['className'] = undefined;
* @default 'red' * @default 'red'
*/ */
Animal.prototype['color'] = 'red'; Animal.prototype['color'] = 'red';
// Implement DogAllOf interface:
/**
* @member {String} breed
*/
DogAllOf.prototype['breed'] = undefined;

View File

@ -0,0 +1,71 @@
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* The DogAllOf model module.
* @module model/DogAllOf
* @version 1.0.0
*/
class DogAllOf {
/**
* Constructs a new <code>DogAllOf</code>.
* @alias module:model/DogAllOf
*/
constructor() {
DogAllOf.initialize(this);
}
/**
* Initializes the fields of this object.
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
static initialize(obj) {
}
/**
* Constructs a <code>DogAllOf</code> from a plain JavaScript object, optionally creating a new instance.
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
* @param {Object} data The plain JavaScript object bearing properties of interest.
* @param {module:model/DogAllOf} obj Optional instance to populate.
* @return {module:model/DogAllOf} The populated <code>DogAllOf</code> instance.
*/
static constructFromObject(data, obj) {
if (data) {
obj = obj || new DogAllOf();
if (data.hasOwnProperty('breed')) {
obj['breed'] = ApiClient.convertToType(data['breed'], 'String');
}
}
return obj;
}
}
/**
* @member {String} breed
*/
DogAllOf.prototype['breed'] = undefined;
export default DogAllOf;

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

View File

@ -2,7 +2,7 @@
* OpenAPI Petstore * OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
* *
* OpenAPI spec version: 1.0.0 * The version of the OpenAPI document: 1.0.0
* *
* *
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

Some files were not shown because too many files have changed in this diff Show More