diff --git a/bin/configs/java-apache-httpclient.yaml b/bin/configs/java-apache-httpclient.yaml
index 5696973f86f..d08233fecd3 100644
--- a/bin/configs/java-apache-httpclient.yaml
+++ b/bin/configs/java-apache-httpclient.yaml
@@ -1,7 +1,7 @@
generatorName: java
outputDir: samples/client/petstore/java/apache-httpclient
library: apache-httpclient
-inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
artifactId: petstore-apache-httpclient
diff --git a/bin/configs/java-native-async.yaml b/bin/configs/java-native-async.yaml
index eb95d524a29..25fc601fb88 100644
--- a/bin/configs/java-native-async.yaml
+++ b/bin/configs/java-native-async.yaml
@@ -1,7 +1,7 @@
generatorName: java
outputDir: samples/client/petstore/java/native-async
library: native
-inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
artifactId: petstore-native
diff --git a/bin/configs/java-native.yaml b/bin/configs/java-native.yaml
index 14259765250..0ec877a86f4 100644
--- a/bin/configs/java-native.yaml
+++ b/bin/configs/java-native.yaml
@@ -1,7 +1,7 @@
generatorName: java
outputDir: samples/client/petstore/java/native
library: native
-inputSpec: modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+inputSpec: modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing.yaml
templateDir: modules/openapi-generator/src/main/resources/Java
additionalProperties:
artifactId: petstore-native
diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/pom.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/pom.mustache
index 6fcea8fe9fe..343f4334bdc 100644
--- a/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/libraries/apache-httpclient/pom.mustache
@@ -311,6 +311,13 @@
provided
{{/parcelableModel}}
+ {{#openApiNullable}}
+
+ org.openapitools
+ jackson-databind-nullable
+ ${jackson-databind-nullable-version}
+
+ {{/openApiNullable}}
jakarta.annotation
jakarta.annotation-api
@@ -331,6 +338,9 @@
4.5.13
2.13.4
2.13.4.2
+{{#openApiNullable}}
+ 0.2.4
+{{/openApiNullable}}
1.3.5
{{#useBeanValidation}}
2.0.2
diff --git a/samples/client/petstore/java/apache-httpclient/.openapi-generator/FILES b/samples/client/petstore/java/apache-httpclient/.openapi-generator/FILES
index 18764e6e506..46568169f68 100644
--- a/samples/client/petstore/java/apache-httpclient/.openapi-generator/FILES
+++ b/samples/client/petstore/java/apache-httpclient/.openapi-generator/FILES
@@ -5,27 +5,21 @@ README.md
api/openapi.yaml
build.gradle
build.sbt
-docs/AdditionalPropertiesAnyType.md
-docs/AdditionalPropertiesArray.md
-docs/AdditionalPropertiesBoolean.md
docs/AdditionalPropertiesClass.md
-docs/AdditionalPropertiesInteger.md
-docs/AdditionalPropertiesNumber.md
-docs/AdditionalPropertiesObject.md
-docs/AdditionalPropertiesString.md
+docs/AllOfWithSingleRef.md
docs/Animal.md
docs/AnotherFakeApi.md
docs/ArrayOfArrayOfNumberOnly.md
docs/ArrayOfNumberOnly.md
docs/ArrayTest.md
-docs/BigCat.md
-docs/BigCatAllOf.md
docs/Capitalization.md
docs/Cat.md
docs/CatAllOf.md
docs/Category.md
docs/ClassModel.md
docs/Client.md
+docs/DefaultApi.md
+docs/DeprecatedObject.md
docs/Dog.md
docs/DogAllOf.md
docs/EnumArrays.md
@@ -34,8 +28,11 @@ docs/EnumTest.md
docs/FakeApi.md
docs/FakeClassnameTags123Api.md
docs/FileSchemaTestClass.md
+docs/Foo.md
+docs/FooGetDefaultResponse.md
docs/FormatTest.md
docs/HasOnlyReadOnly.md
+docs/HealthCheckResult.md
docs/MapTest.md
docs/MixedPropertiesAndAdditionalPropertiesClass.md
docs/Model200Response.md
@@ -44,21 +41,25 @@ docs/ModelFile.md
docs/ModelList.md
docs/ModelReturn.md
docs/Name.md
+docs/NullableClass.md
docs/NumberOnly.md
+docs/ObjectWithDeprecatedFields.md
docs/Order.md
docs/OuterComposite.md
docs/OuterEnum.md
+docs/OuterEnumDefaultValue.md
+docs/OuterEnumInteger.md
+docs/OuterEnumIntegerDefaultValue.md
+docs/OuterObjectWithEnumProperty.md
docs/Pet.md
docs/PetApi.md
docs/ReadOnlyFirst.md
+docs/SingleRefType.md
docs/SpecialModelName.md
docs/StoreApi.md
docs/Tag.md
-docs/TypeHolderDefault.md
-docs/TypeHolderExample.md
docs/User.md
docs/UserApi.md
-docs/XmlItem.md
git_push.sh
gradle.properties
gradle/wrapper/gradle-wrapper.jar
@@ -78,6 +79,7 @@ src/main/java/org/openapitools/client/ServerConfiguration.java
src/main/java/org/openapitools/client/ServerVariable.java
src/main/java/org/openapitools/client/StringUtil.java
src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+src/main/java/org/openapitools/client/api/DefaultApi.java
src/main/java/org/openapitools/client/api/FakeApi.java
src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
src/main/java/org/openapitools/client/api/PetApi.java
@@ -89,34 +91,30 @@ src/main/java/org/openapitools/client/auth/HttpBasicAuth.java
src/main/java/org/openapitools/client/auth/HttpBearerAuth.java
src/main/java/org/openapitools/client/auth/OAuth.java
src/main/java/org/openapitools/client/auth/OAuthFlow.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesInteger.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesNumber.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesObject.java
-src/main/java/org/openapitools/client/model/AdditionalPropertiesString.java
+src/main/java/org/openapitools/client/model/AllOfWithSingleRef.java
src/main/java/org/openapitools/client/model/Animal.java
src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java
src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java
src/main/java/org/openapitools/client/model/ArrayTest.java
-src/main/java/org/openapitools/client/model/BigCat.java
-src/main/java/org/openapitools/client/model/BigCatAllOf.java
src/main/java/org/openapitools/client/model/Capitalization.java
src/main/java/org/openapitools/client/model/Cat.java
src/main/java/org/openapitools/client/model/CatAllOf.java
src/main/java/org/openapitools/client/model/Category.java
src/main/java/org/openapitools/client/model/ClassModel.java
src/main/java/org/openapitools/client/model/Client.java
+src/main/java/org/openapitools/client/model/DeprecatedObject.java
src/main/java/org/openapitools/client/model/Dog.java
src/main/java/org/openapitools/client/model/DogAllOf.java
src/main/java/org/openapitools/client/model/EnumArrays.java
src/main/java/org/openapitools/client/model/EnumClass.java
src/main/java/org/openapitools/client/model/EnumTest.java
src/main/java/org/openapitools/client/model/FileSchemaTestClass.java
+src/main/java/org/openapitools/client/model/Foo.java
+src/main/java/org/openapitools/client/model/FooGetDefaultResponse.java
src/main/java/org/openapitools/client/model/FormatTest.java
src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java
+src/main/java/org/openapitools/client/model/HealthCheckResult.java
src/main/java/org/openapitools/client/model/MapTest.java
src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java
src/main/java/org/openapitools/client/model/Model200Response.java
@@ -125,15 +123,19 @@ src/main/java/org/openapitools/client/model/ModelFile.java
src/main/java/org/openapitools/client/model/ModelList.java
src/main/java/org/openapitools/client/model/ModelReturn.java
src/main/java/org/openapitools/client/model/Name.java
+src/main/java/org/openapitools/client/model/NullableClass.java
src/main/java/org/openapitools/client/model/NumberOnly.java
+src/main/java/org/openapitools/client/model/ObjectWithDeprecatedFields.java
src/main/java/org/openapitools/client/model/Order.java
src/main/java/org/openapitools/client/model/OuterComposite.java
src/main/java/org/openapitools/client/model/OuterEnum.java
+src/main/java/org/openapitools/client/model/OuterEnumDefaultValue.java
+src/main/java/org/openapitools/client/model/OuterEnumInteger.java
+src/main/java/org/openapitools/client/model/OuterEnumIntegerDefaultValue.java
+src/main/java/org/openapitools/client/model/OuterObjectWithEnumProperty.java
src/main/java/org/openapitools/client/model/Pet.java
src/main/java/org/openapitools/client/model/ReadOnlyFirst.java
+src/main/java/org/openapitools/client/model/SingleRefType.java
src/main/java/org/openapitools/client/model/SpecialModelName.java
src/main/java/org/openapitools/client/model/Tag.java
-src/main/java/org/openapitools/client/model/TypeHolderDefault.java
-src/main/java/org/openapitools/client/model/TypeHolderExample.java
src/main/java/org/openapitools/client/model/User.java
-src/main/java/org/openapitools/client/model/XmlItem.java
diff --git a/samples/client/petstore/java/apache-httpclient/README.md b/samples/client/petstore/java/apache-httpclient/README.md
index ca5ccc9a782..cc099907a84 100644
--- a/samples/client/petstore/java/apache-httpclient/README.md
+++ b/samples/client/petstore/java/apache-httpclient/README.md
@@ -84,9 +84,9 @@ public class AnotherFakeApiExample {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
- Client body = new Client(); // Client | client model
+ Client client = new Client(); // Client | client model
try {
- Client result = apiInstance.call123testSpecialTags(body);
+ Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
@@ -107,15 +107,19 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*AnotherFakeApi* | [**call123testSpecialTags**](docs/AnotherFakeApi.md#call123testSpecialTags) | **PATCH** /another-fake/dummy | To test special tags
-*FakeApi* | [**createXmlItem**](docs/FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem
+*DefaultApi* | [**fooGet**](docs/DefaultApi.md#fooGet) | **GET** /foo |
+*FakeApi* | [**fakeHealthGet**](docs/FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint
+*FakeApi* | [**fakeHttpSignatureTest**](docs/FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication
*FakeApi* | [**fakeOuterBooleanSerialize**](docs/FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean |
*FakeApi* | [**fakeOuterCompositeSerialize**](docs/FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite |
*FakeApi* | [**fakeOuterNumberSerialize**](docs/FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number |
*FakeApi* | [**fakeOuterStringSerialize**](docs/FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string |
+*FakeApi* | [**fakePropertyEnumIntegerSerialize**](docs/FakeApi.md#fakePropertyEnumIntegerSerialize) | **POST** /fake/property/enum-int |
+*FakeApi* | [**testBodyWithBinary**](docs/FakeApi.md#testBodyWithBinary) | **PUT** /fake/body-with-binary |
*FakeApi* | [**testBodyWithFileSchema**](docs/FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema |
*FakeApi* | [**testBodyWithQueryParams**](docs/FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params |
*FakeApi* | [**testClientModel**](docs/FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model
-*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+*FakeApi* | [**testEndpointParameters**](docs/FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
*FakeApi* | [**testEnumParameters**](docs/FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters
*FakeApi* | [**testGroupParameters**](docs/FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional)
*FakeApi* | [**testInlineAdditionalProperties**](docs/FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties
@@ -147,34 +151,30 @@ Class | Method | HTTP request | Description
## Documentation for Models
- - [AdditionalPropertiesAnyType](docs/AdditionalPropertiesAnyType.md)
- - [AdditionalPropertiesArray](docs/AdditionalPropertiesArray.md)
- - [AdditionalPropertiesBoolean](docs/AdditionalPropertiesBoolean.md)
- [AdditionalPropertiesClass](docs/AdditionalPropertiesClass.md)
- - [AdditionalPropertiesInteger](docs/AdditionalPropertiesInteger.md)
- - [AdditionalPropertiesNumber](docs/AdditionalPropertiesNumber.md)
- - [AdditionalPropertiesObject](docs/AdditionalPropertiesObject.md)
- - [AdditionalPropertiesString](docs/AdditionalPropertiesString.md)
+ - [AllOfWithSingleRef](docs/AllOfWithSingleRef.md)
- [Animal](docs/Animal.md)
- [ArrayOfArrayOfNumberOnly](docs/ArrayOfArrayOfNumberOnly.md)
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
- [ArrayTest](docs/ArrayTest.md)
- - [BigCat](docs/BigCat.md)
- - [BigCatAllOf](docs/BigCatAllOf.md)
- [Capitalization](docs/Capitalization.md)
- [Cat](docs/Cat.md)
- [CatAllOf](docs/CatAllOf.md)
- [Category](docs/Category.md)
- [ClassModel](docs/ClassModel.md)
- [Client](docs/Client.md)
+ - [DeprecatedObject](docs/DeprecatedObject.md)
- [Dog](docs/Dog.md)
- [DogAllOf](docs/DogAllOf.md)
- [EnumArrays](docs/EnumArrays.md)
- [EnumClass](docs/EnumClass.md)
- [EnumTest](docs/EnumTest.md)
- [FileSchemaTestClass](docs/FileSchemaTestClass.md)
+ - [Foo](docs/Foo.md)
+ - [FooGetDefaultResponse](docs/FooGetDefaultResponse.md)
- [FormatTest](docs/FormatTest.md)
- [HasOnlyReadOnly](docs/HasOnlyReadOnly.md)
+ - [HealthCheckResult](docs/HealthCheckResult.md)
- [MapTest](docs/MapTest.md)
- [MixedPropertiesAndAdditionalPropertiesClass](docs/MixedPropertiesAndAdditionalPropertiesClass.md)
- [Model200Response](docs/Model200Response.md)
@@ -183,18 +183,22 @@ Class | Method | HTTP request | Description
- [ModelList](docs/ModelList.md)
- [ModelReturn](docs/ModelReturn.md)
- [Name](docs/Name.md)
+ - [NullableClass](docs/NullableClass.md)
- [NumberOnly](docs/NumberOnly.md)
+ - [ObjectWithDeprecatedFields](docs/ObjectWithDeprecatedFields.md)
- [Order](docs/Order.md)
- [OuterComposite](docs/OuterComposite.md)
- [OuterEnum](docs/OuterEnum.md)
+ - [OuterEnumDefaultValue](docs/OuterEnumDefaultValue.md)
+ - [OuterEnumInteger](docs/OuterEnumInteger.md)
+ - [OuterEnumIntegerDefaultValue](docs/OuterEnumIntegerDefaultValue.md)
+ - [OuterObjectWithEnumProperty](docs/OuterObjectWithEnumProperty.md)
- [Pet](docs/Pet.md)
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
+ - [SingleRefType](docs/SingleRefType.md)
- [SpecialModelName](docs/SpecialModelName.md)
- [Tag](docs/Tag.md)
- - [TypeHolderDefault](docs/TypeHolderDefault.md)
- - [TypeHolderExample](docs/TypeHolderExample.md)
- [User](docs/User.md)
- - [XmlItem](docs/XmlItem.md)
## Documentation for Authorization
@@ -214,9 +218,19 @@ Authentication schemes defined for the API:
- **API key parameter name**: api_key_query
- **Location**: URL query string
+### bearer_test
+
+
+- **Type**: HTTP basic authentication
+
### http_basic_test
+- **Type**: HTTP basic authentication
+
+### http_signature_test
+
+
- **Type**: HTTP basic authentication
### petstore_auth
diff --git a/samples/client/petstore/java/apache-httpclient/api/openapi.yaml b/samples/client/petstore/java/apache-httpclient/api/openapi.yaml
index e7e17402f6f..f9cbedf1e42 100644
--- a/samples/client/petstore/java/apache-httpclient/api/openapi.yaml
+++ b/samples/client/petstore/java/apache-httpclient/api/openapi.yaml
@@ -1,4 +1,4 @@
-openapi: 3.0.1
+openapi: 3.0.0
info:
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:\
@@ -9,7 +9,30 @@ info:
title: OpenAPI Petstore
version: 1.0.0
servers:
-- url: http://petstore.swagger.io:80/v2
+- description: petstore server
+ url: "http://{server}.swagger.io:{port}/v2"
+ variables:
+ server:
+ default: petstore
+ enum:
+ - petstore
+ - qa-petstore
+ - dev-petstore
+ port:
+ default: "80"
+ enum:
+ - "80"
+ - "8080"
+- description: The local server
+ url: "https://localhost:8080/{version}"
+ variables:
+ version:
+ default: v2
+ enum:
+ - v1
+ - v2
+- description: The local server without variables
+ url: https://127.0.0.1/no_varaible
tags:
- description: Everything about your Pets
name: pet
@@ -18,25 +41,26 @@ tags:
- description: Operations about user
name: user
paths:
+ /foo:
+ get:
+ responses:
+ default:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/_foo_get_default_response'
+ description: response
+ x-accepts: application/json
/pet:
post:
+ description: ""
operationId: addPet
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Pet'
- application/xml:
- schema:
- $ref: '#/components/schemas/Pet'
- description: Pet object that needs to be added to the store
- required: true
+ $ref: '#/components/requestBodies/Pet'
responses:
"200":
- content: {}
- description: successful operation
+ description: Successful operation
"405":
- content: {}
description: Invalid input
security:
- petstore_auth:
@@ -45,33 +69,21 @@ paths:
summary: Add a new pet to the store
tags:
- pet
- x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
put:
+ description: ""
operationId: updatePet
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Pet'
- application/xml:
- schema:
- $ref: '#/components/schemas/Pet'
- description: Pet object that needs to be added to the store
- required: true
+ $ref: '#/components/requestBodies/Pet'
responses:
"200":
- content: {}
- description: successful operation
+ description: Successful operation
"400":
- content: {}
description: Invalid ID supplied
"404":
- content: {}
description: Pet not found
"405":
- content: {}
description: Validation exception
security:
- petstore_auth:
@@ -80,15 +92,34 @@ paths:
summary: Update an existing pet
tags:
- pet
- x-codegen-request-body-name: body
+ x-webclient-blocking: true
x-content-type: application/json
x-accepts: application/json
+ servers:
+ - url: http://petstore.swagger.io/v2
+ - url: http://path-server-test.petstore.local/v2
+ - description: test server with variables
+ url: "http://{server}.swagger.io:{port}/v2"
+ variables:
+ server:
+ default: petstore
+ description: target server
+ enum:
+ - petstore
+ - qa-petstore
+ - dev-petstore
+ port:
+ default: "80"
+ enum:
+ - "80"
+ - "8080"
/pet/findByStatus:
get:
description: Multiple status values can be provided with comma separated strings
operationId: findPetsByStatus
parameters:
- - description: Status values that need to be considered for filter
+ - deprecated: true
+ description: Status values that need to be considered for filter
explode: false
in: query
name: status
@@ -118,7 +149,6 @@ paths:
type: array
description: successful operation
"400":
- content: {}
description: Invalid status value
security:
- petstore_auth:
@@ -127,6 +157,7 @@ paths:
summary: Finds Pets by status
tags:
- pet
+ x-webclient-blocking: true
x-accepts: application/json
/pet/findByTags:
get:
@@ -163,7 +194,6 @@ paths:
uniqueItems: true
description: successful operation
"400":
- content: {}
description: Invalid tag value
security:
- petstore_auth:
@@ -172,28 +202,33 @@ paths:
summary: Finds Pets by tags
tags:
- pet
+ x-webclient-blocking: true
x-accepts: application/json
/pet/{petId}:
delete:
+ description: ""
operationId: deletePet
parameters:
- - in: header
+ - explode: false
+ in: header
name: api_key
+ required: false
schema:
type: string
+ style: simple
- description: Pet id to delete
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
responses:
"200":
- content: {}
- description: successful operation
+ description: Successful operation
"400":
- content: {}
description: Invalid pet value
security:
- petstore_auth:
@@ -208,12 +243,14 @@ paths:
operationId: getPetById
parameters:
- description: ID of pet to return
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
responses:
"200":
content:
@@ -225,35 +262,38 @@ paths:
$ref: '#/components/schemas/Pet'
description: successful operation
"400":
- content: {}
description: Invalid ID supplied
"404":
- content: {}
description: Pet not found
security:
- api_key: []
summary: Find pet by ID
tags:
- pet
+ x-webclient-blocking: true
x-accepts: application/json
post:
+ description: ""
operationId: updatePetWithForm
parameters:
- description: ID of pet that needs to be updated
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/updatePetWithForm_request'
responses:
+ "200":
+ description: Successful operation
"405":
- content: {}
description: Invalid input
security:
- petstore_auth:
@@ -266,15 +306,18 @@ paths:
x-accepts: application/json
/pet/{petId}/uploadImage:
post:
+ description: ""
operationId: uploadFile
parameters:
- description: ID of pet to update
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
requestBody:
content:
multipart/form-data:
@@ -318,10 +361,11 @@ paths:
x-accepts: application/json
/store/order:
post:
+ description: ""
operationId: placeOrder
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/Order'
description: order placed for purchasing the pet
@@ -337,13 +381,11 @@ paths:
$ref: '#/components/schemas/Order'
description: successful operation
"400":
- content: {}
description: Invalid Order
summary: Place an order for a pet
tags:
- store
- x-codegen-request-body-name: body
- x-content-type: '*/*'
+ x-content-type: application/json
x-accepts: application/json
/store/order/{order_id}:
delete:
@@ -352,17 +394,17 @@ paths:
operationId: deleteOrder
parameters:
- description: ID of the order that needs to be deleted
+ explode: false
in: path
name: order_id
required: true
schema:
type: string
+ style: simple
responses:
"400":
- content: {}
description: Invalid ID supplied
"404":
- content: {}
description: Order not found
summary: Delete purchase order by ID
tags:
@@ -374,6 +416,7 @@ paths:
operationId: getOrderById
parameters:
- description: ID of pet that needs to be fetched
+ explode: false
in: path
name: order_id
required: true
@@ -382,6 +425,7 @@ paths:
maximum: 5
minimum: 1
type: integer
+ style: simple
responses:
"200":
content:
@@ -393,10 +437,8 @@ paths:
$ref: '#/components/schemas/Order'
description: successful operation
"400":
- content: {}
description: Invalid ID supplied
"404":
- content: {}
description: Order not found
summary: Find purchase order by ID
tags:
@@ -408,81 +450,68 @@ paths:
operationId: createUser
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/User'
description: Created user object
required: true
responses:
default:
- content: {}
description: successful operation
summary: Create user
tags:
- user
- x-codegen-request-body-name: body
- x-content-type: '*/*'
+ x-content-type: application/json
x-accepts: application/json
/user/createWithArray:
post:
+ description: ""
operationId: createUsersWithArrayInput
requestBody:
- content:
- '*/*':
- schema:
- items:
- $ref: '#/components/schemas/User'
- type: array
- description: List of user object
- required: true
+ $ref: '#/components/requestBodies/UserArray'
responses:
default:
- content: {}
description: successful operation
summary: Creates list of users with given input array
tags:
- user
- x-codegen-request-body-name: body
- x-content-type: '*/*'
+ x-content-type: application/json
x-accepts: application/json
/user/createWithList:
post:
+ description: ""
operationId: createUsersWithListInput
requestBody:
- content:
- '*/*':
- schema:
- items:
- $ref: '#/components/schemas/User'
- type: array
- description: List of user object
- required: true
+ $ref: '#/components/requestBodies/UserArray'
responses:
default:
- content: {}
description: successful operation
summary: Creates list of users with given input array
tags:
- user
- x-codegen-request-body-name: body
- x-content-type: '*/*'
+ x-content-type: application/json
x-accepts: application/json
/user/login:
get:
+ description: ""
operationId: loginUser
parameters:
- description: The user name for login
+ explode: true
in: query
name: username
required: true
schema:
type: string
+ style: form
- description: The password for login in clear text
+ explode: true
in: query
name: password
required: true
schema:
type: string
+ style: form
responses:
"200":
content:
@@ -496,16 +525,19 @@ paths:
headers:
X-Rate-Limit:
description: calls per hour allowed by the user
+ explode: false
schema:
format: int32
type: integer
+ style: simple
X-Expires-After:
description: date in UTC when token expires
+ explode: false
schema:
format: date-time
type: string
+ style: simple
"400":
- content: {}
description: Invalid username/password supplied
summary: Logs user into the system
tags:
@@ -513,10 +545,10 @@ paths:
x-accepts: application/json
/user/logout:
get:
+ description: ""
operationId: logoutUser
responses:
default:
- content: {}
description: successful operation
summary: Logs out current logged in user session
tags:
@@ -528,31 +560,34 @@ paths:
operationId: deleteUser
parameters:
- description: The name that needs to be deleted
+ explode: false
in: path
name: username
required: true
schema:
type: string
+ style: simple
responses:
"400":
- content: {}
description: Invalid username supplied
"404":
- content: {}
description: User not found
summary: Delete user
tags:
- user
x-accepts: application/json
get:
+ description: ""
operationId: getUserByName
parameters:
- description: The name that needs to be fetched. Use user1 for testing.
+ explode: false
in: path
name: username
required: true
schema:
type: string
+ style: simple
responses:
"200":
content:
@@ -564,10 +599,8 @@ paths:
$ref: '#/components/schemas/User'
description: successful operation
"400":
- content: {}
description: Invalid username supplied
"404":
- content: {}
description: User not found
summary: Get user by user name
tags:
@@ -578,42 +611,36 @@ paths:
operationId: updateUser
parameters:
- description: name that need to be deleted
+ explode: false
in: path
name: username
required: true
schema:
type: string
+ style: simple
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/User'
description: Updated user object
required: true
responses:
"400":
- content: {}
description: Invalid user supplied
"404":
- content: {}
description: User not found
summary: Updated user
tags:
- user
- x-codegen-request-body-name: body
- x-content-type: '*/*'
+ x-content-type: application/json
x-accepts: application/json
/fake_classname_test:
patch:
description: To test class name in snake case
operationId: testClassname
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: client model
- required: true
+ $ref: '#/components/requestBodies/Client'
responses:
"200":
content:
@@ -626,7 +653,6 @@ paths:
summary: To test class name in snake case
tags:
- fake_classname_tags 123#$%^
- x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
/fake:
@@ -635,44 +661,60 @@ paths:
operationId: testGroupParameters
parameters:
- description: Required String in group parameters
+ explode: true
in: query
name: required_string_group
required: true
schema:
type: integer
+ style: form
- description: Required Boolean in group parameters
+ explode: false
in: header
name: required_boolean_group
required: true
schema:
type: boolean
+ style: simple
- description: Required Integer in group parameters
+ explode: true
in: query
name: required_int64_group
required: true
schema:
format: int64
type: integer
+ style: form
- description: String in group parameters
+ explode: true
in: query
name: string_group
+ required: false
schema:
type: integer
+ style: form
- description: Boolean in group parameters
+ explode: false
in: header
name: boolean_group
+ required: false
schema:
type: boolean
+ style: simple
- description: Integer in group parameters
+ explode: true
in: query
name: int64_group
+ required: false
schema:
format: int64
type: integer
+ style: form
responses:
"400":
- content: {}
description: Something wrong
+ security:
+ - bearer_test: []
summary: Fake endpoint to test group parameters (optional)
tags:
- fake
@@ -686,6 +728,7 @@ paths:
explode: false
in: header
name: enum_header_string_array
+ required: false
schema:
items:
default: $
@@ -696,8 +739,10 @@ paths:
type: array
style: simple
- description: Header parameter enum test (string)
+ explode: false
in: header
name: enum_header_string
+ required: false
schema:
default: -efg
enum:
@@ -705,10 +750,12 @@ paths:
- -efg
- (xyz)
type: string
+ style: simple
- description: Query parameter enum test (string array)
- explode: false
+ explode: true
in: query
name: enum_query_string_array
+ required: false
schema:
items:
default: $
@@ -719,8 +766,10 @@ paths:
type: array
style: form
- description: Query parameter enum test (string)
+ explode: true
in: query
name: enum_query_string
+ required: false
schema:
default: -efg
enum:
@@ -728,24 +777,40 @@ paths:
- -efg
- (xyz)
type: string
+ style: form
- description: Query parameter enum test (double)
+ explode: true
in: query
name: enum_query_integer
+ required: false
schema:
enum:
- 1
- -2
format: int32
type: integer
+ style: form
- description: Query parameter enum test (double)
+ explode: true
in: query
name: enum_query_double
+ required: false
schema:
enum:
- 1.1
- -1.2
format: double
type: number
+ style: form
+ - explode: true
+ in: query
+ name: enum_query_model_array
+ required: false
+ schema:
+ items:
+ $ref: '#/components/schemas/EnumClass'
+ type: array
+ style: form
requestBody:
content:
application/x-www-form-urlencoded:
@@ -753,10 +818,8 @@ paths:
$ref: '#/components/schemas/testEnumParameters_request'
responses:
"400":
- content: {}
description: Invalid request
"404":
- content: {}
description: Not found
summary: To test enum parameters
tags:
@@ -767,12 +830,7 @@ paths:
description: To test "client" model
operationId: testClientModel
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: client model
- required: true
+ $ref: '#/components/requestBodies/Client'
responses:
"200":
content:
@@ -783,36 +841,32 @@ paths:
summary: To test "client" model
tags:
- fake
- x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
post:
- description: |-
+ description: |
Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
+ 假端點
+ 偽のエンドポイント
+ 가짜 엔드 포인트
operationId: testEndpointParameters
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/testEndpointParameters_request'
- required: true
responses:
"400":
- content: {}
description: Invalid username supplied
"404":
- content: {}
description: User not found
security:
- http_basic_test: []
- summary: |-
+ summary: |
Fake endpoint for testing various parameters
- 假端點
- 偽のエンドポイント
- 가짜 엔드 포인트
+ 假端點
+ 偽のエンドポイント
+ 가짜 엔드 포인트
tags:
- fake
x-content-type: application/x-www-form-urlencoded
@@ -823,11 +877,10 @@ paths:
operationId: fakeOuterNumberSerialize
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/OuterNumber'
description: Input number as post body
- required: false
responses:
"200":
content:
@@ -837,8 +890,29 @@ paths:
description: Output number
tags:
- fake
- x-codegen-request-body-name: body
- x-content-type: '*/*'
+ x-content-type: application/json
+ x-accepts: '*/*'
+ /fake/property/enum-int:
+ post:
+ description: Test serialization of enum (int) properties with examples
+ operationId: fakePropertyEnumIntegerSerialize
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/OuterObjectWithEnumProperty'
+ description: Input enum (int) as post body
+ required: true
+ responses:
+ "200":
+ content:
+ '*/*':
+ schema:
+ $ref: '#/components/schemas/OuterObjectWithEnumProperty'
+ description: Output enum (int)
+ tags:
+ - fake
+ x-content-type: application/json
x-accepts: '*/*'
/fake/outer/string:
post:
@@ -846,11 +920,10 @@ paths:
operationId: fakeOuterStringSerialize
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/OuterString'
description: Input string as post body
- required: false
responses:
"200":
content:
@@ -860,8 +933,7 @@ paths:
description: Output string
tags:
- fake
- x-codegen-request-body-name: body
- x-content-type: '*/*'
+ x-content-type: application/json
x-accepts: '*/*'
/fake/outer/boolean:
post:
@@ -869,11 +941,10 @@ paths:
operationId: fakeOuterBooleanSerialize
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/OuterBoolean'
description: Input boolean as post body
- required: false
responses:
"200":
content:
@@ -883,8 +954,7 @@ paths:
description: Output boolean
tags:
- fake
- x-codegen-request-body-name: body
- x-content-type: '*/*'
+ x-content-type: application/json
x-accepts: '*/*'
/fake/outer/composite:
post:
@@ -892,11 +962,10 @@ paths:
operationId: fakeOuterCompositeSerialize
requestBody:
content:
- '*/*':
+ application/json:
schema:
$ref: '#/components/schemas/OuterComposite'
description: Input composite as post body
- required: false
responses:
"200":
content:
@@ -906,21 +975,19 @@ paths:
description: Output composite
tags:
- fake
- x-codegen-request-body-name: body
- x-content-type: '*/*'
+ x-content-type: application/json
x-accepts: '*/*'
/fake/jsonFormData:
get:
+ description: ""
operationId: testJsonFormData
requestBody:
content:
application/x-www-form-urlencoded:
schema:
$ref: '#/components/schemas/testJsonFormData_request'
- required: true
responses:
"200":
- content: {}
description: successful operation
summary: test json serialization of form data
tags:
@@ -929,6 +996,7 @@ paths:
x-accepts: application/json
/fake/inline-additionalProperties:
post:
+ description: ""
operationId: testInlineAdditionalProperties
requestBody:
content:
@@ -941,23 +1009,23 @@ paths:
required: true
responses:
"200":
- content: {}
description: successful operation
summary: test inline additionalProperties
tags:
- fake
- x-codegen-request-body-name: param
x-content-type: application/json
x-accepts: application/json
/fake/body-with-query-params:
put:
operationId: testBodyWithQueryParams
parameters:
- - in: query
+ - explode: true
+ in: query
name: query
required: true
schema:
type: string
+ style: form
requestBody:
content:
application/json:
@@ -966,60 +1034,17 @@ paths:
required: true
responses:
"200":
- content: {}
description: Success
tags:
- fake
- x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
- /fake/create_xml_item:
- post:
- description: this route creates an XmlItem
- operationId: createXmlItem
- requestBody:
- content:
- application/xml:
- schema:
- $ref: '#/components/schemas/XmlItem'
- application/xml; charset=utf-8:
- schema:
- $ref: '#/components/schemas/XmlItem'
- application/xml; charset=utf-16:
- schema:
- $ref: '#/components/schemas/XmlItem'
- text/xml:
- schema:
- $ref: '#/components/schemas/XmlItem'
- text/xml; charset=utf-8:
- schema:
- $ref: '#/components/schemas/XmlItem'
- text/xml; charset=utf-16:
- schema:
- $ref: '#/components/schemas/XmlItem'
- description: XmlItem Body
- required: true
- responses:
- "200":
- content: {}
- description: successful operation
- summary: creates an XmlItem
- tags:
- - fake
- x-codegen-request-body-name: XmlItem
- x-content-type: application/xml
- x-accepts: application/json
/another-fake/dummy:
patch:
description: To test special tags and operation ID starting with number
operationId: 123_test_@#$%_special_tags
requestBody:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Client'
- description: client model
- required: true
+ $ref: '#/components/requestBodies/Client'
responses:
"200":
content:
@@ -1030,12 +1055,11 @@ paths:
summary: To test special tags
tags:
- $another-fake?
- x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
/fake/body-with-file-schema:
put:
- description: "For this test, the body for this request much reference a schema\
+ description: "For this test, the body for this request must reference a schema\
\ named `File`."
operationId: testBodyWithFileSchema
requestBody:
@@ -1046,13 +1070,31 @@ paths:
required: true
responses:
"200":
- content: {}
description: Success
tags:
- fake
- x-codegen-request-body-name: body
x-content-type: application/json
x-accepts: application/json
+ /fake/body-with-binary:
+ put:
+ description: "For this test, the body has to be a binary file."
+ operationId: testBodyWithBinary
+ requestBody:
+ content:
+ image/png:
+ schema:
+ format: binary
+ nullable: true
+ type: string
+ description: image to upload
+ required: true
+ responses:
+ "200":
+ description: Success
+ tags:
+ - fake
+ x-content-type: image/png
+ x-accepts: application/json
/fake/test-query-parameters:
put:
description: To test the collection format in query parameters
@@ -1066,15 +1108,18 @@ paths:
items:
type: string
type: array
- style: form
- - in: query
+ style: pipeDelimited
+ - explode: false
+ in: query
name: ioutil
required: true
schema:
items:
type: string
type: array
- - in: query
+ style: form
+ - explode: false
+ in: query
name: http
required: true
schema:
@@ -1100,30 +1145,49 @@ paths:
type: string
type: array
style: form
+ - explode: true
+ in: query
+ name: language
+ required: false
+ schema:
+ additionalProperties:
+ format: string
+ type: string
+ type: object
+ style: form
+ - allowEmptyValue: true
+ explode: true
+ in: query
+ name: allowEmpty
+ required: true
+ schema:
+ type: string
+ style: form
responses:
"200":
- content: {}
description: Success
tags:
- fake
x-accepts: application/json
/fake/{petId}/uploadImageWithRequiredFile:
post:
+ description: ""
operationId: uploadFileWithRequiredFile
parameters:
- description: ID of pet to update
+ explode: false
in: path
name: petId
required: true
schema:
format: int64
type: integer
+ style: simple
requestBody:
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/uploadFileWithRequiredFile_request'
- required: true
responses:
"200":
content:
@@ -1140,8 +1204,91 @@ paths:
- pet
x-content-type: multipart/form-data
x-accepts: application/json
+ /fake/health:
+ get:
+ responses:
+ "200":
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/HealthCheckResult'
+ description: The instance started successfully
+ summary: Health check endpoint
+ tags:
+ - fake
+ x-accepts: application/json
+ /fake/http-signature-test:
+ get:
+ operationId: fake-http-signature-test
+ parameters:
+ - description: query parameter
+ explode: true
+ in: query
+ name: query_1
+ required: false
+ schema:
+ type: string
+ style: form
+ - description: header parameter
+ explode: false
+ in: header
+ name: header_1
+ required: false
+ schema:
+ type: string
+ style: simple
+ requestBody:
+ $ref: '#/components/requestBodies/Pet'
+ responses:
+ "200":
+ description: The instance started successfully
+ security:
+ - http_signature_test: []
+ summary: test http signature authentication
+ tags:
+ - fake
+ x-content-type: application/json
+ x-accepts: application/json
components:
+ requestBodies:
+ UserArray:
+ content:
+ application/json:
+ schema:
+ items:
+ $ref: '#/components/schemas/User'
+ type: array
+ description: List of user object
+ required: true
+ Client:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Client'
+ description: client model
+ required: true
+ Pet:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Pet'
+ application/xml:
+ schema:
+ $ref: '#/components/schemas/Pet'
+ description: Pet object that needs to be added to the store
+ required: true
schemas:
+ Foo:
+ example:
+ bar: bar
+ properties:
+ bar:
+ default: bar
+ type: string
+ type: object
+ Bar:
+ default: bar
+ type: string
Order:
example:
petId: 6
@@ -1307,21 +1454,12 @@ components:
message:
type: string
type: object
- $special[model.name]:
- properties:
- $special[property.name]:
- format: int64
- type: integer
- type: object
- xml:
- name: "$special[model.name]"
Return:
description: Model for testing reserved words
properties:
return:
format: int32
type: integer
- type: object
xml:
name: Return
Name:
@@ -1341,7 +1479,6 @@ components:
type: integer
required:
- name
- type: object
xml:
name: Name
"200_response":
@@ -1352,7 +1489,6 @@ components:
type: integer
class:
type: string
- type: object
xml:
name: Name
ClassModel:
@@ -1360,7 +1496,6 @@ components:
properties:
_class:
type: string
- type: object
Dog:
allOf:
- $ref: '#/components/schemas/Animal'
@@ -1369,10 +1504,6 @@ components:
allOf:
- $ref: '#/components/schemas/Animal'
- $ref: '#/components/schemas/Cat_allOf'
- BigCat:
- allOf:
- - $ref: '#/components/schemas/Cat'
- - $ref: '#/components/schemas/BigCat_allOf'
Animal:
discriminator:
propertyName: className
@@ -1417,12 +1548,14 @@ components:
maximum: 123.4
minimum: 67.8
type: number
+ decimal:
+ format: number
+ type: string
string:
pattern: "/[a-z]/i"
type: string
byte:
format: byte
- pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$"
type: string
binary:
format: binary
@@ -1442,8 +1575,14 @@ components:
maxLength: 64
minLength: 10
type: string
- BigDecimal:
- format: number
+ pattern_with_digits:
+ description: A string that is a 10 digit number. Can have leading zeros.
+ pattern: "^\\d{10}$"
+ type: string
+ pattern_with_digits_and_delimiter:
+ description: A string starting with 'image_' (case insensitive) and one
+ to three digits following i.e. Image_01.
+ pattern: "/^image_\\d{1,3}$/i"
type: string
required:
- byte
@@ -1486,117 +1625,27 @@ components:
type: number
outerEnum:
$ref: '#/components/schemas/OuterEnum'
+ outerEnumInteger:
+ $ref: '#/components/schemas/OuterEnumInteger'
+ outerEnumDefaultValue:
+ $ref: '#/components/schemas/OuterEnumDefaultValue'
+ outerEnumIntegerDefaultValue:
+ $ref: '#/components/schemas/OuterEnumIntegerDefaultValue'
required:
- enum_string_required
type: object
AdditionalPropertiesClass:
properties:
- map_string:
+ map_property:
additionalProperties:
type: string
type: object
- map_number:
- additionalProperties:
- type: number
- type: object
- map_integer:
- additionalProperties:
- type: integer
- type: object
- map_boolean:
- additionalProperties:
- type: boolean
- type: object
- map_array_integer:
- additionalProperties:
- items:
- type: integer
- type: array
- type: object
- map_array_anytype:
- additionalProperties:
- items:
- properties: {}
- type: object
- type: array
- type: object
- map_map_string:
+ map_of_map_property:
additionalProperties:
additionalProperties:
type: string
type: object
type: object
- map_map_anytype:
- additionalProperties:
- additionalProperties:
- properties: {}
- type: object
- type: object
- type: object
- anytype_1:
- properties: {}
- type: object
- anytype_2:
- type: object
- anytype_3:
- properties: {}
- type: object
- type: object
- AdditionalPropertiesString:
- additionalProperties:
- type: string
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesInteger:
- additionalProperties:
- type: integer
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesNumber:
- additionalProperties:
- type: number
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesBoolean:
- additionalProperties:
- type: boolean
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesArray:
- additionalProperties:
- items:
- properties: {}
- type: object
- type: array
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesObject:
- additionalProperties:
- additionalProperties:
- properties: {}
- type: object
- type: object
- properties:
- name:
- type: string
- type: object
- AdditionalPropertiesAnyType:
- additionalProperties:
- properties: {}
- type: object
- properties:
- name:
- type: string
type: object
MixedPropertiesAndAdditionalPropertiesClass:
properties:
@@ -1686,6 +1735,8 @@ components:
array_of_string:
items:
type: string
+ maxItems: 3
+ minItems: 0
type: array
array_array_of_integer:
items:
@@ -1742,7 +1793,29 @@ components:
- placed
- approved
- delivered
+ nullable: true
type: string
+ OuterEnumInteger:
+ enum:
+ - 0
+ - 1
+ - 2
+ example: 2
+ type: integer
+ OuterEnumDefaultValue:
+ default: placed
+ enum:
+ - placed
+ - approved
+ - delivered
+ type: string
+ OuterEnumIntegerDefaultValue:
+ default: 0
+ enum:
+ - 0
+ - 1
+ - 2
+ type: integer
OuterComposite:
example:
my_string: my_string
@@ -1792,243 +1865,133 @@ components:
description: Test capitalization
type: string
type: object
- TypeHolderDefault:
+ _special_model.name_:
properties:
- string_item:
- default: what
- type: string
- number_item:
- type: number
- integer_item:
+ $special[property.name]:
+ format: int64
type: integer
- bool_item:
- default: true
- type: boolean
- array_item:
- items:
- type: integer
- type: array
- required:
- - array_item
- - bool_item
- - integer_item
- - number_item
- - string_item
- type: object
- TypeHolderExample:
- properties:
- string_item:
- example: what
- type: string
- number_item:
- example: 1.234
- type: number
- float_item:
- example: 1.234
- format: float
- type: number
- integer_item:
- example: -2
- type: integer
- bool_item:
- example: true
- type: boolean
- array_item:
- example:
- - 0
- - 1
- - 2
- - 3
- items:
- type: integer
- type: array
- required:
- - array_item
- - bool_item
- - float_item
- - integer_item
- - number_item
- - string_item
- type: object
- XmlItem:
- properties:
- attribute_string:
- example: string
- type: string
- xml:
- attribute: true
- attribute_number:
- example: 1.234
- type: number
- xml:
- attribute: true
- attribute_integer:
- example: -2
- type: integer
- xml:
- attribute: true
- attribute_boolean:
- example: true
- type: boolean
- xml:
- attribute: true
- wrapped_array:
- items:
- type: integer
- type: array
- xml:
- wrapped: true
- name_string:
- example: string
- type: string
- xml:
- name: xml_name_string
- name_number:
- example: 1.234
- type: number
- xml:
- name: xml_name_number
- name_integer:
- example: -2
- type: integer
- xml:
- name: xml_name_integer
- name_boolean:
- example: true
- type: boolean
- xml:
- name: xml_name_boolean
- name_array:
- items:
- type: integer
- xml:
- name: xml_name_array_item
- type: array
- name_wrapped_array:
- items:
- type: integer
- xml:
- name: xml_name_wrapped_array_item
- type: array
- xml:
- name: xml_name_wrapped_array
- wrapped: true
- prefix_string:
- example: string
- type: string
- xml:
- prefix: ab
- prefix_number:
- example: 1.234
- type: number
- xml:
- prefix: cd
- prefix_integer:
- example: -2
- type: integer
- xml:
- prefix: ef
- prefix_boolean:
- example: true
- type: boolean
- xml:
- prefix: gh
- prefix_array:
- items:
- type: integer
- xml:
- prefix: ij
- type: array
- prefix_wrapped_array:
- items:
- type: integer
- xml:
- prefix: mn
- type: array
- xml:
- prefix: kl
- wrapped: true
- namespace_string:
- example: string
- type: string
- xml:
- namespace: http://a.com/schema
- namespace_number:
- example: 1.234
- type: number
- xml:
- namespace: http://b.com/schema
- namespace_integer:
- example: -2
- type: integer
- xml:
- namespace: http://c.com/schema
- namespace_boolean:
- example: true
- type: boolean
- xml:
- namespace: http://d.com/schema
- namespace_array:
- items:
- type: integer
- xml:
- namespace: http://e.com/schema
- type: array
- namespace_wrapped_array:
- items:
- type: integer
- xml:
- namespace: http://g.com/schema
- type: array
- xml:
- namespace: http://f.com/schema
- wrapped: true
- prefix_ns_string:
- example: string
- type: string
- xml:
- namespace: http://a.com/schema
- prefix: a
- prefix_ns_number:
- example: 1.234
- type: number
- xml:
- namespace: http://b.com/schema
- prefix: b
- prefix_ns_integer:
- example: -2
- type: integer
- xml:
- namespace: http://c.com/schema
- prefix: c
- prefix_ns_boolean:
- example: true
- type: boolean
- xml:
- namespace: http://d.com/schema
- prefix: d
- prefix_ns_array:
- items:
- type: integer
- xml:
- namespace: http://e.com/schema
- prefix: e
- type: array
- prefix_ns_wrapped_array:
- items:
- type: integer
- xml:
- namespace: http://g.com/schema
- prefix: g
- type: array
- xml:
- namespace: http://f.com/schema
- prefix: f
- wrapped: true
- type: object
xml:
- namespace: http://a.com/schema
- prefix: pre
+ name: "$special[model.name]"
+ HealthCheckResult:
+ description: Just a string to inform instance is up and running. Make it nullable
+ in hope to get it as pointer in generated model.
+ example:
+ NullableMessage: NullableMessage
+ properties:
+ NullableMessage:
+ nullable: true
+ type: string
+ type: object
+ NullableClass:
+ additionalProperties:
+ nullable: true
+ type: object
+ properties:
+ integer_prop:
+ nullable: true
+ type: integer
+ number_prop:
+ nullable: true
+ type: number
+ boolean_prop:
+ nullable: true
+ type: boolean
+ string_prop:
+ nullable: true
+ type: string
+ date_prop:
+ format: date
+ nullable: true
+ type: string
+ datetime_prop:
+ format: date-time
+ nullable: true
+ type: string
+ array_nullable_prop:
+ items:
+ type: object
+ nullable: true
+ type: array
+ array_and_items_nullable_prop:
+ items:
+ nullable: true
+ type: object
+ nullable: true
+ type: array
+ array_items_nullable:
+ items:
+ nullable: true
+ type: object
+ type: array
+ object_nullable_prop:
+ additionalProperties:
+ type: object
+ nullable: true
+ type: object
+ object_and_items_nullable_prop:
+ additionalProperties:
+ nullable: true
+ type: object
+ nullable: true
+ type: object
+ object_items_nullable:
+ additionalProperties:
+ nullable: true
+ type: object
+ type: object
+ type: object
+ OuterObjectWithEnumProperty:
+ example:
+ value: 2
+ properties:
+ value:
+ $ref: '#/components/schemas/OuterEnumInteger'
+ required:
+ - value
+ type: object
+ DeprecatedObject:
+ deprecated: true
+ properties:
+ name:
+ type: string
+ type: object
+ ObjectWithDeprecatedFields:
+ properties:
+ uuid:
+ type: string
+ id:
+ deprecated: true
+ type: number
+ deprecatedRef:
+ $ref: '#/components/schemas/DeprecatedObject'
+ bars:
+ deprecated: true
+ items:
+ $ref: '#/components/schemas/Bar'
+ type: array
+ type: object
+ AllOfWithSingleRef:
+ properties:
+ username:
+ type: string
+ SingleRefType:
+ allOf:
+ - $ref: '#/components/schemas/SingleRefType'
+ type: object
+ SingleRefType:
+ enum:
+ - admin
+ - user
+ title: SingleRefType
+ type: string
+ _foo_get_default_response:
+ example:
+ string:
+ bar: bar
+ properties:
+ string:
+ $ref: '#/components/schemas/Foo'
+ type: object
updatePetWithForm_request:
properties:
name:
@@ -2072,7 +2035,6 @@ components:
properties:
integer:
description: None
- format: int32
maximum: 100
minimum: 10
type: integer
@@ -2177,17 +2139,6 @@ components:
type: boolean
type: object
example: null
- BigCat_allOf:
- properties:
- kind:
- enum:
- - lions
- - tigers
- - leopards
- - jaguars
- type: string
- type: object
- example: null
securitySchemes:
petstore_auth:
flows:
@@ -2208,5 +2159,11 @@ components:
http_basic_test:
scheme: basic
type: http
-x-original-swagger-version: "2.0"
+ bearer_test:
+ bearerFormat: JWT
+ scheme: bearer
+ type: http
+ http_signature_test:
+ scheme: signature
+ type: http
diff --git a/samples/client/petstore/java/apache-httpclient/docs/AdditionalPropertiesClass.md b/samples/client/petstore/java/apache-httpclient/docs/AdditionalPropertiesClass.md
index 79402f75c68..fe69a56eebf 100644
--- a/samples/client/petstore/java/apache-httpclient/docs/AdditionalPropertiesClass.md
+++ b/samples/client/petstore/java/apache-httpclient/docs/AdditionalPropertiesClass.md
@@ -7,17 +7,8 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
-|**mapString** | **Map<String, String>** | | [optional] |
-|**mapNumber** | **Map<String, BigDecimal>** | | [optional] |
-|**mapInteger** | **Map<String, Integer>** | | [optional] |
-|**mapBoolean** | **Map<String, Boolean>** | | [optional] |
-|**mapArrayInteger** | **Map<String, List<Integer>>** | | [optional] |
-|**mapArrayAnytype** | **Map<String, List<Object>>** | | [optional] |
-|**mapMapString** | **Map<String, Map<String, String>>** | | [optional] |
-|**mapMapAnytype** | **Map<String, Map<String, Object>>** | | [optional] |
-|**anytype1** | **Object** | | [optional] |
-|**anytype2** | **Object** | | [optional] |
-|**anytype3** | **Object** | | [optional] |
+|**mapProperty** | **Map<String, String>** | | [optional] |
+|**mapOfMapProperty** | **Map<String, Map<String, String>>** | | [optional] |
diff --git a/samples/client/petstore/java/apache-httpclient/docs/AllOfWithSingleRef.md b/samples/client/petstore/java/apache-httpclient/docs/AllOfWithSingleRef.md
new file mode 100644
index 00000000000..0a9e61bc682
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/AllOfWithSingleRef.md
@@ -0,0 +1,14 @@
+
+
+# AllOfWithSingleRef
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**username** | **String** | | [optional] |
+|**singleRefType** | [**SingleRefType**](SingleRefType.md) | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/AnotherFakeApi.md b/samples/client/petstore/java/apache-httpclient/docs/AnotherFakeApi.md
index f1ca8fe00b5..73c966d2d54 100644
--- a/samples/client/petstore/java/apache-httpclient/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/java/apache-httpclient/docs/AnotherFakeApi.md
@@ -10,7 +10,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
## call123testSpecialTags
-> Client call123testSpecialTags(body)
+> Client call123testSpecialTags(client)
To test special tags
@@ -32,9 +32,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
- Client body = new Client(); // Client | client model
+ Client client = new Client(); // Client | client model
try {
- Client result = apiInstance.call123testSpecialTags(body);
+ Client result = apiInstance.call123testSpecialTags(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
@@ -52,7 +52,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**Client**](Client.md)| client model | |
+| **client** | [**Client**](Client.md)| client model | |
### Return type
diff --git a/samples/client/petstore/java/apache-httpclient/docs/DefaultApi.md b/samples/client/petstore/java/apache-httpclient/docs/DefaultApi.md
new file mode 100644
index 00000000000..2c56e1f90e5
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/DefaultApi.md
@@ -0,0 +1,69 @@
+# DefaultApi
+
+All URIs are relative to *http://petstore.swagger.io:80/v2*
+
+| Method | HTTP request | Description |
+|------------- | ------------- | -------------|
+| [**fooGet**](DefaultApi.md#fooGet) | **GET** /foo | |
+
+
+
+## fooGet
+
+> FooGetDefaultResponse fooGet()
+
+
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.DefaultApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
+
+ DefaultApi apiInstance = new DefaultApi(defaultClient);
+ try {
+ FooGetDefaultResponse result = apiInstance.fooGet();
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DefaultApi#fooGet");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**FooGetDefaultResponse**](FooGetDefaultResponse.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **0** | response | - |
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/DeprecatedObject.md b/samples/client/petstore/java/apache-httpclient/docs/DeprecatedObject.md
new file mode 100644
index 00000000000..48de1d62442
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/DeprecatedObject.md
@@ -0,0 +1,13 @@
+
+
+# DeprecatedObject
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**name** | **String** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/EnumTest.md b/samples/client/petstore/java/apache-httpclient/docs/EnumTest.md
index bf2def484c6..380a2aef0bc 100644
--- a/samples/client/petstore/java/apache-httpclient/docs/EnumTest.md
+++ b/samples/client/petstore/java/apache-httpclient/docs/EnumTest.md
@@ -12,6 +12,9 @@
|**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] |
|**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] |
|**outerEnum** | **OuterEnum** | | [optional] |
+|**outerEnumInteger** | **OuterEnumInteger** | | [optional] |
+|**outerEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] |
+|**outerEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional] |
diff --git a/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md b/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md
index 627366e41db..853a8de5377 100644
--- a/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md
+++ b/samples/client/petstore/java/apache-httpclient/docs/FakeApi.md
@@ -4,15 +4,18 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
-| [**createXmlItem**](FakeApi.md#createXmlItem) | **POST** /fake/create_xml_item | creates an XmlItem |
+| [**fakeHealthGet**](FakeApi.md#fakeHealthGet) | **GET** /fake/health | Health check endpoint |
+| [**fakeHttpSignatureTest**](FakeApi.md#fakeHttpSignatureTest) | **GET** /fake/http-signature-test | test http signature authentication |
| [**fakeOuterBooleanSerialize**](FakeApi.md#fakeOuterBooleanSerialize) | **POST** /fake/outer/boolean | |
| [**fakeOuterCompositeSerialize**](FakeApi.md#fakeOuterCompositeSerialize) | **POST** /fake/outer/composite | |
| [**fakeOuterNumberSerialize**](FakeApi.md#fakeOuterNumberSerialize) | **POST** /fake/outer/number | |
| [**fakeOuterStringSerialize**](FakeApi.md#fakeOuterStringSerialize) | **POST** /fake/outer/string | |
+| [**fakePropertyEnumIntegerSerialize**](FakeApi.md#fakePropertyEnumIntegerSerialize) | **POST** /fake/property/enum-int | |
+| [**testBodyWithBinary**](FakeApi.md#testBodyWithBinary) | **PUT** /fake/body-with-binary | |
| [**testBodyWithFileSchema**](FakeApi.md#testBodyWithFileSchema) | **PUT** /fake/body-with-file-schema | |
| [**testBodyWithQueryParams**](FakeApi.md#testBodyWithQueryParams) | **PUT** /fake/body-with-query-params | |
| [**testClientModel**](FakeApi.md#testClientModel) | **PATCH** /fake | To test \"client\" model |
-| [**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 |
+| [**testEndpointParameters**](FakeApi.md#testEndpointParameters) | **POST** /fake | Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 |
| [**testEnumParameters**](FakeApi.md#testEnumParameters) | **GET** /fake | To test enum parameters |
| [**testGroupParameters**](FakeApi.md#testGroupParameters) | **DELETE** /fake | Fake endpoint to test group parameters (optional) |
| [**testInlineAdditionalProperties**](FakeApi.md#testInlineAdditionalProperties) | **POST** /fake/inline-additionalProperties | test inline additionalProperties |
@@ -21,13 +24,11 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
-## createXmlItem
+## fakeHealthGet
-> createXmlItem(xmlItem)
+> HealthCheckResult fakeHealthGet()
-creates an XmlItem
-
-this route creates an XmlItem
+Health check endpoint
### Example
@@ -45,11 +46,75 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
FakeApi apiInstance = new FakeApi(defaultClient);
- XmlItem xmlItem = new XmlItem(); // XmlItem | XmlItem Body
try {
- apiInstance.createXmlItem(xmlItem);
+ HealthCheckResult result = apiInstance.fakeHealthGet();
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling FakeApi#createXmlItem");
+ System.err.println("Exception when calling FakeApi#fakeHealthGet");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**HealthCheckResult**](HealthCheckResult.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: Not defined
+- **Accept**: application/json
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | The instance started successfully | - |
+
+
+## fakeHttpSignatureTest
+
+> fakeHttpSignatureTest(pet, query1, header1)
+
+test http signature authentication
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.FakeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
+
+
+ FakeApi apiInstance = new FakeApi(defaultClient);
+ Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
+ String query1 = "query1_example"; // String | query parameter
+ String header1 = "header1_example"; // String | header parameter
+ try {
+ apiInstance.fakeHttpSignatureTest(pet, query1, header1);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FakeApi#fakeHttpSignatureTest");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -64,7 +129,9 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **xmlItem** | [**XmlItem**](XmlItem.md)| XmlItem Body | |
+| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
+| **query1** | **String**| query parameter | [optional] |
+| **header1** | **String**| header parameter | [optional] |
### Return type
@@ -72,18 +139,18 @@ null (empty response body)
### Authorization
-No authorization required
+[http_signature_test](../README.md#http_signature_test)
### HTTP request headers
-- **Content-Type**: application/xml, application/xml; charset=utf-8, application/xml; charset=utf-16, text/xml, text/xml; charset=utf-8, text/xml; charset=utf-16
+- **Content-Type**: application/json, application/xml
- **Accept**: Not defined
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
+| **200** | The instance started successfully | - |
## fakeOuterBooleanSerialize
@@ -142,7 +209,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: */*
@@ -154,7 +221,7 @@ No authorization required
## fakeOuterCompositeSerialize
-> OuterComposite fakeOuterCompositeSerialize(body)
+> OuterComposite fakeOuterCompositeSerialize(outerComposite)
@@ -176,9 +243,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
FakeApi apiInstance = new FakeApi(defaultClient);
- OuterComposite body = new OuterComposite(); // OuterComposite | Input composite as post body
+ OuterComposite outerComposite = new OuterComposite(); // OuterComposite | Input composite as post body
try {
- OuterComposite result = apiInstance.fakeOuterCompositeSerialize(body);
+ OuterComposite result = apiInstance.fakeOuterCompositeSerialize(outerComposite);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#fakeOuterCompositeSerialize");
@@ -196,7 +263,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] |
+| **outerComposite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional] |
### Return type
@@ -208,7 +275,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: */*
@@ -274,7 +341,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: */*
@@ -340,7 +407,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: */*
@@ -350,13 +417,13 @@ No authorization required
| **200** | Output string | - |
-## testBodyWithFileSchema
+## fakePropertyEnumIntegerSerialize
-> testBodyWithFileSchema(body)
+> OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty)
-For this test, the body for this request much reference a schema named `File`.
+Test serialization of enum (int) properties with examples
### Example
@@ -374,9 +441,140 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
FakeApi apiInstance = new FakeApi(defaultClient);
- FileSchemaTestClass body = new FileSchemaTestClass(); // FileSchemaTestClass |
+ OuterObjectWithEnumProperty outerObjectWithEnumProperty = new OuterObjectWithEnumProperty(); // OuterObjectWithEnumProperty | Input enum (int) as post body
try {
- apiInstance.testBodyWithFileSchema(body);
+ OuterObjectWithEnumProperty result = apiInstance.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FakeApi#fakePropertyEnumIntegerSerialize");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **outerObjectWithEnumProperty** | [**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)| Input enum (int) as post body | |
+
+### Return type
+
+[**OuterObjectWithEnumProperty**](OuterObjectWithEnumProperty.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: application/json
+- **Accept**: */*
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Output enum (int) | - |
+
+
+## testBodyWithBinary
+
+> testBodyWithBinary(body)
+
+
+
+For this test, the body has to be a binary file.
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.FakeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
+
+ FakeApi apiInstance = new FakeApi(defaultClient);
+ File body = new File("/path/to/file"); // File | image to upload
+ try {
+ apiInstance.testBodyWithBinary(body);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling FakeApi#testBodyWithBinary");
+ System.err.println("Status code: " + e.getCode());
+ System.err.println("Reason: " + e.getResponseBody());
+ System.err.println("Response headers: " + e.getResponseHeaders());
+ e.printStackTrace();
+ }
+ }
+}
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+|------------- | ------------- | ------------- | -------------|
+| **body** | **File**| image to upload | |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+- **Content-Type**: image/png
+- **Accept**: Not defined
+
+
+### HTTP response details
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+| **200** | Success | - |
+
+
+## testBodyWithFileSchema
+
+> testBodyWithFileSchema(fileSchemaTestClass)
+
+
+
+For this test, the body for this request must reference a schema named `File`.
+
+### Example
+
+```java
+// Import classes:
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.ApiException;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.models.*;
+import org.openapitools.client.api.FakeApi;
+
+public class Example {
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
+
+ FakeApi apiInstance = new FakeApi(defaultClient);
+ FileSchemaTestClass fileSchemaTestClass = new FileSchemaTestClass(); // FileSchemaTestClass |
+ try {
+ apiInstance.testBodyWithFileSchema(fileSchemaTestClass);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithFileSchema");
System.err.println("Status code: " + e.getCode());
@@ -393,7 +591,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | |
+| **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | |
### Return type
@@ -417,7 +615,7 @@ No authorization required
## testBodyWithQueryParams
-> testBodyWithQueryParams(query, body)
+> testBodyWithQueryParams(query, user)
@@ -438,9 +636,9 @@ public class Example {
FakeApi apiInstance = new FakeApi(defaultClient);
String query = "query_example"; // String |
- User body = new User(); // User |
+ User user = new User(); // User |
try {
- apiInstance.testBodyWithQueryParams(query, body);
+ apiInstance.testBodyWithQueryParams(query, user);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testBodyWithQueryParams");
System.err.println("Status code: " + e.getCode());
@@ -458,7 +656,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **query** | **String**| | |
-| **body** | [**User**](User.md)| | |
+| **user** | [**User**](User.md)| | |
### Return type
@@ -482,7 +680,7 @@ No authorization required
## testClientModel
-> Client testClientModel(body)
+> Client testClientModel(client)
To test \"client\" model
@@ -504,9 +702,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
FakeApi apiInstance = new FakeApi(defaultClient);
- Client body = new Client(); // Client | client model
+ Client client = new Client(); // Client | client model
try {
- Client result = apiInstance.testClientModel(body);
+ Client result = apiInstance.testClientModel(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testClientModel");
@@ -524,7 +722,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**Client**](Client.md)| client model | |
+| **client** | [**Client**](Client.md)| client model | |
### Return type
@@ -550,9 +748,9 @@ No authorization required
> testEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback)
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
-Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
### Example
@@ -646,7 +844,7 @@ null (empty response body)
## testEnumParameters
-> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString)
+> testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString)
To test enum parameters
@@ -674,10 +872,11 @@ public class Example {
String enumQueryString = "_abc"; // String | Query parameter enum test (string)
Integer enumQueryInteger = 1; // Integer | Query parameter enum test (double)
Double enumQueryDouble = 1.1D; // Double | Query parameter enum test (double)
+ List enumQueryModelArray = Arrays.asList(-efg); // List |
List enumFormStringArray = Arrays.asList("$"); // List | Form parameter enum test (string array)
String enumFormString = "_abc"; // String | Form parameter enum test (string)
try {
- apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
+ apiInstance.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testEnumParameters");
System.err.println("Status code: " + e.getCode());
@@ -700,6 +899,7 @@ public class Example {
| **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
| **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] |
| **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] |
+| **enumQueryModelArray** | [**List<EnumClass>**](EnumClass.md)| | [optional] |
| **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [enum: >, $] |
| **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] |
@@ -739,6 +939,7 @@ Fake endpoint to test group parameters (optional)
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
+import org.openapitools.client.auth.*;
import org.openapitools.client.models.*;
import org.openapitools.client.api.FakeApi;
@@ -746,6 +947,10 @@ public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
+
+ // Configure HTTP bearer authorization: bearer_test
+ HttpBearerAuth bearer_test = (HttpBearerAuth) defaultClient.getAuthentication("bearer_test");
+ bearer_test.setBearerToken("BEARER TOKEN");
FakeApi apiInstance = new FakeApi(defaultClient);
Integer requiredStringGroup = 56; // Integer | Required String in group parameters
@@ -785,7 +990,7 @@ null (empty response body)
### Authorization
-No authorization required
+[bearer_test](../README.md#bearer_test)
### HTTP request headers
@@ -801,10 +1006,12 @@ No authorization required
## testInlineAdditionalProperties
-> testInlineAdditionalProperties(param)
+> testInlineAdditionalProperties(requestBody)
test inline additionalProperties
+
+
### Example
```java
@@ -821,9 +1028,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
FakeApi apiInstance = new FakeApi(defaultClient);
- Map param = new HashMap(); // Map | request body
+ Map requestBody = new HashMap(); // Map | request body
try {
- apiInstance.testInlineAdditionalProperties(param);
+ apiInstance.testInlineAdditionalProperties(requestBody);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testInlineAdditionalProperties");
System.err.println("Status code: " + e.getCode());
@@ -840,7 +1047,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **param** | [**Map<String, String>**](String.md)| request body | |
+| **requestBody** | [**Map<String, String>**](String.md)| request body | |
### Return type
@@ -868,6 +1075,8 @@ No authorization required
test json serialization of form data
+
+
### Example
```java
@@ -929,7 +1138,7 @@ No authorization required
## testQueryParameterCollectionFormat
-> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
+> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language)
@@ -956,8 +1165,10 @@ public class Example {
List http = Arrays.asList(); // List |
List url = Arrays.asList(); // List |
List context = Arrays.asList(); // List |
+ String allowEmpty = "allowEmpty_example"; // String |
+ Map language = new HashMap(); // Map |
try {
- apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
+ apiInstance.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language);
} catch (ApiException e) {
System.err.println("Exception when calling FakeApi#testQueryParameterCollectionFormat");
System.err.println("Status code: " + e.getCode());
@@ -979,6 +1190,8 @@ public class Example {
| **http** | [**List<String>**](String.md)| | |
| **url** | [**List<String>**](String.md)| | |
| **context** | [**List<String>**](String.md)| | |
+| **allowEmpty** | **String**| | |
+| **language** | [**Map<String, String>**](String.md)| | [optional] |
### Return type
diff --git a/samples/client/petstore/java/apache-httpclient/docs/FakeClassnameTags123Api.md b/samples/client/petstore/java/apache-httpclient/docs/FakeClassnameTags123Api.md
index 10d5ea30aa2..e4ff70ed909 100644
--- a/samples/client/petstore/java/apache-httpclient/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/java/apache-httpclient/docs/FakeClassnameTags123Api.md
@@ -10,7 +10,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
## testClassname
-> Client testClassname(body)
+> Client testClassname(client)
To test class name in snake case
@@ -39,9 +39,9 @@ public class Example {
//api_key_query.setApiKeyPrefix("Token");
FakeClassnameTags123Api apiInstance = new FakeClassnameTags123Api(defaultClient);
- Client body = new Client(); // Client | client model
+ Client client = new Client(); // Client | client model
try {
- Client result = apiInstance.testClassname(body);
+ Client result = apiInstance.testClassname(client);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling FakeClassnameTags123Api#testClassname");
@@ -59,7 +59,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**Client**](Client.md)| client model | |
+| **client** | [**Client**](Client.md)| client model | |
### Return type
diff --git a/samples/client/petstore/java/apache-httpclient/docs/Foo.md b/samples/client/petstore/java/apache-httpclient/docs/Foo.md
new file mode 100644
index 00000000000..6b3f0556528
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/Foo.md
@@ -0,0 +1,13 @@
+
+
+# Foo
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**bar** | **String** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/FooGetDefaultResponse.md b/samples/client/petstore/java/apache-httpclient/docs/FooGetDefaultResponse.md
new file mode 100644
index 00000000000..ff3d7a3a56c
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/FooGetDefaultResponse.md
@@ -0,0 +1,13 @@
+
+
+# FooGetDefaultResponse
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**string** | [**Foo**](Foo.md) | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/FormatTest.md b/samples/client/petstore/java/apache-httpclient/docs/FormatTest.md
index 9c68c3080e1..01b8c777ae0 100644
--- a/samples/client/petstore/java/apache-httpclient/docs/FormatTest.md
+++ b/samples/client/petstore/java/apache-httpclient/docs/FormatTest.md
@@ -13,6 +13,7 @@
|**number** | **BigDecimal** | | |
|**_float** | **Float** | | [optional] |
|**_double** | **Double** | | [optional] |
+|**decimal** | **BigDecimal** | | [optional] |
|**string** | **String** | | [optional] |
|**_byte** | **byte[]** | | |
|**binary** | **File** | | [optional] |
@@ -20,7 +21,8 @@
|**dateTime** | **OffsetDateTime** | | [optional] |
|**uuid** | **UUID** | | [optional] |
|**password** | **String** | | |
-|**bigDecimal** | **BigDecimal** | | [optional] |
+|**patternWithDigits** | **String** | A string that is a 10 digit number. Can have leading zeros. | [optional] |
+|**patternWithDigitsAndDelimiter** | **String** | A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01. | [optional] |
diff --git a/samples/client/petstore/java/apache-httpclient/docs/HealthCheckResult.md b/samples/client/petstore/java/apache-httpclient/docs/HealthCheckResult.md
new file mode 100644
index 00000000000..4885e6f1cad
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/HealthCheckResult.md
@@ -0,0 +1,14 @@
+
+
+# HealthCheckResult
+
+Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**nullableMessage** | **String** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/NullableClass.md b/samples/client/petstore/java/apache-httpclient/docs/NullableClass.md
new file mode 100644
index 00000000000..fa98c5c6d98
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/NullableClass.md
@@ -0,0 +1,24 @@
+
+
+# NullableClass
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**integerProp** | **Integer** | | [optional] |
+|**numberProp** | **BigDecimal** | | [optional] |
+|**booleanProp** | **Boolean** | | [optional] |
+|**stringProp** | **String** | | [optional] |
+|**dateProp** | **LocalDate** | | [optional] |
+|**datetimeProp** | **OffsetDateTime** | | [optional] |
+|**arrayNullableProp** | **List<Object>** | | [optional] |
+|**arrayAndItemsNullableProp** | **List<Object>** | | [optional] |
+|**arrayItemsNullable** | **List<Object>** | | [optional] |
+|**objectNullableProp** | **Map<String, Object>** | | [optional] |
+|**objectAndItemsNullableProp** | **Map<String, Object>** | | [optional] |
+|**objectItemsNullable** | **Map<String, Object>** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/ObjectWithDeprecatedFields.md b/samples/client/petstore/java/apache-httpclient/docs/ObjectWithDeprecatedFields.md
new file mode 100644
index 00000000000..f1cf571f4c0
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/ObjectWithDeprecatedFields.md
@@ -0,0 +1,16 @@
+
+
+# ObjectWithDeprecatedFields
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**uuid** | **String** | | [optional] |
+|**id** | **BigDecimal** | | [optional] |
+|**deprecatedRef** | [**DeprecatedObject**](DeprecatedObject.md) | | [optional] |
+|**bars** | **List<String>** | | [optional] |
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/OuterEnumDefaultValue.md b/samples/client/petstore/java/apache-httpclient/docs/OuterEnumDefaultValue.md
new file mode 100644
index 00000000000..cbc7f4ba54d
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/OuterEnumDefaultValue.md
@@ -0,0 +1,15 @@
+
+
+# OuterEnumDefaultValue
+
+## Enum
+
+
+* `PLACED` (value: `"placed"`)
+
+* `APPROVED` (value: `"approved"`)
+
+* `DELIVERED` (value: `"delivered"`)
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/OuterEnumInteger.md b/samples/client/petstore/java/apache-httpclient/docs/OuterEnumInteger.md
new file mode 100644
index 00000000000..f71dea30ad0
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/OuterEnumInteger.md
@@ -0,0 +1,15 @@
+
+
+# OuterEnumInteger
+
+## Enum
+
+
+* `NUMBER_0` (value: `0`)
+
+* `NUMBER_1` (value: `1`)
+
+* `NUMBER_2` (value: `2`)
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/OuterEnumIntegerDefaultValue.md b/samples/client/petstore/java/apache-httpclient/docs/OuterEnumIntegerDefaultValue.md
new file mode 100644
index 00000000000..99e6389f427
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/OuterEnumIntegerDefaultValue.md
@@ -0,0 +1,15 @@
+
+
+# OuterEnumIntegerDefaultValue
+
+## Enum
+
+
+* `NUMBER_0` (value: `0`)
+
+* `NUMBER_1` (value: `1`)
+
+* `NUMBER_2` (value: `2`)
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/OuterObjectWithEnumProperty.md b/samples/client/petstore/java/apache-httpclient/docs/OuterObjectWithEnumProperty.md
new file mode 100644
index 00000000000..0fafaaa2715
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/OuterObjectWithEnumProperty.md
@@ -0,0 +1,13 @@
+
+
+# OuterObjectWithEnumProperty
+
+
+## Properties
+
+| Name | Type | Description | Notes |
+|------------ | ------------- | ------------- | -------------|
+|**value** | **OuterEnumInteger** | | |
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/PetApi.md b/samples/client/petstore/java/apache-httpclient/docs/PetApi.md
index 1e79e30ef6c..e2515d9bb9b 100644
--- a/samples/client/petstore/java/apache-httpclient/docs/PetApi.md
+++ b/samples/client/petstore/java/apache-httpclient/docs/PetApi.md
@@ -18,10 +18,12 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
## addPet
-> addPet(body)
+> addPet(pet)
Add a new pet to the store
+
+
### Example
```java
@@ -43,9 +45,9 @@ public class Example {
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(defaultClient);
- Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
+ Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
try {
- apiInstance.addPet(body);
+ apiInstance.addPet(pet);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#addPet");
System.err.println("Status code: " + e.getCode());
@@ -62,7 +64,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
+| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
### Return type
@@ -81,7 +83,7 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
+| **200** | Successful operation | - |
| **405** | Invalid input | - |
@@ -91,6 +93,8 @@ null (empty response body)
Deletes a pet
+
+
### Example
```java
@@ -152,7 +156,7 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
+| **200** | Successful operation | - |
| **400** | Invalid pet value | - |
@@ -377,10 +381,12 @@ public class Example {
## updatePet
-> updatePet(body)
+> updatePet(pet)
Update an existing pet
+
+
### Example
```java
@@ -402,9 +408,9 @@ public class Example {
petstore_auth.setAccessToken("YOUR ACCESS TOKEN");
PetApi apiInstance = new PetApi(defaultClient);
- Pet body = new Pet(); // Pet | Pet object that needs to be added to the store
+ Pet pet = new Pet(); // Pet | Pet object that needs to be added to the store
try {
- apiInstance.updatePet(body);
+ apiInstance.updatePet(pet);
} catch (ApiException e) {
System.err.println("Exception when calling PetApi#updatePet");
System.err.println("Status code: " + e.getCode());
@@ -421,7 +427,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
+| **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store | |
### Return type
@@ -440,7 +446,7 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-| **200** | successful operation | - |
+| **200** | Successful operation | - |
| **400** | Invalid ID supplied | - |
| **404** | Pet not found | - |
| **405** | Validation exception | - |
@@ -452,6 +458,8 @@ null (empty response body)
Updates a pet in the store with form data
+
+
### Example
```java
@@ -515,6 +523,7 @@ null (empty response body)
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
+| **200** | Successful operation | - |
| **405** | Invalid input | - |
@@ -524,6 +533,8 @@ null (empty response body)
uploads an image
+
+
### Example
```java
@@ -597,6 +608,8 @@ public class Example {
uploads an image (required)
+
+
### Example
```java
diff --git a/samples/client/petstore/java/apache-httpclient/docs/SingleRefType.md b/samples/client/petstore/java/apache-httpclient/docs/SingleRefType.md
new file mode 100644
index 00000000000..cc269bb871f
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/docs/SingleRefType.md
@@ -0,0 +1,13 @@
+
+
+# SingleRefType
+
+## Enum
+
+
+* `ADMIN` (value: `"admin"`)
+
+* `USER` (value: `"user"`)
+
+
+
diff --git a/samples/client/petstore/java/apache-httpclient/docs/StoreApi.md b/samples/client/petstore/java/apache-httpclient/docs/StoreApi.md
index b64e208a83a..ce91137cc6f 100644
--- a/samples/client/petstore/java/apache-httpclient/docs/StoreApi.md
+++ b/samples/client/petstore/java/apache-httpclient/docs/StoreApi.md
@@ -216,10 +216,12 @@ No authorization required
## placeOrder
-> Order placeOrder(body)
+> Order placeOrder(order)
Place an order for a pet
+
+
### Example
```java
@@ -236,9 +238,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
StoreApi apiInstance = new StoreApi(defaultClient);
- Order body = new Order(); // Order | order placed for purchasing the pet
+ Order order = new Order(); // Order | order placed for purchasing the pet
try {
- Order result = apiInstance.placeOrder(body);
+ Order result = apiInstance.placeOrder(order);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StoreApi#placeOrder");
@@ -256,7 +258,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**Order**](Order.md)| order placed for purchasing the pet | |
+| **order** | [**Order**](Order.md)| order placed for purchasing the pet | |
### Return type
@@ -268,7 +270,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: application/xml, application/json
diff --git a/samples/client/petstore/java/apache-httpclient/docs/UserApi.md b/samples/client/petstore/java/apache-httpclient/docs/UserApi.md
index dfdb4a7c0eb..305fd6e66df 100644
--- a/samples/client/petstore/java/apache-httpclient/docs/UserApi.md
+++ b/samples/client/petstore/java/apache-httpclient/docs/UserApi.md
@@ -17,7 +17,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
## createUser
-> createUser(body)
+> createUser(user)
Create user
@@ -39,9 +39,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
UserApi apiInstance = new UserApi(defaultClient);
- User body = new User(); // User | Created user object
+ User user = new User(); // User | Created user object
try {
- apiInstance.createUser(body);
+ apiInstance.createUser(user);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUser");
System.err.println("Status code: " + e.getCode());
@@ -58,7 +58,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**User**](User.md)| Created user object | |
+| **user** | [**User**](User.md)| Created user object | |
### Return type
@@ -70,7 +70,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: Not defined
@@ -82,10 +82,12 @@ No authorization required
## createUsersWithArrayInput
-> createUsersWithArrayInput(body)
+> createUsersWithArrayInput(user)
Creates list of users with given input array
+
+
### Example
```java
@@ -102,9 +104,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
UserApi apiInstance = new UserApi(defaultClient);
- List body = Arrays.asList(); // List | List of user object
+ List user = Arrays.asList(); // List | List of user object
try {
- apiInstance.createUsersWithArrayInput(body);
+ apiInstance.createUsersWithArrayInput(user);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithArrayInput");
System.err.println("Status code: " + e.getCode());
@@ -121,7 +123,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**List<User>**](User.md)| List of user object | |
+| **user** | [**List<User>**](User.md)| List of user object | |
### Return type
@@ -133,7 +135,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: Not defined
@@ -145,10 +147,12 @@ No authorization required
## createUsersWithListInput
-> createUsersWithListInput(body)
+> createUsersWithListInput(user)
Creates list of users with given input array
+
+
### Example
```java
@@ -165,9 +169,9 @@ public class Example {
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
UserApi apiInstance = new UserApi(defaultClient);
- List body = Arrays.asList(); // List | List of user object
+ List user = Arrays.asList(); // List | List of user object
try {
- apiInstance.createUsersWithListInput(body);
+ apiInstance.createUsersWithListInput(user);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#createUsersWithListInput");
System.err.println("Status code: " + e.getCode());
@@ -184,7 +188,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
-| **body** | [**List<User>**](User.md)| List of user object | |
+| **user** | [**List<User>**](User.md)| List of user object | |
### Return type
@@ -196,7 +200,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: Not defined
@@ -278,6 +282,8 @@ No authorization required
Get user by user name
+
+
### Example
```java
@@ -344,6 +350,8 @@ No authorization required
Logs user into the system
+
+
### Example
```java
@@ -411,6 +419,8 @@ No authorization required
Logs out current logged in user session
+
+
### Example
```java
@@ -466,7 +476,7 @@ No authorization required
## updateUser
-> updateUser(username, body)
+> updateUser(username, user)
Updated user
@@ -489,9 +499,9 @@ public class Example {
UserApi apiInstance = new UserApi(defaultClient);
String username = "username_example"; // String | name that need to be deleted
- User body = new User(); // User | Updated user object
+ User user = new User(); // User | Updated user object
try {
- apiInstance.updateUser(username, body);
+ apiInstance.updateUser(username, user);
} catch (ApiException e) {
System.err.println("Exception when calling UserApi#updateUser");
System.err.println("Status code: " + e.getCode());
@@ -509,7 +519,7 @@ public class Example {
| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **username** | **String**| name that need to be deleted | |
-| **body** | [**User**](User.md)| Updated user object | |
+| **user** | [**User**](User.md)| Updated user object | |
### Return type
@@ -521,7 +531,7 @@ No authorization required
### HTTP request headers
-- **Content-Type**: Not defined
+- **Content-Type**: application/json
- **Accept**: Not defined
diff --git a/samples/client/petstore/java/apache-httpclient/pom.xml b/samples/client/petstore/java/apache-httpclient/pom.xml
index e910ece4000..847bb322c57 100644
--- a/samples/client/petstore/java/apache-httpclient/pom.xml
+++ b/samples/client/petstore/java/apache-httpclient/pom.xml
@@ -254,6 +254,11 @@
jackson-datatype-jsr310
${jackson-version}
+
+ org.openapitools
+ jackson-databind-nullable
+ ${jackson-databind-nullable-version}
+
jakarta.annotation
jakarta.annotation-api
@@ -274,6 +279,7 @@
4.5.13
2.13.4
2.13.4.2
+ 0.2.4
1.3.5
1.0.0
4.13.2
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/ApiClient.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/ApiClient.java
index 273adaad06c..e0bb95d2f01 100644
--- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/ApiClient.java
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/ApiClient.java
@@ -76,6 +76,7 @@ import java.text.DateFormat;
import org.openapitools.client.auth.Authentication;
import org.openapitools.client.auth.HttpBasicAuth;
+import org.openapitools.client.auth.HttpBearerAuth;
import org.openapitools.client.auth.ApiKeyAuth;
import org.openapitools.client.auth.OAuth;
@@ -86,8 +87,51 @@ public class ApiClient extends JavaTimeFormatter {
private String basePath = "http://petstore.swagger.io:80/v2";
protected List servers = new ArrayList(Arrays.asList(
new ServerConfiguration(
- "http://petstore.swagger.io:80/v2",
- "No description provided",
+ "http://{server}.swagger.io:{port}/v2",
+ "petstore server",
+ new HashMap() {{
+ put("server", new ServerVariable(
+ "No description provided",
+ "petstore",
+ new HashSet(
+ Arrays.asList(
+ "petstore",
+ "qa-petstore",
+ "dev-petstore"
+ )
+ )
+ ));
+ put("port", new ServerVariable(
+ "No description provided",
+ "80",
+ new HashSet(
+ Arrays.asList(
+ "80",
+ "8080"
+ )
+ )
+ ));
+ }}
+ ),
+ new ServerConfiguration(
+ "https://localhost:8080/{version}",
+ "The local server",
+ new HashMap() {{
+ put("version", new ServerVariable(
+ "No description provided",
+ "v2",
+ new HashSet(
+ Arrays.asList(
+ "v1",
+ "v2"
+ )
+ )
+ ));
+ }}
+ ),
+ new ServerConfiguration(
+ "https://127.0.0.1/no_varaible",
+ "The local server without variables",
new HashMap()
)
));
@@ -130,7 +174,9 @@ public class ApiClient extends JavaTimeFormatter {
authentications = new HashMap();
authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
authentications.put("api_key_query", new ApiKeyAuth("query", "api_key_query"));
+ authentications.put("bearer_test", new HttpBearerAuth("bearer"));
authentications.put("http_basic_test", new HttpBasicAuth());
+ authentications.put("http_signature_test", new HttpBearerAuth("signature"));
authentications.put("petstore_auth", new OAuth());
// Prevent the authentications from being modified.
authentications = Collections.unmodifiableMap(authentications);
@@ -272,6 +318,21 @@ public class ApiClient extends JavaTimeFormatter {
return tempFolderPath;
}
+ /**
+ * Helper method to set access token for the first Bearer authentication.
+ * @param bearerToken Bearer token
+ * @return API client
+ */
+ public ApiClient setBearerToken(String bearerToken) {
+ for (Authentication auth : authentications.values()) {
+ if (auth instanceof HttpBearerAuth) {
+ ((HttpBearerAuth) auth).setBearerToken(bearerToken);
+ return this;
+ }
+ }
+ throw new RuntimeException("No Bearer authentication configured!");
+ }
+
/**
* Helper method to set username for the first HTTP basic authentication.
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
index 8077d1f92d1..6de6aa2b263 100644
--- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/AnotherFakeApi.java
@@ -51,16 +51,16 @@ public class AnotherFakeApi {
/**
* To test special tags
* To test special tags and operation ID starting with number
- * @param body client model (required)
+ * @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
- public Client call123testSpecialTags(Client body) throws ApiException {
- Object localVarPostBody = body;
+ public Client call123testSpecialTags(Client client) throws ApiException {
+ Object localVarPostBody = client;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling call123testSpecialTags");
+ // verify the required parameter 'client' is set
+ if (client == null) {
+ throw new ApiException(400, "Missing the required parameter 'client' when calling call123testSpecialTags");
}
// create path and map variables
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/DefaultApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/DefaultApi.java
new file mode 100644
index 00000000000..8be4621cbe3
--- /dev/null
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/DefaultApi.java
@@ -0,0 +1,101 @@
+/*
+ * 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.
+ */
+
+package org.openapitools.client.api;
+
+import com.fasterxml.jackson.core.type.TypeReference;
+
+import org.openapitools.client.ApiException;
+import org.openapitools.client.ApiClient;
+import org.openapitools.client.Configuration;
+import org.openapitools.client.model.*;
+import org.openapitools.client.Pair;
+
+import org.openapitools.client.model.FooGetDefaultResponse;
+
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
+public class DefaultApi {
+ private ApiClient apiClient;
+
+ public DefaultApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public DefaultApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ *
+ *
+ * @return FooGetDefaultResponse
+ * @throws ApiException if fails to make API call
+ */
+ public FooGetDefaultResponse fooGet() throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/foo";
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ TypeReference localVarReturnType = new TypeReference() {};
+ return apiClient.invokeAPI(
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType
+ );
+ }
+}
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java
index 9b1ca28923d..33385400a50 100644
--- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeApi.java
@@ -22,13 +22,16 @@ import org.openapitools.client.Pair;
import java.math.BigDecimal;
import org.openapitools.client.model.Client;
+import org.openapitools.client.model.EnumClass;
import java.io.File;
import org.openapitools.client.model.FileSchemaTestClass;
+import org.openapitools.client.model.HealthCheckResult;
import java.time.LocalDate;
import java.time.OffsetDateTime;
import org.openapitools.client.model.OuterComposite;
+import org.openapitools.client.model.OuterObjectWithEnumProperty;
+import org.openapitools.client.model.Pet;
import org.openapitools.client.model.User;
-import org.openapitools.client.model.XmlItem;
import java.util.ArrayList;
@@ -57,21 +60,16 @@ public class FakeApi {
}
/**
- * creates an XmlItem
- * this route creates an XmlItem
- * @param xmlItem XmlItem Body (required)
+ * Health check endpoint
+ *
+ * @return HealthCheckResult
* @throws ApiException if fails to make API call
*/
- public void createXmlItem(XmlItem xmlItem) throws ApiException {
- Object localVarPostBody = xmlItem;
-
- // verify the required parameter 'xmlItem' is set
- if (xmlItem == null) {
- throw new ApiException(400, "Missing the required parameter 'xmlItem' when calling createXmlItem");
- }
+ public HealthCheckResult fakeHealthGet() throws ApiException {
+ Object localVarPostBody = null;
// create path and map variables
- String localVarPath = "/fake/create_xml_item";
+ String localVarPath = "/fake/health";
// query params
List localVarQueryParams = new ArrayList();
@@ -84,20 +82,80 @@ public class FakeApi {
final String[] localVarAccepts = {
-
+ "application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
- "application/xml", "application/xml; charset=utf-8", "application/xml; charset=utf-16", "text/xml", "text/xml; charset=utf-8", "text/xml; charset=utf-16"
+
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
+ TypeReference localVarReturnType = new TypeReference() {};
+ return apiClient.invokeAPI(
+ localVarPath,
+ "GET",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType
+ );
+ }
+ /**
+ * test http signature authentication
+ *
+ * @param pet Pet object that needs to be added to the store (required)
+ * @param query1 query parameter (optional)
+ * @param header1 header parameter (optional)
+ * @throws ApiException if fails to make API call
+ */
+ public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws ApiException {
+ Object localVarPostBody = pet;
+
+ // verify the required parameter 'pet' is set
+ if (pet == null) {
+ throw new ApiException(400, "Missing the required parameter 'pet' when calling fakeHttpSignatureTest");
+ }
+
+ // create path and map variables
+ String localVarPath = "/fake/http-signature-test";
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+ localVarQueryParams.addAll(apiClient.parameterToPair("query_1", query1));
+ if (header1 != null)
+ localVarHeaderParams.put("header_1", apiClient.parameterToString(header1));
+
+
+
+ final String[] localVarAccepts = {
+
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "application/json", "application/xml"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { "http_signature_test" };
+
apiClient.invokeAPI(
localVarPath,
- "POST",
+ "GET",
localVarQueryParams,
localVarCollectionQueryParams,
localVarPostBody,
@@ -139,7 +197,7 @@ public class FakeApi {
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
@@ -164,12 +222,12 @@ public class FakeApi {
/**
*
* Test serialization of object with outer number type
- * @param body Input composite as post body (optional)
+ * @param outerComposite Input composite as post body (optional)
* @return OuterComposite
* @throws ApiException if fails to make API call
*/
- public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws ApiException {
- Object localVarPostBody = body;
+ public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws ApiException {
+ Object localVarPostBody = outerComposite;
// create path and map variables
String localVarPath = "/fake/outer/composite";
@@ -190,7 +248,7 @@ public class FakeApi {
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
@@ -241,7 +299,7 @@ public class FakeApi {
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
@@ -292,7 +350,7 @@ public class FakeApi {
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
@@ -316,16 +374,126 @@ public class FakeApi {
}
/**
*
- * For this test, the body for this request much reference a schema named `File`.
- * @param body (required)
+ * Test serialization of enum (int) properties with examples
+ * @param outerObjectWithEnumProperty Input enum (int) as post body (required)
+ * @return OuterObjectWithEnumProperty
* @throws ApiException if fails to make API call
*/
- public void testBodyWithFileSchema(FileSchemaTestClass body) throws ApiException {
+ public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws ApiException {
+ Object localVarPostBody = outerObjectWithEnumProperty;
+
+ // verify the required parameter 'outerObjectWithEnumProperty' is set
+ if (outerObjectWithEnumProperty == null) {
+ throw new ApiException(400, "Missing the required parameter 'outerObjectWithEnumProperty' when calling fakePropertyEnumIntegerSerialize");
+ }
+
+ // create path and map variables
+ String localVarPath = "/fake/property/enum-int";
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+ final String[] localVarAccepts = {
+ "*/*"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ TypeReference localVarReturnType = new TypeReference() {};
+ return apiClient.invokeAPI(
+ localVarPath,
+ "POST",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ localVarReturnType
+ );
+ }
+ /**
+ *
+ * For this test, the body has to be a binary file.
+ * @param body image to upload (required)
+ * @throws ApiException if fails to make API call
+ */
+ public void testBodyWithBinary(File body) throws ApiException {
Object localVarPostBody = body;
// verify the required parameter 'body' is set
if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
+ throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithBinary");
+ }
+
+ // create path and map variables
+ String localVarPath = "/fake/body-with-binary";
+
+ // query params
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ Map localVarHeaderParams = new HashMap();
+ Map localVarCookieParams = new HashMap();
+ Map localVarFormParams = new HashMap();
+
+
+
+
+ final String[] localVarAccepts = {
+
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+
+ final String[] localVarContentTypes = {
+ "image/png"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+
+ String[] localVarAuthNames = new String[] { };
+
+ apiClient.invokeAPI(
+ localVarPath,
+ "PUT",
+ localVarQueryParams,
+ localVarCollectionQueryParams,
+ localVarPostBody,
+ localVarHeaderParams,
+ localVarCookieParams,
+ localVarFormParams,
+ localVarAccept,
+ localVarContentType,
+ localVarAuthNames,
+ null
+ );
+ }
+ /**
+ *
+ * For this test, the body for this request must reference a schema named `File`.
+ * @param fileSchemaTestClass (required)
+ * @throws ApiException if fails to make API call
+ */
+ public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws ApiException {
+ Object localVarPostBody = fileSchemaTestClass;
+
+ // verify the required parameter 'fileSchemaTestClass' is set
+ if (fileSchemaTestClass == null) {
+ throw new ApiException(400, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
}
// create path and map variables
@@ -372,20 +540,20 @@ public class FakeApi {
*
*
* @param query (required)
- * @param body (required)
+ * @param user (required)
* @throws ApiException if fails to make API call
*/
- public void testBodyWithQueryParams(String query, User body) throws ApiException {
- Object localVarPostBody = body;
+ public void testBodyWithQueryParams(String query, User user) throws ApiException {
+ Object localVarPostBody = user;
// verify the required parameter 'query' is set
if (query == null) {
throw new ApiException(400, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
}
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
+ // verify the required parameter 'user' is set
+ if (user == null) {
+ throw new ApiException(400, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
}
// create path and map variables
@@ -432,16 +600,16 @@ public class FakeApi {
/**
* To test \"client\" model
* To test \"client\" model
- * @param body client model (required)
+ * @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
- public Client testClientModel(Client body) throws ApiException {
- Object localVarPostBody = body;
+ public Client testClientModel(Client client) throws ApiException {
+ Object localVarPostBody = client;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling testClientModel");
+ // verify the required parameter 'client' is set
+ if (client == null) {
+ throw new ApiException(400, "Missing the required parameter 'client' when calling testClientModel");
}
// create path and map variables
@@ -486,8 +654,8 @@ public class FakeApi {
);
}
/**
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
- * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+ * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
+ * Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
* @param number None (required)
* @param _double None (required)
* @param patternWithoutDelimiter None (required)
@@ -604,11 +772,12 @@ if (paramCallback != null)
* @param enumQueryString Query parameter enum test (string) (optional, default to -efg)
* @param enumQueryInteger Query parameter enum test (double) (optional)
* @param enumQueryDouble Query parameter enum test (double) (optional)
+ * @param enumQueryModelArray (optional
* @param enumFormStringArray Form parameter enum test (string array) (optional
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
* @throws ApiException if fails to make API call
*/
- public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumFormStringArray, String enumFormString) throws ApiException {
+ public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
@@ -621,10 +790,11 @@ if (paramCallback != null)
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "enum_query_string_array", enumQueryStringArray));
+ localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "enum_query_string_array", enumQueryStringArray));
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_string", enumQueryString));
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_integer", enumQueryInteger));
localVarQueryParams.addAll(apiClient.parameterToPair("enum_query_double", enumQueryDouble));
+ localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "enum_query_model_array", enumQueryModelArray));
if (enumHeaderStringArray != null)
localVarHeaderParams.put("enum_header_string_array", apiClient.parameterToString(enumHeaderStringArray));
if (enumHeaderString != null)
@@ -723,7 +893,7 @@ if (booleanGroup != null)
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- String[] localVarAuthNames = new String[] { };
+ String[] localVarAuthNames = new String[] { "bearer_test" };
apiClient.invokeAPI(
localVarPath,
@@ -743,15 +913,15 @@ if (booleanGroup != null)
/**
* test inline additionalProperties
*
- * @param param request body (required)
+ * @param requestBody request body (required)
* @throws ApiException if fails to make API call
*/
- public void testInlineAdditionalProperties(Map param) throws ApiException {
- Object localVarPostBody = param;
+ public void testInlineAdditionalProperties(Map requestBody) throws ApiException {
+ Object localVarPostBody = requestBody;
- // verify the required parameter 'param' is set
- if (param == null) {
- throw new ApiException(400, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
+ // verify the required parameter 'requestBody' is set
+ if (requestBody == null) {
+ throw new ApiException(400, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
}
// create path and map variables
@@ -866,9 +1036,11 @@ if (param2 != null)
* @param http (required)
* @param url (required)
* @param context (required)
+ * @param allowEmpty (required)
+ * @param language (optional
* @throws ApiException if fails to make API call
*/
- public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context) throws ApiException {
+ public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'pipe' is set
@@ -896,6 +1068,11 @@ if (param2 != null)
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
}
+ // verify the required parameter 'allowEmpty' is set
+ if (allowEmpty == null) {
+ throw new ApiException(400, "Missing the required parameter 'allowEmpty' when calling testQueryParameterCollectionFormat");
+ }
+
// create path and map variables
String localVarPath = "/fake/test-query-parameters";
@@ -906,11 +1083,13 @@ if (param2 != null)
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
- localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "pipe", pipe));
+ localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("pipes", "pipe", pipe));
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "ioutil", ioutil));
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("ssv", "http", http));
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("csv", "url", url));
localVarCollectionQueryParams.addAll(apiClient.parameterToPairs("multi", "context", context));
+ localVarQueryParams.addAll(apiClient.parameterToPair("language", language));
+ localVarQueryParams.addAll(apiClient.parameterToPair("allowEmpty", allowEmpty));
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
index 35140333246..71f98b27102 100644
--- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
@@ -51,16 +51,16 @@ public class FakeClassnameTags123Api {
/**
* To test class name in snake case
* To test class name in snake case
- * @param body client model (required)
+ * @param client client model (required)
* @return Client
* @throws ApiException if fails to make API call
*/
- public Client testClassname(Client body) throws ApiException {
- Object localVarPostBody = body;
+ public Client testClassname(Client client) throws ApiException {
+ Object localVarPostBody = client;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling testClassname");
+ // verify the required parameter 'client' is set
+ if (client == null) {
+ throw new ApiException(400, "Missing the required parameter 'client' when calling testClassname");
}
// create path and map variables
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/PetApi.java
index e905e029279..29dcfdff0f5 100644
--- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/PetApi.java
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/PetApi.java
@@ -54,15 +54,15 @@ public class PetApi {
/**
* Add a new pet to the store
*
- * @param body Pet object that needs to be added to the store (required)
+ * @param pet Pet object that needs to be added to the store (required)
* @throws ApiException if fails to make API call
*/
- public void addPet(Pet body) throws ApiException {
- Object localVarPostBody = body;
+ public void addPet(Pet pet) throws ApiException {
+ Object localVarPostBody = pet;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling addPet");
+ // verify the required parameter 'pet' is set
+ if (pet == null) {
+ throw new ApiException(400, "Missing the required parameter 'pet' when calling addPet");
}
// create path and map variables
@@ -339,15 +339,15 @@ public class PetApi {
/**
* Update an existing pet
*
- * @param body Pet object that needs to be added to the store (required)
+ * @param pet Pet object that needs to be added to the store (required)
* @throws ApiException if fails to make API call
*/
- public void updatePet(Pet body) throws ApiException {
- Object localVarPostBody = body;
+ public void updatePet(Pet pet) throws ApiException {
+ Object localVarPostBody = pet;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling updatePet");
+ // verify the required parameter 'pet' is set
+ if (pet == null) {
+ throw new ApiException(400, "Missing the required parameter 'pet' when calling updatePet");
}
// create path and map variables
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/StoreApi.java
index 2ea892fb8df..585e28f299c 100644
--- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/StoreApi.java
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/StoreApi.java
@@ -213,16 +213,16 @@ public class StoreApi {
/**
* Place an order for a pet
*
- * @param body order placed for purchasing the pet (required)
+ * @param order order placed for purchasing the pet (required)
* @return Order
* @throws ApiException if fails to make API call
*/
- public Order placeOrder(Order body) throws ApiException {
- Object localVarPostBody = body;
+ public Order placeOrder(Order order) throws ApiException {
+ Object localVarPostBody = order;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling placeOrder");
+ // verify the required parameter 'order' is set
+ if (order == null) {
+ throw new ApiException(400, "Missing the required parameter 'order' when calling placeOrder");
}
// create path and map variables
@@ -244,7 +244,7 @@ public class StoreApi {
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/UserApi.java
index 421e9604112..7dfe70d71a7 100644
--- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/UserApi.java
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/api/UserApi.java
@@ -52,15 +52,15 @@ public class UserApi {
/**
* Create user
* This can only be done by the logged in user.
- * @param body Created user object (required)
+ * @param user Created user object (required)
* @throws ApiException if fails to make API call
*/
- public void createUser(User body) throws ApiException {
- Object localVarPostBody = body;
+ public void createUser(User user) throws ApiException {
+ Object localVarPostBody = user;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling createUser");
+ // verify the required parameter 'user' is set
+ if (user == null) {
+ throw new ApiException(400, "Missing the required parameter 'user' when calling createUser");
}
// create path and map variables
@@ -82,7 +82,7 @@ public class UserApi {
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
@@ -106,15 +106,15 @@ public class UserApi {
/**
* Creates list of users with given input array
*
- * @param body List of user object (required)
+ * @param user List of user object (required)
* @throws ApiException if fails to make API call
*/
- public void createUsersWithArrayInput(List body) throws ApiException {
- Object localVarPostBody = body;
+ public void createUsersWithArrayInput(List user) throws ApiException {
+ Object localVarPostBody = user;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
+ // verify the required parameter 'user' is set
+ if (user == null) {
+ throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
}
// create path and map variables
@@ -136,7 +136,7 @@ public class UserApi {
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
@@ -160,15 +160,15 @@ public class UserApi {
/**
* Creates list of users with given input array
*
- * @param body List of user object (required)
+ * @param user List of user object (required)
* @throws ApiException if fails to make API call
*/
- public void createUsersWithListInput(List body) throws ApiException {
- Object localVarPostBody = body;
+ public void createUsersWithListInput(List user) throws ApiException {
+ Object localVarPostBody = user;
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling createUsersWithListInput");
+ // verify the required parameter 'user' is set
+ if (user == null) {
+ throw new ApiException(400, "Missing the required parameter 'user' when calling createUsersWithListInput");
}
// create path and map variables
@@ -190,7 +190,7 @@ public class UserApi {
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
@@ -439,20 +439,20 @@ public class UserApi {
* Updated user
* This can only be done by the logged in user.
* @param username name that need to be deleted (required)
- * @param body Updated user object (required)
+ * @param user Updated user object (required)
* @throws ApiException if fails to make API call
*/
- public void updateUser(String username, User body) throws ApiException {
- Object localVarPostBody = body;
+ public void updateUser(String username, User user) throws ApiException {
+ Object localVarPostBody = user;
// verify the required parameter 'username' is set
if (username == null) {
throw new ApiException(400, "Missing the required parameter 'username' when calling updateUser");
}
- // verify the required parameter 'body' is set
- if (body == null) {
- throw new ApiException(400, "Missing the required parameter 'body' when calling updateUser");
+ // verify the required parameter 'user' is set
+ if (user == null) {
+ throw new ApiException(400, "Missing the required parameter 'user' when calling updateUser");
}
// create path and map variables
@@ -475,7 +475,7 @@ public class UserApi {
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
-
+ "application/json"
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
index 3ff2f8823cc..2bfa18f61d9 100644
--- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
+++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java
@@ -20,9 +20,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
-import java.math.BigDecimal;
import java.util.HashMap;
-import java.util.List;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
@@ -31,403 +29,85 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
* AdditionalPropertiesClass
*/
@JsonPropertyOrder({
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_STRING,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_NUMBER,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_INTEGER,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_BOOLEAN,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_INTEGER,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_ARRAY_ANYTYPE,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_STRING,
- AdditionalPropertiesClass.JSON_PROPERTY_MAP_MAP_ANYTYPE,
- AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE1,
- AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE2,
- AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3
+ AdditionalPropertiesClass.JSON_PROPERTY_MAP_PROPERTY,
+ AdditionalPropertiesClass.JSON_PROPERTY_MAP_OF_MAP_PROPERTY
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class AdditionalPropertiesClass {
- public static final String JSON_PROPERTY_MAP_STRING = "map_string";
- private Map mapString = null;
+ public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property";
+ private Map mapProperty = null;
- public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
- private Map mapNumber = null;
-
- public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
- private Map mapInteger = null;
-
- public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
- private Map mapBoolean = null;
-
- public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
- private Map> mapArrayInteger = null;
-
- public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
- private Map> mapArrayAnytype = null;
-
- public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
- private Map> mapMapString = null;
-
- public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
- private Map> mapMapAnytype = null;
-
- public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
- private Object anytype1;
-
- public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
- private Object anytype2;
-
- public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
- private Object anytype3;
+ public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
+ private Map> mapOfMapProperty = null;
public AdditionalPropertiesClass() {
}
- public AdditionalPropertiesClass mapString(Map mapString) {
+ public AdditionalPropertiesClass mapProperty(Map mapProperty) {
- this.mapString = mapString;
+ this.mapProperty = mapProperty;
return this;
}
- public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) {
- if (this.mapString == null) {
- this.mapString = new HashMap<>();
+ public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
+ if (this.mapProperty == null) {
+ this.mapProperty = new HashMap<>();
}
- this.mapString.put(key, mapStringItem);
+ this.mapProperty.put(key, mapPropertyItem);
return this;
}
/**
- * Get mapString
- * @return mapString
+ * Get mapProperty
+ * @return mapProperty
**/
@javax.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_MAP_STRING)
+ @JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Map getMapString() {
- return mapString;
+ public Map getMapProperty() {
+ return mapProperty;
}
- @JsonProperty(JSON_PROPERTY_MAP_STRING)
+ @JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapString(Map mapString) {
- this.mapString = mapString;
+ public void setMapProperty(Map mapProperty) {
+ this.mapProperty = mapProperty;
}
- public AdditionalPropertiesClass mapNumber(Map mapNumber) {
+ public AdditionalPropertiesClass mapOfMapProperty(Map> mapOfMapProperty) {
- this.mapNumber = mapNumber;
+ this.mapOfMapProperty = mapOfMapProperty;
return this;
}
- public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) {
- if (this.mapNumber == null) {
- this.mapNumber = new HashMap<>();
+ public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map mapOfMapPropertyItem) {
+ if (this.mapOfMapProperty == null) {
+ this.mapOfMapProperty = new HashMap<>();
}
- this.mapNumber.put(key, mapNumberItem);
+ this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
return this;
}
/**
- * Get mapNumber
- * @return mapNumber
+ * Get mapOfMapProperty
+ * @return mapOfMapProperty
**/
@javax.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_MAP_NUMBER)
+ @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public Map getMapNumber() {
- return mapNumber;
+ public Map> getMapOfMapProperty() {
+ return mapOfMapProperty;
}
- @JsonProperty(JSON_PROPERTY_MAP_NUMBER)
+ @JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapNumber(Map mapNumber) {
- this.mapNumber = mapNumber;
- }
-
-
- public AdditionalPropertiesClass mapInteger(Map mapInteger) {
-
- this.mapInteger = mapInteger;
- return this;
- }
-
- public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) {
- if (this.mapInteger == null) {
- this.mapInteger = new HashMap<>();
- }
- this.mapInteger.put(key, mapIntegerItem);
- return this;
- }
-
- /**
- * Get mapInteger
- * @return mapInteger
- **/
- @javax.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_MAP_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getMapInteger() {
- return mapInteger;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MAP_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapInteger(Map mapInteger) {
- this.mapInteger = mapInteger;
- }
-
-
- public AdditionalPropertiesClass mapBoolean(Map mapBoolean) {
-
- this.mapBoolean = mapBoolean;
- return this;
- }
-
- public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) {
- if (this.mapBoolean == null) {
- this.mapBoolean = new HashMap<>();
- }
- this.mapBoolean.put(key, mapBooleanItem);
- return this;
- }
-
- /**
- * Get mapBoolean
- * @return mapBoolean
- **/
- @javax.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map getMapBoolean() {
- return mapBoolean;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapBoolean(Map mapBoolean) {
- this.mapBoolean = mapBoolean;
- }
-
-
- public AdditionalPropertiesClass mapArrayInteger(Map> mapArrayInteger) {
-
- this.mapArrayInteger = mapArrayInteger;
- return this;
- }
-
- public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List mapArrayIntegerItem) {
- if (this.mapArrayInteger == null) {
- this.mapArrayInteger = new HashMap<>();
- }
- this.mapArrayInteger.put(key, mapArrayIntegerItem);
- return this;
- }
-
- /**
- * Get mapArrayInteger
- * @return mapArrayInteger
- **/
- @javax.annotation.Nullable
- @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
-
- public Map> getMapArrayInteger() {
- return mapArrayInteger;
- }
-
-
- @JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
- @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
- public void setMapArrayInteger(Map> mapArrayInteger) {
- this.mapArrayInteger = mapArrayInteger;
- }
-
-
- public AdditionalPropertiesClass mapArrayAnytype(Map> mapArrayAnytype) {
-
- this.mapArrayAnytype = mapArrayAnytype;
- return this;
- }
-
- public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List