diff --git a/modules/openapi-generator/src/main/resources/Javascript/es6/README.mustache b/modules/openapi-generator/src/main/resources/Javascript/es6/README.mustache index dd773d6c1bbe..82a66fe391b7 100644 --- a/modules/openapi-generator/src/main/resources/Javascript/es6/README.mustache +++ b/modules/openapi-generator/src/main/resources/Javascript/es6/README.mustache @@ -30,7 +30,7 @@ Then install it via: npm install {{{projectName}}} --save ``` -Finaly, you need to build the module: +Finally, you need to build the module: ```shell 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/ ``` -Finaly, you need to build the module: +Finally, you need to build the module: ```shell npm run build diff --git a/samples/client/petstore/javascript-es6/README.md b/samples/client/petstore/javascript-es6/README.md index 4c0b3c5746eb..d66a692c691a 100644 --- a/samples/client/petstore/javascript-es6/README.md +++ b/samples/client/petstore/javascript-es6/README.md @@ -22,7 +22,7 @@ Then install it via: npm install open_api_petstore --save ``` -Finaly, you need to build the module: +Finally, you need to build the module: ```shell 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/ ``` -Finaly, you need to build the module: +Finally, you need to build the module: ```shell npm run build diff --git a/samples/client/petstore/javascript-promise-es6/README.md b/samples/client/petstore/javascript-promise-es6/README.md index 979dfd95676e..a37ff17a1088 100644 --- a/samples/client/petstore/javascript-promise-es6/README.md +++ b/samples/client/petstore/javascript-promise-es6/README.md @@ -22,7 +22,7 @@ Then install it via: npm install open_api_petstore --save ``` -Finaly, you need to build the module: +Finally, you need to build the module: ```shell 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/ ``` -Finaly, you need to build the module: +Finally, you need to build the module: ```shell npm run build diff --git a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION index afa636560641..479c313e87b9 100644 --- a/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION +++ b/samples/openapi3/client/petstore/javascript-es6/.openapi-generator/VERSION @@ -1 +1 @@ -4.0.0-SNAPSHOT \ No newline at end of file +4.0.3-SNAPSHOT \ No newline at end of file diff --git a/samples/openapi3/client/petstore/javascript-es6/.travis.yml b/samples/openapi3/client/petstore/javascript-es6/.travis.yml index e49f4692f7c8..0968f7a43333 100644 --- a/samples/openapi3/client/petstore/javascript-es6/.travis.yml +++ b/samples/openapi3/client/petstore/javascript-es6/.travis.yml @@ -1,7 +1,5 @@ language: node_js +cache: npm node_js: - "6" - "6.1" - - "5" - - "5.11" - diff --git a/samples/openapi3/client/petstore/javascript-es6/README.md b/samples/openapi3/client/petstore/javascript-es6/README.md index 7382b69e20a0..70e6ac7a2aa2 100644 --- a/samples/openapi3/client/petstore/javascript-es6/README.md +++ b/samples/openapi3/client/petstore/javascript-es6/README.md @@ -14,8 +14,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g #### npm -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). +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). Then install it via: @@ -23,10 +22,41 @@ Then install it via: 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/ +``` + +Finally, you need to build the module: + +```shell +npm run build +``` + #### git -# -If the library is hosted at a git repository, e.g. -https://github.com/GIT_USER_ID/GIT_REPO_ID + +If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via: ```shell @@ -139,10 +169,12 @@ Class | Method | HTTP request | Description - [OpenApiPetstore.ArrayTest](docs/ArrayTest.md) - [OpenApiPetstore.Capitalization](docs/Capitalization.md) - [OpenApiPetstore.Cat](docs/Cat.md) + - [OpenApiPetstore.CatAllOf](docs/CatAllOf.md) - [OpenApiPetstore.Category](docs/Category.md) - [OpenApiPetstore.ClassModel](docs/ClassModel.md) - [OpenApiPetstore.Client](docs/Client.md) - [OpenApiPetstore.Dog](docs/Dog.md) + - [OpenApiPetstore.DogAllOf](docs/DogAllOf.md) - [OpenApiPetstore.EnumArrays](docs/EnumArrays.md) - [OpenApiPetstore.EnumClass](docs/EnumClass.md) - [OpenApiPetstore.EnumTest](docs/EnumTest.md) @@ -165,6 +197,7 @@ Class | Method | HTTP request | Description - [OpenApiPetstore.Model200Response](docs/Model200Response.md) - [OpenApiPetstore.ModelReturn](docs/ModelReturn.md) - [OpenApiPetstore.Name](docs/Name.md) + - [OpenApiPetstore.NullableClass](docs/NullableClass.md) - [OpenApiPetstore.NumberOnly](docs/NumberOnly.md) - [OpenApiPetstore.Order](docs/Order.md) - [OpenApiPetstore.OuterComposite](docs/OuterComposite.md) @@ -182,32 +215,40 @@ Class | Method | HTTP request | Description ## Documentation for Authorization + ### api_key + - **Type**: API key - **API key parameter name**: api_key - **Location**: HTTP header + ### api_key_query + - **Type**: API key - **API key parameter name**: api_key_query - **Location**: URL query string + ### bearer_test - **Type**: Bearer authentication (JWT) + ### http_basic_test - **Type**: HTTP basic authentication + ### petstore_auth + - **Type**: OAuth - **Flow**: implicit - **Authorization URL**: http://petstore.swagger.io/api/oauth/dialog diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md b/samples/openapi3/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md index 7df1c7b33949..c85e85acd9e3 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/AdditionalPropertiesClass.md @@ -1,6 +1,7 @@ # OpenApiPetstore.AdditionalPropertiesClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **mapProperty** | **{String: String}** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Animal.md b/samples/openapi3/client/petstore/javascript-es6/docs/Animal.md index 7bff01675818..483c89a1ab30 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Animal.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Animal.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Animal ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **className** | **String** | | diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/AnotherFakeApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/AnotherFakeApi.md index efd102e1ab31..ba01bd3e2a20 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/AnotherFakeApi.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/AnotherFakeApi.md @@ -7,8 +7,9 @@ Method | HTTP request | Description [**call123testSpecialTags**](AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags - -# **call123testSpecialTags** + +## call123testSpecialTags + > Client call123testSpecialTags(client) To test special tags @@ -16,6 +17,7 @@ To test special tags To test special tags and operation ID starting with number ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -32,6 +34,7 @@ apiInstance.call123testSpecialTags(client, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **client** | [**Client**](Client.md)| client model | @@ -46,6 +49,6 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ApiResponse.md b/samples/openapi3/client/petstore/javascript-es6/docs/ApiResponse.md index e60378fcbfcb..0dc945d60766 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ApiResponse.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/ApiResponse.md @@ -1,6 +1,7 @@ # OpenApiPetstore.ApiResponse ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfArrayOfNumberOnly.md b/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfArrayOfNumberOnly.md index 7a1426ef8183..c321c0985f3a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfArrayOfNumberOnly.md @@ -1,6 +1,7 @@ # OpenApiPetstore.ArrayOfArrayOfNumberOnly ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **arrayArrayNumber** | **[[Number]]** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfNumberOnly.md b/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfNumberOnly.md index 7cec2e71d4b7..b83e136d978f 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfNumberOnly.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/ArrayOfNumberOnly.md @@ -1,6 +1,7 @@ # OpenApiPetstore.ArrayOfNumberOnly ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **arrayNumber** | **[Number]** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayTest.md b/samples/openapi3/client/petstore/javascript-es6/docs/ArrayTest.md index 5828f6ee75bd..711b53a520f5 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ArrayTest.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/ArrayTest.md @@ -1,6 +1,7 @@ # OpenApiPetstore.ArrayTest ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **arrayOfString** | **[String]** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Capitalization.md b/samples/openapi3/client/petstore/javascript-es6/docs/Capitalization.md index abeff984c628..3bbc5d491fc1 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Capitalization.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Capitalization.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Capitalization ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **smallCamel** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Cat.md b/samples/openapi3/client/petstore/javascript-es6/docs/Cat.md index 6dd0f057c857..652bca4ed073 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Cat.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Cat.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Cat ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **declawed** | **Boolean** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/CatAllOf.md b/samples/openapi3/client/petstore/javascript-es6/docs/CatAllOf.md new file mode 100644 index 000000000000..3b8274c01202 --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/docs/CatAllOf.md @@ -0,0 +1,9 @@ +# OpenApiPetstore.CatAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**declawed** | **Boolean** | | [optional] + + diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Category.md b/samples/openapi3/client/petstore/javascript-es6/docs/Category.md index 5c333f8f61ff..2de44aa03ddc 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Category.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Category.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Category ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ClassModel.md b/samples/openapi3/client/petstore/javascript-es6/docs/ClassModel.md index 6fe9c501a5d2..dd90930dade3 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ClassModel.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/ClassModel.md @@ -1,6 +1,7 @@ # OpenApiPetstore.ClassModel ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_class** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Client.md b/samples/openapi3/client/petstore/javascript-es6/docs/Client.md index a6c7711e74e7..1164b7043191 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Client.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Client.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Client ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/DefaultApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/DefaultApi.md index f351144fabbe..cf507abc2ffb 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/DefaultApi.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/DefaultApi.md @@ -7,13 +7,15 @@ Method | HTTP request | Description [**fooGet**](DefaultApi.md#fooGet) | **GET** /foo | - -# **fooGet** + +## fooGet + > InlineResponseDefault fooGet() ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -28,6 +30,7 @@ apiInstance.fooGet((error, data, response) => { ``` ### Parameters + This endpoint does not need any parameter. ### Return type @@ -40,6 +43,6 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Dog.md b/samples/openapi3/client/petstore/javascript-es6/docs/Dog.md index f35663407e83..fd3b9f7c77ce 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Dog.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Dog.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Dog ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **breed** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/DogAllOf.md b/samples/openapi3/client/petstore/javascript-es6/docs/DogAllOf.md new file mode 100644 index 000000000000..8a6402940735 --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/docs/DogAllOf.md @@ -0,0 +1,9 @@ +# OpenApiPetstore.DogAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**breed** | **String** | | [optional] + + diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/EnumArrays.md b/samples/openapi3/client/petstore/javascript-es6/docs/EnumArrays.md index 5f624e5db484..4926385b3ff8 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/EnumArrays.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/EnumArrays.md @@ -1,13 +1,14 @@ # OpenApiPetstore.EnumArrays ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **justSymbol** | **String** | | [optional] **arrayEnum** | **[String]** | | [optional] - + ## Enum: JustSymbolEnum @@ -18,7 +19,7 @@ Name | Type | Description | Notes - + ## Enum: [ArrayEnumEnum] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/EnumTest.md b/samples/openapi3/client/petstore/javascript-es6/docs/EnumTest.md index 2452654816f0..b56c3c4cef63 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/EnumTest.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/EnumTest.md @@ -1,6 +1,7 @@ # OpenApiPetstore.EnumTest ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **enumString** | **String** | | [optional] @@ -13,7 +14,7 @@ Name | Type | Description | Notes **outerEnumIntegerDefaultValue** | [**OuterEnumIntegerDefaultValue**](OuterEnumIntegerDefaultValue.md) | | [optional] - + ## Enum: EnumStringEnum @@ -26,7 +27,7 @@ Name | Type | Description | Notes - + ## Enum: EnumStringRequiredEnum @@ -39,7 +40,7 @@ Name | Type | Description | Notes - + ## Enum: EnumIntegerEnum @@ -50,7 +51,7 @@ Name | Type | Description | Notes - + ## Enum: EnumNumberEnum diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md index 258f637c3de2..cc6ba6590f02 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/FakeApi.md @@ -19,13 +19,15 @@ Method | HTTP request | Description [**testJsonFormData**](FakeApi.md#testJsonFormData) | **GET** /fake/jsonFormData | test json serialization of form data - -# **fakeHealthGet** + +## fakeHealthGet + > HealthCheckResult fakeHealthGet() Health check endpoint ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -40,6 +42,7 @@ apiInstance.fakeHealthGet((error, data, response) => { ``` ### Parameters + This endpoint does not need any parameter. ### Return type @@ -52,11 +55,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json + + +## fakeOuterBooleanSerialize - -# **fakeOuterBooleanSerialize** > Boolean fakeOuterBooleanSerialize(opts) @@ -64,6 +68,7 @@ No authorization required Test serialization of outer boolean types ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -82,6 +87,7 @@ apiInstance.fakeOuterBooleanSerialize(opts, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **Boolean**| Input boolean as post body | [optional] @@ -96,11 +102,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: */* +- **Content-Type**: application/json +- **Accept**: */* + + +## fakeOuterCompositeSerialize - -# **fakeOuterCompositeSerialize** > OuterComposite fakeOuterCompositeSerialize(opts) @@ -108,6 +115,7 @@ No authorization required Test serialization of object with outer number type ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -126,6 +134,7 @@ apiInstance.fakeOuterCompositeSerialize(opts, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] @@ -140,11 +149,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: */* +- **Content-Type**: application/json +- **Accept**: */* + + +## fakeOuterNumberSerialize - -# **fakeOuterNumberSerialize** > Number fakeOuterNumberSerialize(opts) @@ -152,6 +162,7 @@ No authorization required Test serialization of outer number types ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -170,6 +181,7 @@ apiInstance.fakeOuterNumberSerialize(opts, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **Number**| Input number as post body | [optional] @@ -184,11 +196,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: */* +- **Content-Type**: application/json +- **Accept**: */* + + +## fakeOuterStringSerialize - -# **fakeOuterStringSerialize** > String fakeOuterStringSerialize(opts) @@ -196,6 +209,7 @@ No authorization required Test serialization of outer string types ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -214,6 +228,7 @@ apiInstance.fakeOuterStringSerialize(opts, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **body** | **String**| Input string as post body | [optional] @@ -228,11 +243,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: */* +- **Content-Type**: application/json +- **Accept**: */* + + +## testBodyWithFileSchema - -# **testBodyWithFileSchema** > testBodyWithFileSchema(fileSchemaTestClass) @@ -240,6 +256,7 @@ No authorization required For this test, the body for this request much reference a schema named `File`. ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -256,6 +273,7 @@ apiInstance.testBodyWithFileSchema(fileSchemaTestClass, (error, data, response) ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | @@ -270,16 +288,18 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined + + +## testBodyWithQueryParams - -# **testBodyWithQueryParams** > testBodyWithQueryParams(query, user) ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -297,6 +317,7 @@ apiInstance.testBodyWithQueryParams(query, user, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **query** | **String**| | @@ -312,11 +333,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined + + +## testClientModel - -# **testClientModel** > Client testClientModel(client) To test \"client\" model @@ -324,6 +346,7 @@ To test \"client\" model To test \"client\" model ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -340,6 +363,7 @@ apiInstance.testClientModel(client, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **client** | [**Client**](Client.md)| client model | @@ -354,11 +378,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json + + +## testEndpointParameters - -# **testEndpointParameters** > testEndpointParameters(_number, _double, patternWithoutDelimiter, _byte, opts) Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 @@ -366,6 +391,7 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -402,6 +428,7 @@ apiInstance.testEndpointParameters(_number, _double, patternWithoutDelimiter, _b ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **_number** | **Number**| None | @@ -429,11 +456,12 @@ null (empty response body) ### HTTP request headers - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: Not defined + + +## testEnumParameters - -# **testEnumParameters** > testEnumParameters(opts) To test enum parameters @@ -441,6 +469,7 @@ To test enum parameters To test enum parameters ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -466,6 +495,7 @@ apiInstance.testEnumParameters(opts, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **enumHeaderStringArray** | [**[String]**](String.md)| Header parameter enum test (string array) | [optional] @@ -487,11 +517,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: Not defined + + +## testGroupParameters - -# **testGroupParameters** > testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, opts) 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) ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -526,6 +558,7 @@ apiInstance.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requi ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **requiredStringGroup** | **Number**| Required String in group parameters | @@ -545,16 +578,18 @@ null (empty response body) ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined + + +## testInlineAdditionalProperties - -# **testInlineAdditionalProperties** > testInlineAdditionalProperties(requestBody) test inline additionalProperties ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -571,6 +606,7 @@ apiInstance.testInlineAdditionalProperties(requestBody, (error, data, response) ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **requestBody** | [**{String: String}**](String.md)| request body | @@ -585,16 +621,18 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined + + +## testJsonFormData - -# **testJsonFormData** > testJsonFormData(param, param2) test json serialization of form data ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -612,6 +650,7 @@ apiInstance.testJsonFormData(param, param2, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **param** | **String**| field1 | @@ -627,6 +666,6 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: Not defined diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md b/samples/openapi3/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md index 929885c3d9e8..142a911a3c94 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/FakeClassnameTags123Api.md @@ -7,8 +7,9 @@ Method | HTTP request | Description [**testClassname**](FakeClassnameTags123Api.md#testClassname) | **PATCH** /fake_classname_test | To test class name in snake case - -# **testClassname** + +## testClassname + > Client testClassname(client) 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 ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -38,6 +40,7 @@ apiInstance.testClassname(client, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **client** | [**Client**](Client.md)| client model | @@ -52,6 +55,6 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: application/json diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/File.md b/samples/openapi3/client/petstore/javascript-es6/docs/File.md index a34d76a3e46e..51162c3e0da3 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/File.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/File.md @@ -1,6 +1,7 @@ # OpenApiPetstore.File ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **sourceURI** | **String** | Test capitalization | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/FileSchemaTestClass.md b/samples/openapi3/client/petstore/javascript-es6/docs/FileSchemaTestClass.md index 3ccb4162dcc1..6f28c4976f10 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/FileSchemaTestClass.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/FileSchemaTestClass.md @@ -1,6 +1,7 @@ # OpenApiPetstore.FileSchemaTestClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **file** | **File** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Foo.md b/samples/openapi3/client/petstore/javascript-es6/docs/Foo.md index 60f1ad838fb3..1e0c9a294c48 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Foo.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Foo.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Foo ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bar** | **String** | | [optional] [default to 'bar'] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/FormatTest.md b/samples/openapi3/client/petstore/javascript-es6/docs/FormatTest.md index 611ac6b05e2b..83d751d4cdde 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/FormatTest.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/FormatTest.md @@ -1,6 +1,7 @@ # OpenApiPetstore.FormatTest ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **integer** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md b/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md index abc4ce62184c..f3d71895b54b 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/HasOnlyReadOnly.md @@ -1,6 +1,7 @@ # OpenApiPetstore.HasOnlyReadOnly ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bar** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/HealthCheckResult.md b/samples/openapi3/client/petstore/javascript-es6/docs/HealthCheckResult.md index 366b5f56c594..bbb74ac6a0ae 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/HealthCheckResult.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/HealthCheckResult.md @@ -1,6 +1,7 @@ # OpenApiPetstore.HealthCheckResult ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **nullableMessage** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject.md index 1908f0e47c4c..529c032d7a99 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject.md @@ -1,6 +1,7 @@ # OpenApiPetstore.InlineObject ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Updated name of the pet | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject1.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject1.md index fcb6a4dbb4e2..bd2fcd57a209 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject1.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject1.md @@ -1,6 +1,7 @@ # OpenApiPetstore.InlineObject1 ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additionalMetadata** | **String** | Additional data to pass to server | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject2.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject2.md index 61d275b7241f..7d703a9086a3 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject2.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject2.md @@ -1,13 +1,14 @@ # OpenApiPetstore.InlineObject2 ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **enumFormStringArray** | **[String]** | Form parameter enum test (string array) | [optional] **enumFormString** | **String** | Form parameter enum test (string) | [optional] [default to '-efg'] - + ## Enum: [EnumFormStringArrayEnum] @@ -18,7 +19,7 @@ Name | Type | Description | Notes - + ## Enum: EnumFormStringEnum diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject3.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject3.md index 000c9a45aa81..ec8980b728e7 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject3.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject3.md @@ -1,6 +1,7 @@ # OpenApiPetstore.InlineObject3 ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **integer** | **Number** | None | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject4.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject4.md index dc35a7642263..07ce4b0cac21 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject4.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject4.md @@ -1,6 +1,7 @@ # OpenApiPetstore.InlineObject4 ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **param** | **String** | field1 | diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject5.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject5.md index a4bda699ba36..16547e7f52bc 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject5.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/InlineObject5.md @@ -1,6 +1,7 @@ # OpenApiPetstore.InlineObject5 ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additionalMetadata** | **String** | Additional data to pass to server | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/InlineResponseDefault.md b/samples/openapi3/client/petstore/javascript-es6/docs/InlineResponseDefault.md index ee3d62120d33..19cae09524bd 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/InlineResponseDefault.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/InlineResponseDefault.md @@ -1,6 +1,7 @@ # OpenApiPetstore.InlineResponseDefault ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_string** | [**Foo**](Foo.md) | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/List.md b/samples/openapi3/client/petstore/javascript-es6/docs/List.md index 3a9555e34e0a..aaaa082e6a5b 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/List.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/List.md @@ -1,6 +1,7 @@ # OpenApiPetstore.List ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_123list** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/MapTest.md b/samples/openapi3/client/petstore/javascript-es6/docs/MapTest.md index 152d3fbe8c7a..9399adf75329 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/MapTest.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/MapTest.md @@ -1,6 +1,7 @@ # OpenApiPetstore.MapTest ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **mapMapOfString** | **{String: {String: String}}** | | [optional] @@ -9,7 +10,7 @@ Name | Type | Description | Notes **indirectMap** | **{String: Boolean}** | | [optional] - + ## Enum: {String: String} diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md b/samples/openapi3/client/petstore/javascript-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md index 051f771930ea..776d4b3ae052 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/MixedPropertiesAndAdditionalPropertiesClass.md @@ -1,6 +1,7 @@ # OpenApiPetstore.MixedPropertiesAndAdditionalPropertiesClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **uuid** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Model200Response.md b/samples/openapi3/client/petstore/javascript-es6/docs/Model200Response.md index 0a0d02cc32e1..45f7932a1be7 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Model200Response.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Model200Response.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Model200Response ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ModelReturn.md b/samples/openapi3/client/petstore/javascript-es6/docs/ModelReturn.md index 9ce6e2038787..c93601692f60 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ModelReturn.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/ModelReturn.md @@ -1,6 +1,7 @@ # OpenApiPetstore.ModelReturn ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_return** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Name.md b/samples/openapi3/client/petstore/javascript-es6/docs/Name.md index 8dfcc460361f..be2344179b47 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Name.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Name.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Name ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **Number** | | diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/NullableClass.md b/samples/openapi3/client/petstore/javascript-es6/docs/NullableClass.md new file mode 100644 index 000000000000..3460980270dd --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/docs/NullableClass.md @@ -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] + + diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/NumberOnly.md b/samples/openapi3/client/petstore/javascript-es6/docs/NumberOnly.md index cf84674ed4e0..65243600759d 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/NumberOnly.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/NumberOnly.md @@ -1,6 +1,7 @@ # OpenApiPetstore.NumberOnly ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **justNumber** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Order.md b/samples/openapi3/client/petstore/javascript-es6/docs/Order.md index 987992caa70a..3f63473a2394 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Order.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Order.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Order ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Number** | | [optional] @@ -11,7 +12,7 @@ Name | Type | Description | Notes **complete** | **Boolean** | | [optional] [default to false] - + ## Enum: StatusEnum diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/OuterComposite.md b/samples/openapi3/client/petstore/javascript-es6/docs/OuterComposite.md index c49b32ff3290..aea253a0dfe0 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/OuterComposite.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/OuterComposite.md @@ -1,6 +1,7 @@ # OpenApiPetstore.OuterComposite ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **myNumber** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Pet.md b/samples/openapi3/client/petstore/javascript-es6/docs/Pet.md index e91ae688aad1..68bb1eb7a048 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Pet.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Pet.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Pet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Number** | | [optional] @@ -11,7 +12,7 @@ Name | Type | Description | Notes **status** | **String** | pet status in the store | [optional] - + ## Enum: StatusEnum diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/PetApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/PetApi.md index 554b75396d00..44734fbe72d3 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/PetApi.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/PetApi.md @@ -15,13 +15,15 @@ Method | HTTP request | Description [**uploadFileWithRequiredFile**](PetApi.md#uploadFileWithRequiredFile) | **POST** /fake/{petId}/uploadImageWithRequiredFile | uploads an image (required) - -# **addPet** + +## addPet + > addPet(pet) Add a new pet to the store ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -42,6 +44,7 @@ apiInstance.addPet(pet, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **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 - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined +- **Content-Type**: application/json, application/xml +- **Accept**: Not defined + + +## deletePet - -# **deletePet** > deletePet(petId, opts) Deletes a pet ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -89,6 +94,7 @@ apiInstance.deletePet(petId, opts, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **Number**| Pet id to delete | @@ -104,11 +110,12 @@ null (empty response body) ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined + + +## findPetsByStatus - -# **findPetsByStatus** > [Pet] findPetsByStatus(status) Finds Pets by status @@ -116,6 +123,7 @@ Finds Pets by status Multiple status values can be provided with comma separated strings ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -136,6 +144,7 @@ apiInstance.findPetsByStatus(status, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **status** | [**[String]**](String.md)| Status values that need to be considered for filter | @@ -150,11 +159,12 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json + + +## findPetsByTags - -# **findPetsByTags** > [Pet] findPetsByTags(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. ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -182,6 +193,7 @@ apiInstance.findPetsByTags(tags, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **tags** | [**[String]**](String.md)| Tags to filter by | @@ -196,11 +208,12 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json + + +## getPetById - -# **getPetById** > Pet getPetById(petId) Find pet by ID @@ -208,6 +221,7 @@ Find pet by ID Returns a single pet ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -230,6 +244,7 @@ apiInstance.getPetById(petId, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **Number**| ID of pet to return | @@ -244,16 +259,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json + + +## updatePet - -# **updatePet** > updatePet(pet) Update an existing pet ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -274,6 +291,7 @@ apiInstance.updatePet(pet, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **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 - - **Content-Type**: application/json, application/xml - - **Accept**: Not defined +- **Content-Type**: application/json, application/xml +- **Accept**: Not defined + + +## updatePetWithForm - -# **updatePetWithForm** > updatePetWithForm(petId, opts) Updates a pet in the store with form data ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -322,6 +342,7 @@ apiInstance.updatePetWithForm(petId, opts, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **Number**| ID of pet that needs to be updated | @@ -338,16 +359,18 @@ null (empty response body) ### HTTP request headers - - **Content-Type**: application/x-www-form-urlencoded - - **Accept**: Not defined +- **Content-Type**: application/x-www-form-urlencoded +- **Accept**: Not defined + + +## uploadFile - -# **uploadFile** > ApiResponse uploadFile(petId, opts) uploads an image ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -372,6 +395,7 @@ apiInstance.uploadFile(petId, opts, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **Number**| ID of pet to update | @@ -388,16 +412,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: multipart/form-data - - **Accept**: application/json +- **Content-Type**: multipart/form-data +- **Accept**: application/json + + +## uploadFileWithRequiredFile - -# **uploadFileWithRequiredFile** > ApiResponse uploadFileWithRequiredFile(petId, requiredFile, opts) uploads an image (required) ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -422,6 +448,7 @@ apiInstance.uploadFileWithRequiredFile(petId, requiredFile, opts, (error, data, ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **petId** | **Number**| ID of pet to update | @@ -438,6 +465,6 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: multipart/form-data - - **Accept**: application/json +- **Content-Type**: multipart/form-data +- **Accept**: application/json diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md b/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md index 671280fba339..01063e61a99f 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/ReadOnlyFirst.md @@ -1,6 +1,7 @@ # OpenApiPetstore.ReadOnlyFirst ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bar** | **String** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/SpecialModelName.md b/samples/openapi3/client/petstore/javascript-es6/docs/SpecialModelName.md index 6039f53de367..f33678460bf3 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/SpecialModelName.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/SpecialModelName.md @@ -1,6 +1,7 @@ # OpenApiPetstore.SpecialModelName ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **specialPropertyName** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/StoreApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/StoreApi.md index fc6278c20954..0f29ae4629fa 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/StoreApi.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/StoreApi.md @@ -10,8 +10,9 @@ Method | HTTP request | Description [**placeOrder**](StoreApi.md#placeOrder) | **POST** /store/order | Place an order for a pet - -# **deleteOrder** + +## deleteOrder + > deleteOrder(orderId) Delete purchase order by ID @@ -19,6 +20,7 @@ Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -35,6 +37,7 @@ apiInstance.deleteOrder(orderId, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **orderId** | **String**| ID of the order that needs to be deleted | @@ -49,11 +52,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined + + +## getInventory - -# **getInventory** > {String: Number} getInventory() Returns pet inventories by status @@ -61,6 +65,7 @@ Returns pet inventories by status Returns a map of status codes to quantities ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; let defaultClient = OpenApiPetstore.ApiClient.instance; @@ -81,6 +86,7 @@ apiInstance.getInventory((error, data, response) => { ``` ### Parameters + This endpoint does not need any parameter. ### Return type @@ -93,11 +99,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: application/json + + +## getOrderById - -# **getOrderById** > Order getOrderById(orderId) Find purchase order by ID @@ -105,6 +112,7 @@ Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -121,6 +129,7 @@ apiInstance.getOrderById(orderId, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **orderId** | **Number**| ID of pet that needs to be fetched | @@ -135,16 +144,18 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json + + +## placeOrder - -# **placeOrder** > Order placeOrder(order) Place an order for a pet ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -161,6 +172,7 @@ apiInstance.placeOrder(order, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **order** | [**Order**](Order.md)| order placed for purchasing the pet | @@ -175,6 +187,6 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/xml, application/json +- **Content-Type**: application/json +- **Accept**: application/xml, application/json diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/Tag.md b/samples/openapi3/client/petstore/javascript-es6/docs/Tag.md index a53941e80e0c..ce6fec0ab93f 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/Tag.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/Tag.md @@ -1,6 +1,7 @@ # OpenApiPetstore.Tag ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/User.md b/samples/openapi3/client/petstore/javascript-es6/docs/User.md index 2e86dd378bfa..096f606d0b92 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/User.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/User.md @@ -1,6 +1,7 @@ # OpenApiPetstore.User ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **Number** | | [optional] diff --git a/samples/openapi3/client/petstore/javascript-es6/docs/UserApi.md b/samples/openapi3/client/petstore/javascript-es6/docs/UserApi.md index 76825a343e5a..c45620854176 100644 --- a/samples/openapi3/client/petstore/javascript-es6/docs/UserApi.md +++ b/samples/openapi3/client/petstore/javascript-es6/docs/UserApi.md @@ -14,8 +14,9 @@ Method | HTTP request | Description [**updateUser**](UserApi.md#updateUser) | **PUT** /user/{username} | Updated user - -# **createUser** + +## createUser + > createUser(user) Create user @@ -23,6 +24,7 @@ Create user This can only be done by the logged in user. ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -39,6 +41,7 @@ apiInstance.createUser(user, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **user** | [**User**](User.md)| Created user object | @@ -53,16 +56,18 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined + + +## createUsersWithArrayInput - -# **createUsersWithArrayInput** > createUsersWithArrayInput(user) Creates list of users with given input array ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -79,9 +84,10 @@ apiInstance.createUsersWithArrayInput(user, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**[User]**](Array.md)| List of user object | + **user** | [**[User]**](User.md)| List of user object | ### Return type @@ -93,16 +99,18 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined + + +## createUsersWithListInput - -# **createUsersWithListInput** > createUsersWithListInput(user) Creates list of users with given input array ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -119,9 +127,10 @@ apiInstance.createUsersWithListInput(user, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **user** | [**[User]**](Array.md)| List of user object | + **user** | [**[User]**](User.md)| List of user object | ### Return type @@ -133,11 +142,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined + + +## deleteUser - -# **deleteUser** > deleteUser(username) Delete user @@ -145,6 +155,7 @@ Delete user This can only be done by the logged in user. ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -161,6 +172,7 @@ apiInstance.deleteUser(username, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **String**| The name that needs to be deleted | @@ -175,16 +187,18 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined + + +## getUserByName - -# **getUserByName** > User getUserByName(username) Get user by user name ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -201,6 +215,7 @@ apiInstance.getUserByName(username, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **String**| The name that needs to be fetched. Use user1 for testing. | @@ -215,16 +230,18 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json + + +## loginUser - -# **loginUser** > String loginUser(username, password) Logs user into the system ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -242,6 +259,7 @@ apiInstance.loginUser(username, password, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **String**| The user name for login | @@ -257,16 +275,18 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/xml, application/json +- **Content-Type**: Not defined +- **Accept**: application/xml, application/json + + +## logoutUser - -# **logoutUser** > logoutUser() Logs out current logged in user session ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -281,6 +301,7 @@ apiInstance.logoutUser((error, data, response) => { ``` ### Parameters + This endpoint does not need any parameter. ### Return type @@ -293,11 +314,12 @@ No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: Not defined + + +## updateUser - -# **updateUser** > updateUser(username, user) Updated user @@ -305,6 +327,7 @@ Updated user This can only be done by the logged in user. ### Example + ```javascript import OpenApiPetstore from 'open_api_petstore'; @@ -322,6 +345,7 @@ apiInstance.updateUser(username, user, (error, data, response) => { ### Parameters + Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **username** | **String**| name that need to be deleted | @@ -337,6 +361,6 @@ No authorization required ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: Not defined +- **Content-Type**: application/json +- **Accept**: Not defined diff --git a/samples/openapi3/client/petstore/javascript-es6/package.json b/samples/openapi3/client/petstore/javascript-es6/package.json index ae6e93fe8dc1..94455e4a69a7 100644 --- a/samples/openapi3/client/petstore/javascript-es6/package.json +++ b/samples/openapi3/client/petstore/javascript-es6/package.json @@ -1,7 +1,7 @@ { "name": "open_api_petstore", "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", "main": "dist/index.js", "scripts": { @@ -20,9 +20,9 @@ "babel-core": "6.26.0", "babel-preset-env": "^1.6.1", "babel-preset-stage-0": "^6.24.1", - "expect.js": "~0.3.1", + "expect.js": "^0.3.1", "mocha": "^5.2.0", - "sinon": "1.17.3" + "sinon": "^7.2.0" }, "files": [ "dist" diff --git a/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js b/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js index d9a4ee165912..fc521813b36c 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/ApiClient.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). @@ -610,7 +610,8 @@ class ApiClient { // go through variable and assign a value for (var variable_name in server['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]); } 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'] + "."); diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/AnotherFakeApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/AnotherFakeApi.js index 68992561fea3..c84fc12049af 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/AnotherFakeApi.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/api/AnotherFakeApi.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/DefaultApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/DefaultApi.js index 9cb51731acc5..2a586e6fc32a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/DefaultApi.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/api/DefaultApi.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js index 039aad40f30c..b779413c5a33 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/api/FakeApi.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). @@ -239,7 +239,7 @@ export default class FakeApi { */ /** - * For this test, the body for this request much reference a schema named `File`. + * For this test, the body for this request much reference a schema named `File`. * @param {module:model/FileSchemaTestClass} fileSchemaTestClass * @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 \"client\" model - * To test \"client\" model + * To test \"client\" model + * To test \"client\" model * @param {module:model/Client} client client model * @param {module:api/FakeApi~testClientModelCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Client} @@ -452,13 +452,13 @@ export default class FakeApi { * To test enum parameters * @param {Object} opts Optional parameters * @param {Array.} opts.enumHeaderStringArray Header parameter enum test (string array) - * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg') + * @param {module:model/String} opts.enumHeaderString Header parameter enum test (string) (default to '-efg') * @param {Array.} opts.enumQueryStringArray Query parameter enum test (string array) - * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg') + * @param {module:model/String} opts.enumQueryString Query parameter enum test (string) (default to '-efg') * @param {module:model/Number} opts.enumQueryInteger Query parameter enum test (double) * @param {module:model/Number} opts.enumQueryDouble Query parameter enum test (double) - * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$') - * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg') + * @param {Array.} opts.enumFormStringArray Form parameter enum test (string array) (default to '$') + * @param {module:model/String} opts.enumFormString Form parameter enum test (string) (default to '-efg') * @param {module:api/FakeApi~testEnumParametersCallback} callback The callback function, accepting three arguments: error, data, response */ testEnumParameters(opts, callback) { diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js b/samples/openapi3/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js index d6250c7451d0..324529a59b2b 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/api/FakeClassnameTags123Api.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/PetApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/PetApi.js index 7678d73bf3fb..0f23c0690101 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/PetApi.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/api/PetApi.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/StoreApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/StoreApi.js index 153fc4a25702..74ad1afd3efa 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/StoreApi.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/api/StoreApi.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). @@ -44,7 +44,7 @@ export default class StoreApi { /** * Delete purchase order by ID - * For valid response try integer IDs with value < 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 {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 - * For valid response try integer IDs with value <= 5 or > 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 {module:api/StoreApi~getOrderByIdCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Order} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/api/UserApi.js b/samples/openapi3/client/petstore/javascript-es6/src/api/UserApi.js index eb9cbeaad76b..83720dd3a1dd 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/api/UserApi.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/api/UserApi.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). @@ -85,7 +85,7 @@ export default class UserApi { /** * Creates list of users with given input array - * @param {Array.} user List of user object + * @param {Array.} user List of user object * @param {module:api/UserApi~createUsersWithArrayInputCallback} callback The callback function, accepting three arguments: error, data, response */ createUsersWithArrayInput(user, callback) { @@ -125,7 +125,7 @@ export default class UserApi { /** * Creates list of users with given input array - * @param {Array.} user List of user object + * @param {Array.} user List of user object * @param {module:api/UserApi~createUsersWithListInputCallback} callback The callback function, accepting three arguments: error, data, response */ createUsersWithListInput(user, callback) { diff --git a/samples/openapi3/client/petstore/javascript-es6/src/index.js b/samples/openapi3/client/petstore/javascript-es6/src/index.js index 76f8c23aee68..1a0cda3b1dcd 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/index.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/index.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). @@ -21,10 +21,12 @@ import ArrayOfNumberOnly from './model/ArrayOfNumberOnly'; import ArrayTest from './model/ArrayTest'; import Capitalization from './model/Capitalization'; import Cat from './model/Cat'; +import CatAllOf from './model/CatAllOf'; import Category from './model/Category'; import ClassModel from './model/ClassModel'; import Client from './model/Client'; import Dog from './model/Dog'; +import DogAllOf from './model/DogAllOf'; import EnumArrays from './model/EnumArrays'; import EnumClass from './model/EnumClass'; import EnumTest from './model/EnumTest'; @@ -47,6 +49,7 @@ import MixedPropertiesAndAdditionalPropertiesClass from './model/MixedProperties import Model200Response from './model/Model200Response'; import ModelReturn from './model/ModelReturn'; import Name from './model/Name'; +import NullableClass from './model/NullableClass'; import NumberOnly from './model/NumberOnly'; import Order from './model/Order'; 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__.
+* 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 index module provides access to constructors for all the classes which comprise the public API. *

* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: @@ -154,6 +157,12 @@ export { */ Cat, + /** + * The CatAllOf model constructor. + * @property {module:model/CatAllOf} + */ + CatAllOf, + /** * The Category model constructor. * @property {module:model/Category} @@ -178,6 +187,12 @@ export { */ Dog, + /** + * The DogAllOf model constructor. + * @property {module:model/DogAllOf} + */ + DogAllOf, + /** * The EnumArrays model constructor. * @property {module:model/EnumArrays} @@ -310,6 +325,12 @@ export { */ Name, + /** + * The NullableClass model constructor. + * @property {module:model/NullableClass} + */ + NullableClass, + /** * The NumberOnly model constructor. * @property {module:model/NumberOnly} diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js index d6e898a5ab09..d6d83cca284f 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/AdditionalPropertiesClass.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Animal.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Animal.js index c55d0c758f00..7cb9017160b2 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Animal.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Animal.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ApiResponse.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ApiResponse.js index 4f5fb55291c1..f5af17fdf82d 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ApiResponse.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/ApiResponse.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js index e8d959f36898..eadd7db414b1 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfArrayOfNumberOnly.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js index 4fb72e435e60..1145a62630d2 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayOfNumberOnly.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayTest.js index 8096c2c4f7f7..18bc925308a3 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayTest.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/ArrayTest.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Capitalization.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Capitalization.js index bc1cdefb71bc..63b14361fee4 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Capitalization.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Capitalization.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Cat.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Cat.js index 63a40454559b..d18ce94e70e7 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Cat.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Cat.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). @@ -13,6 +13,7 @@ import ApiClient from '../ApiClient'; import Animal from './Animal'; +import CatAllOf from './CatAllOf'; /** * The Cat model module. @@ -25,10 +26,11 @@ class Cat { * @alias module:model/Cat * @extends module:model/Animal * @implements module:model/Animal + * @implements module:model/CatAllOf * @param className {String} */ constructor(className) { - Animal.initialize(this, className); + Animal.initialize(this, className);CatAllOf.initialize(this); Cat.initialize(this, className); } @@ -52,6 +54,7 @@ class Cat { obj = obj || new Cat(); Animal.constructFromObject(data, obj); Animal.constructFromObject(data, obj); + CatAllOf.constructFromObject(data, obj); if (data.hasOwnProperty('declawed')) { obj['declawed'] = ApiClient.convertToType(data['declawed'], 'Boolean'); @@ -79,6 +82,11 @@ Animal.prototype['className'] = undefined; * @default 'red' */ Animal.prototype['color'] = 'red'; +// Implement CatAllOf interface: +/** + * @member {Boolean} declawed + */ +CatAllOf.prototype['declawed'] = undefined; diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/CatAllOf.js b/samples/openapi3/client/petstore/javascript-es6/src/model/CatAllOf.js new file mode 100644 index 000000000000..c71ea7129b05 --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/CatAllOf.js @@ -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 CatAllOf. + * @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 CatAllOf from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj 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 CatAllOf 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; + diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Category.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Category.js index 5540805591cb..00d86502a632 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Category.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Category.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ClassModel.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ClassModel.js index 2e55c2a6342e..ee1f14177778 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ClassModel.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/ClassModel.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Client.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Client.js index c506d2fa174d..8521c85043bb 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Client.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Client.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Dog.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Dog.js index 6187e0310743..b101feecd321 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Dog.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Dog.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). @@ -13,6 +13,7 @@ import ApiClient from '../ApiClient'; import Animal from './Animal'; +import DogAllOf from './DogAllOf'; /** * The Dog model module. @@ -25,10 +26,11 @@ class Dog { * @alias module:model/Dog * @extends module:model/Animal * @implements module:model/Animal + * @implements module:model/DogAllOf * @param className {String} */ constructor(className) { - Animal.initialize(this, className); + Animal.initialize(this, className);DogAllOf.initialize(this); Dog.initialize(this, className); } @@ -52,6 +54,7 @@ class Dog { obj = obj || new Dog(); Animal.constructFromObject(data, obj); Animal.constructFromObject(data, obj); + DogAllOf.constructFromObject(data, obj); if (data.hasOwnProperty('breed')) { obj['breed'] = ApiClient.convertToType(data['breed'], 'String'); @@ -79,6 +82,11 @@ Animal.prototype['className'] = undefined; * @default 'red' */ Animal.prototype['color'] = 'red'; +// Implement DogAllOf interface: +/** + * @member {String} breed + */ +DogAllOf.prototype['breed'] = undefined; diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/DogAllOf.js b/samples/openapi3/client/petstore/javascript-es6/src/model/DogAllOf.js new file mode 100644 index 000000000000..58ecede61267 --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/DogAllOf.js @@ -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 DogAllOf. + * @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 DogAllOf from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj 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 DogAllOf 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; + diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumArrays.js b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumArrays.js index 9426d4735ac1..7fe64e3111a5 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumArrays.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumArrays.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumClass.js index 65ac9f1f1bc3..f0888e52d5ba 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumClass.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumClass.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumTest.js index 0c51138d7348..dc684b7c26b1 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/EnumTest.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/EnumTest.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/File.js b/samples/openapi3/client/petstore/javascript-es6/src/model/File.js index e29e1a0309f1..12b51b87d897 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/File.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/File.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js index b4be63df0e68..b6fe9e90ece2 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/FileSchemaTestClass.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Foo.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Foo.js index ef086dc645d8..3e4477b805b9 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Foo.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Foo.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js index 435482b99e19..0c5fccb9072b 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/FormatTest.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js index 9c11ae559c9e..57c9173723e7 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/HasOnlyReadOnly.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js b/samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js index cb43d1dfad5b..2dd62c2a267b 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/HealthCheckResult.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js index 5fb612b504f5..6815bc809cf6 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js index 8185d49be2a6..947877256fb2 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject1.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js index a419f55db149..e6ed9044568b 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject2.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js index ffe0fcc5b0bf..6a14f67109c8 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject3.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js index 10317855d152..9d5d5715c66f 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject4.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js index aced91fc5ede..1969e9b2ef3a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineObject5.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js index 910cf38d1ee3..2f66d888ec94 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/InlineResponseDefault.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/List.js b/samples/openapi3/client/petstore/javascript-es6/src/model/List.js index d4d342319e7f..18d6a258491a 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/List.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/List.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/MapTest.js b/samples/openapi3/client/petstore/javascript-es6/src/model/MapTest.js index 683ca05ebc26..3113ad56bd4e 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/MapTest.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/MapTest.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js index 5568d3a6e96f..7cd9ca844f9e 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/MixedPropertiesAndAdditionalPropertiesClass.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Model200Response.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Model200Response.js index 629b0f0c75a1..88daaba2ebb0 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Model200Response.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Model200Response.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ModelReturn.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ModelReturn.js index 9ad0c11befcf..bdfe578288a2 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ModelReturn.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/ModelReturn.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Name.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Name.js index 63e7d52e5ff6..740d4bad15b3 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Name.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Name.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/NullableClass.js b/samples/openapi3/client/petstore/javascript-es6/src/model/NullableClass.js new file mode 100644 index 000000000000..12a0f2509b6c --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/NullableClass.js @@ -0,0 +1,163 @@ +/** + * 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 NullableClass model module. + * @module model/NullableClass + * @version 1.0.0 + */ +class NullableClass { + /** + * Constructs a new NullableClass. + * @alias module:model/NullableClass + * @extends Object + */ + constructor() { + + NullableClass.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 NullableClass from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NullableClass} obj Optional instance to populate. + * @return {module:model/NullableClass} The populated NullableClass instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NullableClass(); + + ApiClient.constructFromObject(data, obj, 'Object'); + + + if (data.hasOwnProperty('integer_prop')) { + obj['integer_prop'] = ApiClient.convertToType(data['integer_prop'], 'Number'); + } + if (data.hasOwnProperty('number_prop')) { + obj['number_prop'] = ApiClient.convertToType(data['number_prop'], 'Number'); + } + if (data.hasOwnProperty('boolean_prop')) { + obj['boolean_prop'] = ApiClient.convertToType(data['boolean_prop'], 'Boolean'); + } + if (data.hasOwnProperty('string_prop')) { + obj['string_prop'] = ApiClient.convertToType(data['string_prop'], 'String'); + } + if (data.hasOwnProperty('date_prop')) { + obj['date_prop'] = ApiClient.convertToType(data['date_prop'], 'Date'); + } + if (data.hasOwnProperty('datetime_prop')) { + obj['datetime_prop'] = ApiClient.convertToType(data['datetime_prop'], 'Date'); + } + if (data.hasOwnProperty('array_nullable_prop')) { + obj['array_nullable_prop'] = ApiClient.convertToType(data['array_nullable_prop'], [Object]); + } + if (data.hasOwnProperty('array_and_items_nullable_prop')) { + obj['array_and_items_nullable_prop'] = ApiClient.convertToType(data['array_and_items_nullable_prop'], [Object]); + } + if (data.hasOwnProperty('array_items_nullable')) { + obj['array_items_nullable'] = ApiClient.convertToType(data['array_items_nullable'], [Object]); + } + if (data.hasOwnProperty('object_nullable_prop')) { + obj['object_nullable_prop'] = ApiClient.convertToType(data['object_nullable_prop'], {'String': Object}); + } + if (data.hasOwnProperty('object_and_items_nullable_prop')) { + obj['object_and_items_nullable_prop'] = ApiClient.convertToType(data['object_and_items_nullable_prop'], {'String': Object}); + } + if (data.hasOwnProperty('object_items_nullable')) { + obj['object_items_nullable'] = ApiClient.convertToType(data['object_items_nullable'], {'String': Object}); + } + } + return obj; + } + + +} + +/** + * @member {Number} integer_prop + */ +NullableClass.prototype['integer_prop'] = undefined; + +/** + * @member {Number} number_prop + */ +NullableClass.prototype['number_prop'] = undefined; + +/** + * @member {Boolean} boolean_prop + */ +NullableClass.prototype['boolean_prop'] = undefined; + +/** + * @member {String} string_prop + */ +NullableClass.prototype['string_prop'] = undefined; + +/** + * @member {Date} date_prop + */ +NullableClass.prototype['date_prop'] = undefined; + +/** + * @member {Date} datetime_prop + */ +NullableClass.prototype['datetime_prop'] = undefined; + +/** + * @member {Array.} array_nullable_prop + */ +NullableClass.prototype['array_nullable_prop'] = undefined; + +/** + * @member {Array.} array_and_items_nullable_prop + */ +NullableClass.prototype['array_and_items_nullable_prop'] = undefined; + +/** + * @member {Array.} array_items_nullable + */ +NullableClass.prototype['array_items_nullable'] = undefined; + +/** + * @member {Object.} object_nullable_prop + */ +NullableClass.prototype['object_nullable_prop'] = undefined; + +/** + * @member {Object.} object_and_items_nullable_prop + */ +NullableClass.prototype['object_and_items_nullable_prop'] = undefined; + +/** + * @member {Object.} object_items_nullable + */ +NullableClass.prototype['object_items_nullable'] = undefined; + + + + + + +export default NullableClass; + diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/NumberOnly.js b/samples/openapi3/client/petstore/javascript-es6/src/model/NumberOnly.js index ec5ad812b401..449e08bd9a98 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/NumberOnly.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/NumberOnly.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Order.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Order.js index 8c07a5cd0f3f..1d28748e822c 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Order.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Order.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterComposite.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterComposite.js index ba597462eec6..cc4ed6c172d9 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterComposite.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterComposite.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnum.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnum.js index 0404b03b0611..12fdff98026b 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnum.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnum.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js index 91eb85310652..a65b1dd0a6be 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumDefaultValue.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js index 08cc42947205..b6fc29568a02 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumInteger.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js index d2df27044ce6..86a9d6b9467e 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/OuterEnumIntegerDefaultValue.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Pet.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Pet.js index 37b987fdf81a..b88e5d869f62 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Pet.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Pet.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js b/samples/openapi3/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js index 289277c191d6..8e2a39cf2aeb 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/ReadOnlyFirst.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/SpecialModelName.js b/samples/openapi3/client/petstore/javascript-es6/src/model/SpecialModelName.js index be9f36a855f5..45ba7d7ea09c 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/SpecialModelName.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/SpecialModelName.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/Tag.js b/samples/openapi3/client/petstore/javascript-es6/src/model/Tag.js index 0d39a36833ad..3330530c0c23 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/Tag.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/Tag.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/src/model/User.js b/samples/openapi3/client/petstore/javascript-es6/src/model/User.js index 7f8e2848e18f..473bf7c78bc4 100644 --- a/samples/openapi3/client/petstore/javascript-es6/src/model/User.js +++ b/samples/openapi3/client/petstore/javascript-es6/src/model/User.js @@ -2,7 +2,7 @@ * 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: \" \\ * - * 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). diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/CatAllOf.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/CatAllOf.spec.js new file mode 100644 index 000000000000..be4cf8b972ae --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/CatAllOf.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.CatAllOf(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CatAllOf', function() { + it('should create an instance of CatAllOf', function() { + // uncomment below and update the code to test CatAllOf + //var instane = new OpenApiPetstore.CatAllOf(); + //expect(instance).to.be.a(OpenApiPetstore.CatAllOf); + }); + + it('should have the property declawed (base name: "declawed")', function() { + // uncomment below and update the code to test the property declawed + //var instane = new OpenApiPetstore.CatAllOf(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/DogAllOf.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/DogAllOf.spec.js new file mode 100644 index 000000000000..767e3b0071b9 --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/DogAllOf.spec.js @@ -0,0 +1,65 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.DogAllOf(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DogAllOf', function() { + it('should create an instance of DogAllOf', function() { + // uncomment below and update the code to test DogAllOf + //var instane = new OpenApiPetstore.DogAllOf(); + //expect(instance).to.be.a(OpenApiPetstore.DogAllOf); + }); + + it('should have the property breed (base name: "breed")', function() { + // uncomment below and update the code to test the property breed + //var instane = new OpenApiPetstore.DogAllOf(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/samples/openapi3/client/petstore/javascript-es6/test/model/NullableClass.spec.js b/samples/openapi3/client/petstore/javascript-es6/test/model/NullableClass.spec.js new file mode 100644 index 000000000000..89cd2821d42b --- /dev/null +++ b/samples/openapi3/client/petstore/javascript-es6/test/model/NullableClass.spec.js @@ -0,0 +1,131 @@ +/** + * 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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.OpenApiPetstore); + } +}(this, function(expect, OpenApiPetstore) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new OpenApiPetstore.NullableClass(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NullableClass', function() { + it('should create an instance of NullableClass', function() { + // uncomment below and update the code to test NullableClass + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be.a(OpenApiPetstore.NullableClass); + }); + + it('should have the property integerProp (base name: "integer_prop")', function() { + // uncomment below and update the code to test the property integerProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property numberProp (base name: "number_prop")', function() { + // uncomment below and update the code to test the property numberProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property booleanProp (base name: "boolean_prop")', function() { + // uncomment below and update the code to test the property booleanProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property stringProp (base name: "string_prop")', function() { + // uncomment below and update the code to test the property stringProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property dateProp (base name: "date_prop")', function() { + // uncomment below and update the code to test the property dateProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property datetimeProp (base name: "datetime_prop")', function() { + // uncomment below and update the code to test the property datetimeProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property arrayNullableProp (base name: "array_nullable_prop")', function() { + // uncomment below and update the code to test the property arrayNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property arrayAndItemsNullableProp (base name: "array_and_items_nullable_prop")', function() { + // uncomment below and update the code to test the property arrayAndItemsNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property arrayItemsNullable (base name: "array_items_nullable")', function() { + // uncomment below and update the code to test the property arrayItemsNullable + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property objectNullableProp (base name: "object_nullable_prop")', function() { + // uncomment below and update the code to test the property objectNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property objectAndItemsNullableProp (base name: "object_and_items_nullable_prop")', function() { + // uncomment below and update the code to test the property objectAndItemsNullableProp + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + it('should have the property objectItemsNullable (base name: "object_items_nullable")', function() { + // uncomment below and update the code to test the property objectItemsNullable + //var instane = new OpenApiPetstore.NullableClass(); + //expect(instance).to.be(); + }); + + }); + +}));