forked from loafle/openapi-generator-original
[java] improve petstore tests with openapi v3 spec (#16447)
* regenerate tests in jersey2-java8 client * update samples * fix java google api client tests * update java resteasy to use v3 spec for tests * update java vertx to test with v3 spec * update java resttemplate to test with v3 spec * add new files * regenerate jersey1 tests
This commit is contained in:
@@ -5,34 +5,33 @@ 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/Capitalization.md
|
||||
docs/Cat.md
|
||||
docs/Category.md
|
||||
docs/ClassModel.md
|
||||
docs/Client.md
|
||||
docs/DefaultApi.md
|
||||
docs/DeprecatedObject.md
|
||||
docs/Dog.md
|
||||
docs/EnumArrays.md
|
||||
docs/EnumClass.md
|
||||
docs/EnumTest.md
|
||||
docs/FakeApi.md
|
||||
docs/FakeBigDecimalMap200Response.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
|
||||
@@ -41,21 +40,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
|
||||
@@ -71,6 +74,7 @@ src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||
src/main/java/org/openapitools/client/ServerVariable.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
|
||||
@@ -82,31 +86,29 @@ 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/Capitalization.java
|
||||
src/main/java/org/openapitools/client/model/Cat.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/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/FakeBigDecimalMap200Response.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
|
||||
@@ -115,15 +117,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
|
||||
|
||||
@@ -91,10 +91,9 @@ public class AnotherFakeApiExample {
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
||||
UUID uuidTest = UUID.randomUUID(); // UUID | to test uuid example value
|
||||
Client body = new Client(); // Client | client model
|
||||
Client client = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.call123testSpecialTags(uuidTest, body);
|
||||
Client result = apiInstance.call123testSpecialTags(client);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||
@@ -115,15 +114,20 @@ 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* | [**fakeBigDecimalMap**](docs/FakeApi.md#fakeBigDecimalMap) | **GET** /fake/BigDecimalMap |
|
||||
*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
|
||||
@@ -155,31 +159,29 @@ 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)
|
||||
- [Capitalization](docs/Capitalization.md)
|
||||
- [Cat](docs/Cat.md)
|
||||
- [Category](docs/Category.md)
|
||||
- [ClassModel](docs/ClassModel.md)
|
||||
- [Client](docs/Client.md)
|
||||
- [DeprecatedObject](docs/DeprecatedObject.md)
|
||||
- [Dog](docs/Dog.md)
|
||||
- [EnumArrays](docs/EnumArrays.md)
|
||||
- [EnumClass](docs/EnumClass.md)
|
||||
- [EnumTest](docs/EnumTest.md)
|
||||
- [FakeBigDecimalMap200Response](docs/FakeBigDecimalMap200Response.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)
|
||||
@@ -188,18 +190,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)
|
||||
|
||||
|
||||
<a id="documentation-for-authorization"></a>
|
||||
@@ -240,6 +246,18 @@ Authentication schemes defined for the API:
|
||||
|
||||
- **Type**: HTTP basic authentication
|
||||
|
||||
<a id="bearer_test"></a>
|
||||
### bearer_test
|
||||
|
||||
|
||||
- **Type**: HTTP Bearer Token authentication (JWT)
|
||||
|
||||
<a id="http_signature_test"></a>
|
||||
### http_signature_test
|
||||
|
||||
|
||||
- **Type**: HTTP signature authentication
|
||||
|
||||
|
||||
## Recommendation
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -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] |
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
# AllOfWithSingleRef
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------ | ------------- | ------------- | -------------|
|
||||
|**username** | **String** | | [optional] |
|
||||
|**singleRefType** | **SingleRefType** | | [optional] |
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
## call123testSpecialTags
|
||||
|
||||
> Client call123testSpecialTags(uuidTest, body)
|
||||
> Client call123testSpecialTags(client)
|
||||
|
||||
To test special tags
|
||||
|
||||
@@ -32,10 +32,9 @@ public class Example {
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
AnotherFakeApi apiInstance = new AnotherFakeApi(defaultClient);
|
||||
UUID uuidTest = UUID.randomUUID(); // UUID | to test uuid example value
|
||||
Client body = new Client(); // Client | client model
|
||||
Client client = new Client(); // Client | client model
|
||||
try {
|
||||
Client result = apiInstance.call123testSpecialTags(uuidTest, body);
|
||||
Client result = apiInstance.call123testSpecialTags(client);
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling AnotherFakeApi#call123testSpecialTags");
|
||||
@@ -53,8 +52,7 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **uuidTest** | **UUID**| to test uuid example value | |
|
||||
| **body** | [**Client**](Client.md)| client model | |
|
||||
| **client** | [**Client**](Client.md)| client model | |
|
||||
|
||||
### Return type
|
||||
|
||||
|
||||
@@ -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 | - |
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
# DeprecatedObject
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------ | ------------- | ------------- | -------------|
|
||||
|**name** | **String** | | [optional] |
|
||||
|
||||
|
||||
|
||||
@@ -12,6 +12,9 @@
|
||||
|**enumInteger** | [**EnumIntegerEnum**](#EnumIntegerEnum) | | [optional] |
|
||||
|**enumNumber** | [**EnumNumberEnum**](#EnumNumberEnum) | | [optional] |
|
||||
|**outerEnum** | **OuterEnum** | | [optional] |
|
||||
|**outerEnumInteger** | **OuterEnumInteger** | | [optional] |
|
||||
|**outerEnumDefaultValue** | **OuterEnumDefaultValue** | | [optional] |
|
||||
|**outerEnumIntegerDefaultValue** | **OuterEnumIntegerDefaultValue** | | [optional] |
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,15 +4,19 @@ 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 |
|
||||
| [**fakeBigDecimalMap**](FakeApi.md#fakeBigDecimalMap) | **GET** /fake/BigDecimalMap | |
|
||||
| [**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 +25,13 @@ All URIs are relative to *http://petstore.swagger.io:80/v2*
|
||||
|
||||
|
||||
|
||||
## createXmlItem
|
||||
## fakeBigDecimalMap
|
||||
|
||||
> createXmlItem(xmlItem)
|
||||
> FakeBigDecimalMap200Response fakeBigDecimalMap()
|
||||
|
||||
creates an XmlItem
|
||||
|
||||
this route creates an XmlItem
|
||||
|
||||
for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
|
||||
|
||||
### Example
|
||||
|
||||
@@ -45,11 +49,135 @@ 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);
|
||||
FakeBigDecimalMap200Response result = apiInstance.fakeBigDecimalMap();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
System.err.println("Exception when calling FakeApi#createXmlItem");
|
||||
System.err.println("Exception when calling FakeApi#fakeBigDecimalMap");
|
||||
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
|
||||
|
||||
[**FakeBigDecimalMap200Response**](FakeBigDecimalMap200Response.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: */*
|
||||
|
||||
|
||||
### HTTP response details
|
||||
| Status code | Description | Response headers |
|
||||
|-------------|-------------|------------------|
|
||||
| **200** | successful operation | - |
|
||||
|
||||
|
||||
## fakeHealthGet
|
||||
|
||||
> HealthCheckResult fakeHealthGet()
|
||||
|
||||
Health check endpoint
|
||||
|
||||
### 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);
|
||||
try {
|
||||
HealthCheckResult result = apiInstance.fakeHealthGet();
|
||||
System.out.println(result);
|
||||
} catch (ApiException e) {
|
||||
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 +192,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 +202,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 +272,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
|
||||
@@ -154,7 +284,7 @@ No authorization required
|
||||
|
||||
## fakeOuterCompositeSerialize
|
||||
|
||||
> OuterComposite fakeOuterCompositeSerialize(body)
|
||||
> OuterComposite fakeOuterCompositeSerialize(outerComposite)
|
||||
|
||||
|
||||
|
||||
@@ -176,9 +306,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 +326,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 +338,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
|
||||
@@ -274,7 +404,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
|
||||
@@ -340,7 +470,7 @@ No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: */*
|
||||
|
||||
|
||||
@@ -350,13 +480,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 +504,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 +654,7 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | |
|
||||
| **fileSchemaTestClass** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| | |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -417,7 +678,7 @@ No authorization required
|
||||
|
||||
## testBodyWithQueryParams
|
||||
|
||||
> testBodyWithQueryParams(query, body)
|
||||
> testBodyWithQueryParams(query, user)
|
||||
|
||||
|
||||
|
||||
@@ -438,9 +699,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 +719,7 @@ public class Example {
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **query** | **String**| | |
|
||||
| **body** | [**User**](User.md)| | |
|
||||
| **user** | [**User**](User.md)| | |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -482,7 +743,7 @@ No authorization required
|
||||
|
||||
## testClientModel
|
||||
|
||||
> Client testClientModel(body)
|
||||
> Client testClientModel(client)
|
||||
|
||||
To test \"client\" model
|
||||
|
||||
@@ -504,9 +765,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 +785,7 @@ public class Example {
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------- | ------------- | ------------- | -------------|
|
||||
| **body** | [**Client**](Client.md)| client model | |
|
||||
| **client** | [**Client**](Client.md)| client model | |
|
||||
|
||||
### Return type
|
||||
|
||||
@@ -550,9 +811,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 +907,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 +935,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<EnumClass> enumQueryModelArray = Arrays.asList(-efg); // List<EnumClass> |
|
||||
List<String> enumFormStringArray = Arrays.asList("$"); // List<String> | 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 +962,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 +1002,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 +1010,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 +1053,7 @@ null (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
[bearer_test](../README.md#bearer_test)
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
@@ -801,10 +1069,12 @@ No authorization required
|
||||
|
||||
## testInlineAdditionalProperties
|
||||
|
||||
> testInlineAdditionalProperties(param)
|
||||
> testInlineAdditionalProperties(requestBody)
|
||||
|
||||
test inline additionalProperties
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -821,9 +1091,9 @@ public class Example {
|
||||
defaultClient.setBasePath("http://petstore.swagger.io:80/v2");
|
||||
|
||||
FakeApi apiInstance = new FakeApi(defaultClient);
|
||||
Map<String, String> param = new HashMap(); // Map<String, String> | request body
|
||||
Map<String, String> requestBody = new HashMap(); // Map<String, String> | 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 +1110,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 +1138,8 @@ No authorization required
|
||||
|
||||
test json serialization of form data
|
||||
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```java
|
||||
@@ -929,7 +1201,7 @@ No authorization required
|
||||
|
||||
## testQueryParameterCollectionFormat
|
||||
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context)
|
||||
> testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language)
|
||||
|
||||
|
||||
|
||||
@@ -956,8 +1228,10 @@ public class Example {
|
||||
List<String> http = Arrays.asList(); // List<String> |
|
||||
List<String> url = Arrays.asList(); // List<String> |
|
||||
List<String> context = Arrays.asList(); // List<String> |
|
||||
String allowEmpty = "allowEmpty_example"; // String |
|
||||
Map<String, String> language = new HashMap(); // Map<String, String> |
|
||||
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 +1253,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
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
|
||||
# FakeBigDecimalMap200Response
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------ | ------------- | ------------- | -------------|
|
||||
|**someId** | **BigDecimal** | | [optional] |
|
||||
|**someMap** | **Map<String, BigDecimal>** | | [optional] |
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
# Foo
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------ | ------------- | ------------- | -------------|
|
||||
|**bar** | **String** | | [optional] |
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
# FooGetDefaultResponse
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------ | ------------- | ------------- | -------------|
|
||||
|**string** | [**Foo**](Foo.md) | | [optional] |
|
||||
|
||||
|
||||
|
||||
@@ -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] |
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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] |
|
||||
|
||||
|
||||
|
||||
@@ -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] |
|
||||
|
||||
|
||||
|
||||
@@ -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] |
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
# OuterEnumDefaultValue
|
||||
|
||||
## Enum
|
||||
|
||||
|
||||
* `PLACED` (value: `"placed"`)
|
||||
|
||||
* `APPROVED` (value: `"approved"`)
|
||||
|
||||
* `DELIVERED` (value: `"delivered"`)
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
# OuterEnumInteger
|
||||
|
||||
## Enum
|
||||
|
||||
|
||||
* `NUMBER_0` (value: `0`)
|
||||
|
||||
* `NUMBER_1` (value: `1`)
|
||||
|
||||
* `NUMBER_2` (value: `2`)
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
# OuterEnumIntegerDefaultValue
|
||||
|
||||
## Enum
|
||||
|
||||
|
||||
* `NUMBER_0` (value: `0`)
|
||||
|
||||
* `NUMBER_1` (value: `1`)
|
||||
|
||||
* `NUMBER_2` (value: `2`)
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
# OuterObjectWithEnumProperty
|
||||
|
||||
|
||||
## Properties
|
||||
|
||||
| Name | Type | Description | Notes |
|
||||
|------------ | ------------- | ------------- | -------------|
|
||||
|**value** | **OuterEnumInteger** | | |
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
# SingleRefType
|
||||
|
||||
## Enum
|
||||
|
||||
|
||||
* `ADMIN` (value: `"admin"`)
|
||||
|
||||
* `USER` (value: `"user"`)
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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<User> body = Arrays.asList(); // List<User> | List of user object
|
||||
List<User> user = Arrays.asList(); // List<User> | 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<User> body = Arrays.asList(); // List<User> | List of user object
|
||||
List<User> user = Arrays.asList(); // List<User> | 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
|
||||
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ import java.time.OffsetDateTime;
|
||||
|
||||
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;
|
||||
|
||||
@@ -119,6 +120,7 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
authentications.put("api_key", new ApiKeyAuth("header", "api_key"));
|
||||
authentications.put("api_key_query", new ApiKeyAuth("query", "api_key_query"));
|
||||
authentications.put("http_basic_test", new HttpBasicAuth());
|
||||
authentications.put("bearer_test", new HttpBearerAuth("bearer"));
|
||||
// Prevent the authentications from being modified.
|
||||
authentications = Collections.unmodifiableMap(authentications);
|
||||
}
|
||||
@@ -162,6 +164,21 @@ public class ApiClient extends JavaTimeFormatter {
|
||||
return authentications.get(authName);
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method to set token for HTTP bearer authentication.
|
||||
*
|
||||
* @param bearerToken the token
|
||||
*/
|
||||
public void setBearerToken(String bearerToken) {
|
||||
for (Authentication auth : authentications.values()) {
|
||||
if (auth instanceof HttpBearerAuth) {
|
||||
((HttpBearerAuth) auth).setBearerToken(bearerToken);
|
||||
return;
|
||||
}
|
||||
}
|
||||
throw new RuntimeException("No Bearer authentication configured!");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Helper method to set username for the first HTTP basic authentication.
|
||||
|
||||
@@ -3,7 +3,6 @@ package org.openapitools.client.api;
|
||||
import org.openapitools.client.ApiClient;
|
||||
|
||||
import org.openapitools.client.model.Client;
|
||||
import java.util.UUID;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
@@ -50,35 +49,28 @@ public class AnotherFakeApi {
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param uuidTest to test uuid example value (required)
|
||||
* @param body client model (required)
|
||||
* @param client client model (required)
|
||||
* @return Client
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public Client call123testSpecialTags(UUID uuidTest, Client body) throws RestClientException {
|
||||
return call123testSpecialTagsWithHttpInfo(uuidTest, body).getBody();
|
||||
public Client call123testSpecialTags(Client client) throws RestClientException {
|
||||
return call123testSpecialTagsWithHttpInfo(client).getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test special tags
|
||||
* To test special tags and operation ID starting with number
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param uuidTest to test uuid example value (required)
|
||||
* @param body client model (required)
|
||||
* @param client client model (required)
|
||||
* @return ResponseEntity<Client>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Client> call123testSpecialTagsWithHttpInfo(UUID uuidTest, Client body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Client> call123testSpecialTagsWithHttpInfo(Client client) throws RestClientException {
|
||||
Object localVarPostBody = client;
|
||||
|
||||
// verify the required parameter 'uuidTest' is set
|
||||
if (uuidTest == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'uuidTest' when calling call123testSpecialTags");
|
||||
}
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling call123testSpecialTags");
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling call123testSpecialTags");
|
||||
}
|
||||
|
||||
|
||||
@@ -87,9 +79,6 @@ public class AnotherFakeApi {
|
||||
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
if (uuidTest != null)
|
||||
localVarHeaderParams.add("uuid_test", apiClient.parameterToString(uuidTest));
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
package org.openapitools.client.api;
|
||||
|
||||
import org.openapitools.client.ApiClient;
|
||||
|
||||
import org.openapitools.client.model.FooGetDefaultResponse;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.util.LinkedMultiValueMap;
|
||||
import org.springframework.util.MultiValueMap;
|
||||
import org.springframework.web.client.RestClientException;
|
||||
import org.springframework.web.client.HttpClientErrorException;
|
||||
import org.springframework.core.ParameterizedTypeReference;
|
||||
import org.springframework.core.io.FileSystemResource;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.HttpMethod;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
public class DefaultApi {
|
||||
private ApiClient apiClient;
|
||||
|
||||
public DefaultApi() {
|
||||
this(new ApiClient());
|
||||
}
|
||||
|
||||
public DefaultApi(ApiClient apiClient) {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
public ApiClient getApiClient() {
|
||||
return apiClient;
|
||||
}
|
||||
|
||||
public void setApiClient(ApiClient apiClient) {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* <p><b>0</b> - response
|
||||
* @return FooGetDefaultResponse
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public FooGetDefaultResponse fooGet() throws RestClientException {
|
||||
return fooGetWithHttpInfo().getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* <p><b>0</b> - response
|
||||
* @return ResponseEntity<FooGetDefaultResponse>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<FooGetDefaultResponse> fooGetWithHttpInfo() throws RestClientException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
|
||||
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
ParameterizedTypeReference<FooGetDefaultResponse> localReturnType = new ParameterizedTypeReference<FooGetDefaultResponse>() {};
|
||||
return apiClient.invokeAPI("/foo", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||
}
|
||||
}
|
||||
@@ -4,13 +4,17 @@ import org.openapitools.client.ApiClient;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.openapitools.client.model.Client;
|
||||
import org.openapitools.client.model.EnumClass;
|
||||
import org.openapitools.client.model.FakeBigDecimalMap200Response;
|
||||
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.Collections;
|
||||
import java.util.HashMap;
|
||||
@@ -54,30 +58,112 @@ public class FakeApi {
|
||||
}
|
||||
|
||||
/**
|
||||
* creates an XmlItem
|
||||
* this route creates an XmlItem
|
||||
*
|
||||
* for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param xmlItem XmlItem Body (required)
|
||||
* @return FakeBigDecimalMap200Response
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void createXmlItem(XmlItem xmlItem) throws RestClientException {
|
||||
createXmlItemWithHttpInfo(xmlItem);
|
||||
public FakeBigDecimalMap200Response fakeBigDecimalMap() throws RestClientException {
|
||||
return fakeBigDecimalMapWithHttpInfo().getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
* creates an XmlItem
|
||||
* this route creates an XmlItem
|
||||
*
|
||||
* for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param xmlItem XmlItem Body (required)
|
||||
* @return ResponseEntity<FakeBigDecimalMap200Response>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<FakeBigDecimalMap200Response> fakeBigDecimalMapWithHttpInfo() throws RestClientException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
|
||||
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"*/*"
|
||||
};
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
ParameterizedTypeReference<FakeBigDecimalMap200Response> localReturnType = new ParameterizedTypeReference<FakeBigDecimalMap200Response>() {};
|
||||
return apiClient.invokeAPI("/fake/BigDecimalMap", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||
}
|
||||
/**
|
||||
* Health check endpoint
|
||||
*
|
||||
* <p><b>200</b> - The instance started successfully
|
||||
* @return HealthCheckResult
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public HealthCheckResult fakeHealthGet() throws RestClientException {
|
||||
return fakeHealthGetWithHttpInfo().getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
* Health check endpoint
|
||||
*
|
||||
* <p><b>200</b> - The instance started successfully
|
||||
* @return ResponseEntity<HealthCheckResult>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<HealthCheckResult> fakeHealthGetWithHttpInfo() throws RestClientException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
|
||||
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"application/json"
|
||||
};
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
ParameterizedTypeReference<HealthCheckResult> localReturnType = new ParameterizedTypeReference<HealthCheckResult>() {};
|
||||
return apiClient.invokeAPI("/fake/health", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||
}
|
||||
/**
|
||||
* test http signature authentication
|
||||
*
|
||||
* <p><b>200</b> - The instance started successfully
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param query1 query parameter (optional)
|
||||
* @param header1 header parameter (optional)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws RestClientException {
|
||||
fakeHttpSignatureTestWithHttpInfo(pet, query1, header1);
|
||||
}
|
||||
|
||||
/**
|
||||
* test http signature authentication
|
||||
*
|
||||
* <p><b>200</b> - The instance started successfully
|
||||
* @param pet Pet object that needs to be added to the store (required)
|
||||
* @param query1 query parameter (optional)
|
||||
* @param header1 header parameter (optional)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> createXmlItemWithHttpInfo(XmlItem xmlItem) throws RestClientException {
|
||||
Object localVarPostBody = xmlItem;
|
||||
public ResponseEntity<Void> fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws RestClientException {
|
||||
Object localVarPostBody = pet;
|
||||
|
||||
// verify the required parameter 'xmlItem' is set
|
||||
if (xmlItem == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'xmlItem' when calling createXmlItem");
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pet' when calling fakeHttpSignatureTest");
|
||||
}
|
||||
|
||||
|
||||
@@ -86,17 +172,23 @@ public class FakeApi {
|
||||
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "query_1", query1));
|
||||
|
||||
|
||||
if (header1 != null)
|
||||
localVarHeaderParams.add("header_1", apiClient.parameterToString(header1));
|
||||
|
||||
final String[] localVarAccepts = { };
|
||||
final List<MediaType> 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"
|
||||
"application/json", "application/xml"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
String[] localVarAuthNames = new String[] { "http_signature_test" };
|
||||
|
||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||
return apiClient.invokeAPI("/fake/create_xml_item", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||
return apiClient.invokeAPI("/fake/http-signature-test", HttpMethod.GET, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
@@ -131,7 +223,9 @@ public class FakeApi {
|
||||
"*/*"
|
||||
};
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
@@ -143,24 +237,24 @@ public class FakeApi {
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
* <p><b>200</b> - Output composite
|
||||
* @param body Input composite as post body (optional)
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @return OuterComposite
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite body) throws RestClientException {
|
||||
return fakeOuterCompositeSerializeWithHttpInfo(body).getBody();
|
||||
public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientException {
|
||||
return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Test serialization of object with outer number type
|
||||
* <p><b>200</b> - Output composite
|
||||
* @param body Input composite as post body (optional)
|
||||
* @param outerComposite Input composite as post body (optional)
|
||||
* @return ResponseEntity<OuterComposite>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<OuterComposite> fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws RestClientException {
|
||||
Object localVarPostBody = outerComposite;
|
||||
|
||||
|
||||
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||
@@ -172,7 +266,9 @@ public class FakeApi {
|
||||
"*/*"
|
||||
};
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
@@ -213,7 +309,9 @@ public class FakeApi {
|
||||
"*/*"
|
||||
};
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
@@ -254,7 +352,9 @@ public class FakeApi {
|
||||
"*/*"
|
||||
};
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
@@ -264,29 +364,122 @@ public class FakeApi {
|
||||
}
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* <p><b>200</b> - Success
|
||||
* @param body (required)
|
||||
* Test serialization of enum (int) properties with examples
|
||||
* <p><b>200</b> - Output enum (int)
|
||||
* @param outerObjectWithEnumProperty Input enum (int) as post body (required)
|
||||
* @return OuterObjectWithEnumProperty
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass body) throws RestClientException {
|
||||
testBodyWithFileSchemaWithHttpInfo(body);
|
||||
public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException {
|
||||
return fakePropertyEnumIntegerSerializeWithHttpInfo(outerObjectWithEnumProperty).getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* Test serialization of enum (int) properties with examples
|
||||
* <p><b>200</b> - Output enum (int)
|
||||
* @param outerObjectWithEnumProperty Input enum (int) as post body (required)
|
||||
* @return ResponseEntity<OuterObjectWithEnumProperty>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<OuterObjectWithEnumProperty> fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException {
|
||||
Object localVarPostBody = outerObjectWithEnumProperty;
|
||||
|
||||
// verify the required parameter 'outerObjectWithEnumProperty' is set
|
||||
if (outerObjectWithEnumProperty == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'outerObjectWithEnumProperty' when calling fakePropertyEnumIntegerSerialize");
|
||||
}
|
||||
|
||||
|
||||
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = {
|
||||
"*/*"
|
||||
};
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
ParameterizedTypeReference<OuterObjectWithEnumProperty> localReturnType = new ParameterizedTypeReference<OuterObjectWithEnumProperty>() {};
|
||||
return apiClient.invokeAPI("/fake/property/enum-int", HttpMethod.POST, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* For this test, the body has to be a binary file.
|
||||
* <p><b>200</b> - Success
|
||||
* @param body (required)
|
||||
* @param body image to upload (required)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void testBodyWithBinary(File body) throws RestClientException {
|
||||
testBodyWithBinaryWithHttpInfo(body);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* For this test, the body has to be a binary file.
|
||||
* <p><b>200</b> - Success
|
||||
* @param body image to upload (required)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws RestClientException {
|
||||
public ResponseEntity<Void> testBodyWithBinaryWithHttpInfo(File body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithFileSchema");
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithBinary");
|
||||
}
|
||||
|
||||
|
||||
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
final String[] localVarAccepts = { };
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = {
|
||||
"image/png"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||
return apiClient.invokeAPI("/fake/body-with-binary", HttpMethod.PUT, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request must reference a schema named `File`.
|
||||
* <p><b>200</b> - Success
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientException {
|
||||
testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* For this test, the body for this request must reference a schema named `File`.
|
||||
* <p><b>200</b> - Success
|
||||
* @param fileSchemaTestClass (required)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws RestClientException {
|
||||
Object localVarPostBody = fileSchemaTestClass;
|
||||
|
||||
// verify the required parameter 'fileSchemaTestClass' is set
|
||||
if (fileSchemaTestClass == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'fileSchemaTestClass' when calling testBodyWithFileSchema");
|
||||
}
|
||||
|
||||
|
||||
@@ -312,11 +505,11 @@ public class FakeApi {
|
||||
*
|
||||
* <p><b>200</b> - Success
|
||||
* @param query (required)
|
||||
* @param body (required)
|
||||
* @param user (required)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void testBodyWithQueryParams(String query, User body) throws RestClientException {
|
||||
testBodyWithQueryParamsWithHttpInfo(query, body);
|
||||
public void testBodyWithQueryParams(String query, User user) throws RestClientException {
|
||||
testBodyWithQueryParamsWithHttpInfo(query, user);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -324,21 +517,21 @@ public class FakeApi {
|
||||
*
|
||||
* <p><b>200</b> - Success
|
||||
* @param query (required)
|
||||
* @param body (required)
|
||||
* @param user (required)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> testBodyWithQueryParamsWithHttpInfo(String query, User body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Void> testBodyWithQueryParamsWithHttpInfo(String query, User user) throws RestClientException {
|
||||
Object localVarPostBody = user;
|
||||
|
||||
// verify the required parameter 'query' is set
|
||||
if (query == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'query' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testBodyWithQueryParams");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling testBodyWithQueryParams");
|
||||
}
|
||||
|
||||
|
||||
@@ -366,28 +559,28 @@ public class FakeApi {
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param body client model (required)
|
||||
* @param client client model (required)
|
||||
* @return Client
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public Client testClientModel(Client body) throws RestClientException {
|
||||
return testClientModelWithHttpInfo(body).getBody();
|
||||
public Client testClientModel(Client client) throws RestClientException {
|
||||
return testClientModelWithHttpInfo(client).getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test \"client\" model
|
||||
* To test \"client\" model
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param body client model (required)
|
||||
* @param client client model (required)
|
||||
* @return ResponseEntity<Client>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Client> testClientModelWithHttpInfo(Client body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Client> testClientModelWithHttpInfo(Client client) throws RestClientException {
|
||||
Object localVarPostBody = client;
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testClientModel");
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testClientModel");
|
||||
}
|
||||
|
||||
|
||||
@@ -411,8 +604,8 @@ public class FakeApi {
|
||||
return apiClient.invokeAPI("/fake", HttpMethod.PATCH, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||
}
|
||||
/**
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* <p><b>400</b> - Invalid username supplied
|
||||
* <p><b>404</b> - User not found
|
||||
* @param number None (required)
|
||||
@@ -436,8 +629,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 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* <p><b>400</b> - Invalid username supplied
|
||||
* <p><b>404</b> - User not found
|
||||
* @param number None (required)
|
||||
@@ -538,12 +731,13 @@ public class FakeApi {
|
||||
* @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, default to $)
|
||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws RestClientException {
|
||||
testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
public void testEnumParameters(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws RestClientException {
|
||||
testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -557,12 +751,13 @@ public class FakeApi {
|
||||
* @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, default to $)
|
||||
* @param enumFormString Form parameter enum test (string) (optional, default to -efg)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<String> enumFormStringArray, String enumFormString) throws RestClientException {
|
||||
public ResponseEntity<Void> testEnumParametersWithHttpInfo(List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List<EnumClass> enumQueryModelArray, List<String> enumFormStringArray, String enumFormString) throws RestClientException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
|
||||
@@ -571,10 +766,11 @@ public class FakeApi {
|
||||
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "enum_query_string_array", enumQueryStringArray));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "enum_query_string_array", enumQueryStringArray));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "enum_query_string", enumQueryString));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "enum_query_integer", enumQueryInteger));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "enum_query_double", enumQueryDouble));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "enum_query_model_array", enumQueryModelArray));
|
||||
|
||||
|
||||
if (enumHeaderStringArray != null)
|
||||
@@ -668,7 +864,7 @@ public class FakeApi {
|
||||
final String[] localVarContentTypes = { };
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
String[] localVarAuthNames = new String[] { "bearer_test" };
|
||||
|
||||
ParameterizedTypeReference<Void> localReturnType = new ParameterizedTypeReference<Void>() {};
|
||||
return apiClient.invokeAPI("/fake", HttpMethod.DELETE, Collections.<String, Object>emptyMap(), localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localReturnType);
|
||||
@@ -677,27 +873,27 @@ public class FakeApi {
|
||||
* test inline additionalProperties
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param param request body (required)
|
||||
* @param requestBody request body (required)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void testInlineAdditionalProperties(Map<String, String> param) throws RestClientException {
|
||||
testInlineAdditionalPropertiesWithHttpInfo(param);
|
||||
public void testInlineAdditionalProperties(Map<String, String> requestBody) throws RestClientException {
|
||||
testInlineAdditionalPropertiesWithHttpInfo(requestBody);
|
||||
}
|
||||
|
||||
/**
|
||||
* test inline additionalProperties
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param param request body (required)
|
||||
* @param requestBody request body (required)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> param) throws RestClientException {
|
||||
Object localVarPostBody = param;
|
||||
public ResponseEntity<Void> testInlineAdditionalPropertiesWithHttpInfo(Map<String, String> requestBody) throws RestClientException {
|
||||
Object localVarPostBody = requestBody;
|
||||
|
||||
// verify the required parameter 'param' is set
|
||||
if (param == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'param' when calling testInlineAdditionalProperties");
|
||||
// verify the required parameter 'requestBody' is set
|
||||
if (requestBody == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'requestBody' when calling testInlineAdditionalProperties");
|
||||
}
|
||||
|
||||
|
||||
@@ -784,10 +980,12 @@ public class FakeApi {
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param allowEmpty (required)
|
||||
* @param language (optional)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws RestClientException {
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context);
|
||||
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws RestClientException {
|
||||
testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -799,10 +997,12 @@ public class FakeApi {
|
||||
* @param http (required)
|
||||
* @param url (required)
|
||||
* @param context (required)
|
||||
* @param allowEmpty (required)
|
||||
* @param language (optional)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws RestClientException {
|
||||
public ResponseEntity<Void> testQueryParameterCollectionFormatWithHttpInfo(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context, String allowEmpty, Map<String, String> language) throws RestClientException {
|
||||
Object localVarPostBody = null;
|
||||
|
||||
// verify the required parameter 'pipe' is set
|
||||
@@ -830,17 +1030,24 @@ public class FakeApi {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
// verify the required parameter 'allowEmpty' is set
|
||||
if (allowEmpty == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'allowEmpty' when calling testQueryParameterCollectionFormat");
|
||||
}
|
||||
|
||||
|
||||
final MultiValueMap<String, String> localVarQueryParams = new LinkedMultiValueMap<String, String>();
|
||||
final HttpHeaders localVarHeaderParams = new HttpHeaders();
|
||||
final MultiValueMap<String, String> localVarCookieParams = new LinkedMultiValueMap<String, String>();
|
||||
final MultiValueMap<String, Object> localVarFormParams = new LinkedMultiValueMap<String, Object>();
|
||||
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "pipe", pipe));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("pipes".toUpperCase(Locale.ROOT)), "pipe", pipe));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "ioutil", ioutil));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("ssv".toUpperCase(Locale.ROOT)), "http", http));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("csv".toUpperCase(Locale.ROOT)), "url", url));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(ApiClient.CollectionFormat.valueOf("multi".toUpperCase(Locale.ROOT)), "context", context));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "language", language));
|
||||
localVarQueryParams.putAll(apiClient.parameterToMultiValueMap(null, "allowEmpty", allowEmpty));
|
||||
|
||||
|
||||
final String[] localVarAccepts = { };
|
||||
|
||||
@@ -49,28 +49,28 @@ public class FakeClassnameTags123Api {
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param body client model (required)
|
||||
* @param client client model (required)
|
||||
* @return Client
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public Client testClassname(Client body) throws RestClientException {
|
||||
return testClassnameWithHttpInfo(body).getBody();
|
||||
public Client testClassname(Client client) throws RestClientException {
|
||||
return testClassnameWithHttpInfo(client).getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
* To test class name in snake case
|
||||
* To test class name in snake case
|
||||
* <p><b>200</b> - successful operation
|
||||
* @param body client model (required)
|
||||
* @param client client model (required)
|
||||
* @return ResponseEntity<Client>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Client> testClassnameWithHttpInfo(Client body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Client> testClassnameWithHttpInfo(Client client) throws RestClientException {
|
||||
Object localVarPostBody = client;
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling testClassname");
|
||||
// verify the required parameter 'client' is set
|
||||
if (client == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'client' when calling testClassname");
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -51,30 +51,30 @@ public class PetApi {
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @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 RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void addPet(Pet body) throws RestClientException {
|
||||
addPetWithHttpInfo(body);
|
||||
public void addPet(Pet pet) throws RestClientException {
|
||||
addPetWithHttpInfo(pet);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new pet to the store
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @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)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> addPetWithHttpInfo(Pet body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Void> addPetWithHttpInfo(Pet pet) throws RestClientException {
|
||||
Object localVarPostBody = pet;
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling addPet");
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pet' when calling addPet");
|
||||
}
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ public class PetApi {
|
||||
/**
|
||||
* Deletes a pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - Invalid pet value
|
||||
* @param petId Pet id to delete (required)
|
||||
* @param apiKey (optional)
|
||||
@@ -111,7 +111,7 @@ public class PetApi {
|
||||
/**
|
||||
* Deletes a pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - Invalid pet value
|
||||
* @param petId Pet id to delete (required)
|
||||
* @param apiKey (optional)
|
||||
@@ -310,34 +310,34 @@ public class PetApi {
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - Invalid ID supplied
|
||||
* <p><b>404</b> - Pet not found
|
||||
* <p><b>405</b> - Validation exception
|
||||
* @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 RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void updatePet(Pet body) throws RestClientException {
|
||||
updatePetWithHttpInfo(body);
|
||||
public void updatePet(Pet pet) throws RestClientException {
|
||||
updatePetWithHttpInfo(pet);
|
||||
}
|
||||
|
||||
/**
|
||||
* Update an existing pet
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>400</b> - Invalid ID supplied
|
||||
* <p><b>404</b> - Pet not found
|
||||
* <p><b>405</b> - Validation exception
|
||||
* @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)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> updatePetWithHttpInfo(Pet body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Void> updatePetWithHttpInfo(Pet pet) throws RestClientException {
|
||||
Object localVarPostBody = pet;
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling updatePet");
|
||||
// verify the required parameter 'pet' is set
|
||||
if (pet == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'pet' when calling updatePet");
|
||||
}
|
||||
|
||||
|
||||
@@ -361,6 +361,7 @@ public class PetApi {
|
||||
/**
|
||||
* Updates a pet in the store with form data
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param petId ID of pet that needs to be updated (required)
|
||||
* @param name Updated name of the pet (optional)
|
||||
@@ -374,6 +375,7 @@ public class PetApi {
|
||||
/**
|
||||
* Updates a pet in the store with form data
|
||||
*
|
||||
* <p><b>200</b> - Successful operation
|
||||
* <p><b>405</b> - Invalid input
|
||||
* @param petId ID of pet that needs to be updated (required)
|
||||
* @param name Updated name of the pet (optional)
|
||||
|
||||
@@ -190,12 +190,12 @@ public class StoreApi {
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid Order
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @return Order
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public Order placeOrder(Order body) throws RestClientException {
|
||||
return placeOrderWithHttpInfo(body).getBody();
|
||||
public Order placeOrder(Order order) throws RestClientException {
|
||||
return placeOrderWithHttpInfo(order).getBody();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -203,16 +203,16 @@ public class StoreApi {
|
||||
*
|
||||
* <p><b>200</b> - successful operation
|
||||
* <p><b>400</b> - Invalid Order
|
||||
* @param body order placed for purchasing the pet (required)
|
||||
* @param order order placed for purchasing the pet (required)
|
||||
* @return ResponseEntity<Order>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Order> placeOrderWithHttpInfo(Order body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Order> placeOrderWithHttpInfo(Order order) throws RestClientException {
|
||||
Object localVarPostBody = order;
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling placeOrder");
|
||||
// verify the required parameter 'order' is set
|
||||
if (order == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'order' when calling placeOrder");
|
||||
}
|
||||
|
||||
|
||||
@@ -225,7 +225,9 @@ public class StoreApi {
|
||||
"application/xml", "application/json"
|
||||
};
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
@@ -50,27 +50,27 @@ public class UserApi {
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param body Created user object (required)
|
||||
* @param user Created user object (required)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void createUser(User body) throws RestClientException {
|
||||
createUserWithHttpInfo(body);
|
||||
public void createUser(User user) throws RestClientException {
|
||||
createUserWithHttpInfo(user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Create user
|
||||
* This can only be done by the logged in user.
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param body Created user object (required)
|
||||
* @param user Created user object (required)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> createUserWithHttpInfo(User body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Void> createUserWithHttpInfo(User user) throws RestClientException {
|
||||
Object localVarPostBody = user;
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUser");
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,9 @@ public class UserApi {
|
||||
|
||||
final String[] localVarAccepts = { };
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
@@ -93,27 +95,27 @@ public class UserApi {
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param body List of user object (required)
|
||||
* @param user List of user object (required)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void createUsersWithArrayInput(List<User> body) throws RestClientException {
|
||||
createUsersWithArrayInputWithHttpInfo(body);
|
||||
public void createUsersWithArrayInput(List<User> user) throws RestClientException {
|
||||
createUsersWithArrayInputWithHttpInfo(user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param body List of user object (required)
|
||||
* @param user List of user object (required)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> createUsersWithArrayInputWithHttpInfo(List<User> body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Void> createUsersWithArrayInputWithHttpInfo(List<User> user) throws RestClientException {
|
||||
Object localVarPostBody = user;
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUsersWithArrayInput");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUsersWithArrayInput");
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +126,9 @@ public class UserApi {
|
||||
|
||||
final String[] localVarAccepts = { };
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
@@ -136,27 +140,27 @@ public class UserApi {
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param body List of user object (required)
|
||||
* @param user List of user object (required)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void createUsersWithListInput(List<User> body) throws RestClientException {
|
||||
createUsersWithListInputWithHttpInfo(body);
|
||||
public void createUsersWithListInput(List<User> user) throws RestClientException {
|
||||
createUsersWithListInputWithHttpInfo(user);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates list of users with given input array
|
||||
*
|
||||
* <p><b>0</b> - successful operation
|
||||
* @param body List of user object (required)
|
||||
* @param user List of user object (required)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> createUsersWithListInputWithHttpInfo(List<User> body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Void> createUsersWithListInputWithHttpInfo(List<User> user) throws RestClientException {
|
||||
Object localVarPostBody = user;
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling createUsersWithListInput");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling createUsersWithListInput");
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +171,9 @@ public class UserApi {
|
||||
|
||||
final String[] localVarAccepts = { };
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
@@ -377,11 +383,11 @@ public class UserApi {
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - User not found
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param body Updated user object (required)
|
||||
* @param user Updated user object (required)
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public void updateUser(String username, User body) throws RestClientException {
|
||||
updateUserWithHttpInfo(username, body);
|
||||
public void updateUser(String username, User user) throws RestClientException {
|
||||
updateUserWithHttpInfo(username, user);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -390,21 +396,21 @@ public class UserApi {
|
||||
* <p><b>400</b> - Invalid user supplied
|
||||
* <p><b>404</b> - User not found
|
||||
* @param username name that need to be deleted (required)
|
||||
* @param body Updated user object (required)
|
||||
* @param user Updated user object (required)
|
||||
* @return ResponseEntity<Void>
|
||||
* @throws RestClientException if an error occurs while attempting to invoke the API
|
||||
*/
|
||||
public ResponseEntity<Void> updateUserWithHttpInfo(String username, User body) throws RestClientException {
|
||||
Object localVarPostBody = body;
|
||||
public ResponseEntity<Void> updateUserWithHttpInfo(String username, User user) throws RestClientException {
|
||||
Object localVarPostBody = user;
|
||||
|
||||
// verify the required parameter 'username' is set
|
||||
if (username == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'username' when calling updateUser");
|
||||
}
|
||||
|
||||
// verify the required parameter 'body' is set
|
||||
if (body == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body' when calling updateUser");
|
||||
// verify the required parameter 'user' is set
|
||||
if (user == null) {
|
||||
throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'user' when calling updateUser");
|
||||
}
|
||||
|
||||
// create path and map variables
|
||||
@@ -418,7 +424,9 @@ public class UserApi {
|
||||
|
||||
final String[] localVarAccepts = { };
|
||||
final List<MediaType> localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
|
||||
final String[] localVarContentTypes = { };
|
||||
final String[] localVarContentTypes = {
|
||||
"application/json"
|
||||
};
|
||||
final MediaType localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
|
||||
|
||||
String[] localVarAuthNames = new String[] { };
|
||||
|
||||
@@ -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;
|
||||
@@ -35,479 +33,104 @@ import io.github.threetenjaxb.core.*;
|
||||
* 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")
|
||||
@XmlRootElement(name = "AdditionalPropertiesClass")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "AdditionalPropertiesClass")
|
||||
public class AdditionalPropertiesClass {
|
||||
public static final String JSON_PROPERTY_MAP_STRING = "map_string";
|
||||
public static final String JSON_PROPERTY_MAP_PROPERTY = "map_property";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=String
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, String> mapString = new HashMap<>();
|
||||
private Map<String, String> mapProperty = new HashMap<>();
|
||||
|
||||
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=BigDecimal
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, BigDecimal> mapNumber = new HashMap<>();
|
||||
|
||||
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Integer
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, Integer> mapInteger = new HashMap<>();
|
||||
|
||||
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Boolean
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, Boolean> mapBoolean = new HashMap<>();
|
||||
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=List<Integer>
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, List<Integer>> mapArrayInteger = new HashMap<>();
|
||||
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=List<Object>
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, List<Object>> mapArrayAnytype = new HashMap<>();
|
||||
|
||||
public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
|
||||
public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Map<String, String>
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, Map<String, String>> mapMapString = new HashMap<>();
|
||||
|
||||
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Map<String, Object>
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<>();
|
||||
|
||||
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
|
||||
@XmlElement(name = "anytype_1")
|
||||
private Object anytype1;
|
||||
|
||||
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
|
||||
@XmlElement(name = "anytype_2")
|
||||
private Object anytype2;
|
||||
|
||||
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
|
||||
@XmlElement(name = "anytype_3")
|
||||
private Object anytype3;
|
||||
private Map<String, Map<String, String>> mapOfMapProperty = new HashMap<>();
|
||||
|
||||
public AdditionalPropertiesClass() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
public AdditionalPropertiesClass mapProperty(Map<String, String> 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)
|
||||
@JacksonXmlProperty(localName = "map_string")
|
||||
@JacksonXmlProperty(localName = "map_property")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, String> getMapString() {
|
||||
return mapString;
|
||||
public Map<String, String> getMapProperty() {
|
||||
return mapProperty;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
||||
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_string")
|
||||
@JacksonXmlProperty(localName = "map_property")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setMapString(Map<String, String> mapString) {
|
||||
this.mapString = mapString;
|
||||
public void setMapProperty(Map<String, String> mapProperty) {
|
||||
this.mapProperty = mapProperty;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
|
||||
public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> 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<String, String> 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)
|
||||
@JacksonXmlProperty(localName = "map_number")
|
||||
@JacksonXmlProperty(localName = "map_of_map_property")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, BigDecimal> getMapNumber() {
|
||||
return mapNumber;
|
||||
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
||||
return mapOfMapProperty;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||
@JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_number")
|
||||
@JacksonXmlProperty(localName = "map_of_map_property")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setMapNumber(Map<String, BigDecimal> mapNumber) {
|
||||
this.mapNumber = mapNumber;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass mapInteger(Map<String, Integer> 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)
|
||||
@JacksonXmlProperty(localName = "map_integer")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, Integer> getMapInteger() {
|
||||
return mapInteger;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_integer")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setMapInteger(Map<String, Integer> mapInteger) {
|
||||
this.mapInteger = mapInteger;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> 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)
|
||||
@JacksonXmlProperty(localName = "map_boolean")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, Boolean> getMapBoolean() {
|
||||
return mapBoolean;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_boolean")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setMapBoolean(Map<String, Boolean> mapBoolean) {
|
||||
this.mapBoolean = mapBoolean;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
|
||||
|
||||
this.mapArrayInteger = mapArrayInteger;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List<Integer> 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)
|
||||
@JacksonXmlProperty(localName = "map_array_integer")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, List<Integer>> getMapArrayInteger() {
|
||||
return mapArrayInteger;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_array_integer")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
|
||||
this.mapArrayInteger = mapArrayInteger;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
|
||||
|
||||
this.mapArrayAnytype = mapArrayAnytype;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List<Object> mapArrayAnytypeItem) {
|
||||
if (this.mapArrayAnytype == null) {
|
||||
this.mapArrayAnytype = new HashMap<>();
|
||||
}
|
||||
this.mapArrayAnytype.put(key, mapArrayAnytypeItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mapArrayAnytype
|
||||
* @return mapArrayAnytype
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_array_anytype")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, List<Object>> getMapArrayAnytype() {
|
||||
return mapArrayAnytype;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_array_anytype")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
|
||||
this.mapArrayAnytype = mapArrayAnytype;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) {
|
||||
|
||||
this.mapMapString = mapMapString;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass putMapMapStringItem(String key, Map<String, String> mapMapStringItem) {
|
||||
if (this.mapMapString == null) {
|
||||
this.mapMapString = new HashMap<>();
|
||||
}
|
||||
this.mapMapString.put(key, mapMapStringItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mapMapString
|
||||
* @return mapMapString
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_map_string")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, Map<String, String>> getMapMapString() {
|
||||
return mapMapString;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_map_string")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
|
||||
this.mapMapString = mapMapString;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
|
||||
|
||||
this.mapMapAnytype = mapMapAnytype;
|
||||
return this;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map<String, Object> mapMapAnytypeItem) {
|
||||
if (this.mapMapAnytype == null) {
|
||||
this.mapMapAnytype = new HashMap<>();
|
||||
}
|
||||
this.mapMapAnytype.put(key, mapMapAnytypeItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mapMapAnytype
|
||||
* @return mapMapAnytype
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_map_anytype")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, Map<String, Object>> getMapMapAnytype() {
|
||||
return mapMapAnytype;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "map_map_anytype")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
|
||||
this.mapMapAnytype = mapMapAnytype;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass anytype1(Object anytype1) {
|
||||
|
||||
this.anytype1 = anytype1;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get anytype1
|
||||
* @return anytype1
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "anytype_1")
|
||||
|
||||
public Object getAnytype1() {
|
||||
return anytype1;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "anytype_1")
|
||||
public void setAnytype1(Object anytype1) {
|
||||
this.anytype1 = anytype1;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass anytype2(Object anytype2) {
|
||||
|
||||
this.anytype2 = anytype2;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get anytype2
|
||||
* @return anytype2
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "anytype_2")
|
||||
|
||||
public Object getAnytype2() {
|
||||
return anytype2;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "anytype_2")
|
||||
public void setAnytype2(Object anytype2) {
|
||||
this.anytype2 = anytype2;
|
||||
}
|
||||
|
||||
|
||||
public AdditionalPropertiesClass anytype3(Object anytype3) {
|
||||
|
||||
this.anytype3 = anytype3;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get anytype3
|
||||
* @return anytype3
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "anytype_3")
|
||||
|
||||
public Object getAnytype3() {
|
||||
return anytype3;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "anytype_3")
|
||||
public void setAnytype3(Object anytype3) {
|
||||
this.anytype3 = anytype3;
|
||||
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
||||
this.mapOfMapProperty = mapOfMapProperty;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -519,39 +142,21 @@ public class AdditionalPropertiesClass {
|
||||
return false;
|
||||
}
|
||||
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
|
||||
return Objects.equals(this.mapString, additionalPropertiesClass.mapString) &&
|
||||
Objects.equals(this.mapNumber, additionalPropertiesClass.mapNumber) &&
|
||||
Objects.equals(this.mapInteger, additionalPropertiesClass.mapInteger) &&
|
||||
Objects.equals(this.mapBoolean, additionalPropertiesClass.mapBoolean) &&
|
||||
Objects.equals(this.mapArrayInteger, additionalPropertiesClass.mapArrayInteger) &&
|
||||
Objects.equals(this.mapArrayAnytype, additionalPropertiesClass.mapArrayAnytype) &&
|
||||
Objects.equals(this.mapMapString, additionalPropertiesClass.mapMapString) &&
|
||||
Objects.equals(this.mapMapAnytype, additionalPropertiesClass.mapMapAnytype) &&
|
||||
Objects.equals(this.anytype1, additionalPropertiesClass.anytype1) &&
|
||||
Objects.equals(this.anytype2, additionalPropertiesClass.anytype2) &&
|
||||
Objects.equals(this.anytype3, additionalPropertiesClass.anytype3);
|
||||
return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) &&
|
||||
Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
|
||||
return Objects.hash(mapProperty, mapOfMapProperty);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AdditionalPropertiesClass {\n");
|
||||
sb.append(" mapString: ").append(toIndentedString(mapString)).append("\n");
|
||||
sb.append(" mapNumber: ").append(toIndentedString(mapNumber)).append("\n");
|
||||
sb.append(" mapInteger: ").append(toIndentedString(mapInteger)).append("\n");
|
||||
sb.append(" mapBoolean: ").append(toIndentedString(mapBoolean)).append("\n");
|
||||
sb.append(" mapArrayInteger: ").append(toIndentedString(mapArrayInteger)).append("\n");
|
||||
sb.append(" mapArrayAnytype: ").append(toIndentedString(mapArrayAnytype)).append("\n");
|
||||
sb.append(" mapMapString: ").append(toIndentedString(mapMapString)).append("\n");
|
||||
sb.append(" mapMapAnytype: ").append(toIndentedString(mapMapAnytype)).append("\n");
|
||||
sb.append(" anytype1: ").append(toIndentedString(anytype1)).append("\n");
|
||||
sb.append(" anytype2: ").append(toIndentedString(anytype2)).append("\n");
|
||||
sb.append(" anytype3: ").append(toIndentedString(anytype3)).append("\n");
|
||||
sb.append(" mapProperty: ").append(toIndentedString(mapProperty)).append("\n");
|
||||
sb.append(" mapOfMapProperty: ").append(toIndentedString(mapOfMapProperty)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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 org.openapitools.client.model.SingleRefType;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
/**
|
||||
* AllOfWithSingleRef
|
||||
*/
|
||||
@JsonPropertyOrder({
|
||||
AllOfWithSingleRef.JSON_PROPERTY_USERNAME,
|
||||
AllOfWithSingleRef.JSON_PROPERTY_SINGLE_REF_TYPE
|
||||
})
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "AllOfWithSingleRef")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "AllOfWithSingleRef")
|
||||
public class AllOfWithSingleRef {
|
||||
public static final String JSON_PROPERTY_USERNAME = "username";
|
||||
@XmlElement(name = "username")
|
||||
private String username;
|
||||
|
||||
public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType";
|
||||
@XmlElement(name = "SingleRefType")
|
||||
private SingleRefType singleRefType;
|
||||
|
||||
public AllOfWithSingleRef() {
|
||||
}
|
||||
|
||||
public AllOfWithSingleRef username(String username) {
|
||||
|
||||
this.username = username;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get username
|
||||
* @return username
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_USERNAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "username")
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_USERNAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "username")
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
|
||||
public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) {
|
||||
|
||||
this.singleRefType = singleRefType;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get singleRefType
|
||||
* @return singleRefType
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "SingleRefType")
|
||||
|
||||
public SingleRefType getSingleRefType() {
|
||||
return singleRefType;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "SingleRefType")
|
||||
public void setSingleRefType(SingleRefType singleRefType) {
|
||||
this.singleRefType = singleRefType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
AllOfWithSingleRef allOfWithSingleRef = (AllOfWithSingleRef) o;
|
||||
return Objects.equals(this.username, allOfWithSingleRef.username) &&
|
||||
Objects.equals(this.singleRefType, allOfWithSingleRef.singleRefType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(username, singleRefType);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class AllOfWithSingleRef {\n");
|
||||
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||
sb.append(" singleRefType: ").append(toIndentedString(singleRefType)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -44,9 +44,8 @@ import io.github.threetenjaxb.core.*;
|
||||
)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "Cat"),
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "Dog"),
|
||||
@JsonSubTypes.Type(value = Cat.class, name = "CAT"),
|
||||
@JsonSubTypes.Type(value = Dog.class, name = "DOG"),
|
||||
})
|
||||
|
||||
@XmlRootElement(name = "Animal")
|
||||
|
||||
@@ -43,9 +43,6 @@ import io.github.threetenjaxb.core.*;
|
||||
allowSetters = true // allows the className to be set during deserialization
|
||||
)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "className", visible = true)
|
||||
@JsonSubTypes({
|
||||
@JsonSubTypes.Type(value = BigCat.class, name = "BigCat"),
|
||||
})
|
||||
|
||||
@XmlRootElement(name = "Cat")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
/**
|
||||
* DeprecatedObject
|
||||
* @deprecated
|
||||
*/
|
||||
@Deprecated
|
||||
@JsonPropertyOrder({
|
||||
DeprecatedObject.JSON_PROPERTY_NAME
|
||||
})
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "DeprecatedObject")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "DeprecatedObject")
|
||||
public class DeprecatedObject {
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@XmlElement(name = "name")
|
||||
private String name;
|
||||
|
||||
public DeprecatedObject() {
|
||||
}
|
||||
|
||||
public DeprecatedObject name(String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "name")
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "name")
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
DeprecatedObject deprecatedObject = (DeprecatedObject) o;
|
||||
return Objects.equals(this.name, deprecatedObject.name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(name);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class DeprecatedObject {\n");
|
||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -21,6 +21,13 @@ import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import org.openapitools.client.model.OuterEnum;
|
||||
import org.openapitools.client.model.OuterEnumDefaultValue;
|
||||
import org.openapitools.client.model.OuterEnumInteger;
|
||||
import org.openapitools.client.model.OuterEnumIntegerDefaultValue;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
@@ -36,7 +43,10 @@ import io.github.threetenjaxb.core.*;
|
||||
EnumTest.JSON_PROPERTY_ENUM_STRING_REQUIRED,
|
||||
EnumTest.JSON_PROPERTY_ENUM_INTEGER,
|
||||
EnumTest.JSON_PROPERTY_ENUM_NUMBER,
|
||||
EnumTest.JSON_PROPERTY_OUTER_ENUM
|
||||
EnumTest.JSON_PROPERTY_OUTER_ENUM,
|
||||
EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER,
|
||||
EnumTest.JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE,
|
||||
EnumTest.JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE
|
||||
})
|
||||
@JsonTypeName("Enum_Test")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@@ -224,7 +234,19 @@ public class EnumTest {
|
||||
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
|
||||
@XmlElement(name = "outerEnum")
|
||||
private OuterEnum outerEnum;
|
||||
private JsonNullable<OuterEnum> outerEnum = JsonNullable.<OuterEnum>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER = "outerEnumInteger";
|
||||
@XmlElement(name = "outerEnumInteger")
|
||||
private OuterEnumInteger outerEnumInteger;
|
||||
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE = "outerEnumDefaultValue";
|
||||
@XmlElement(name = "outerEnumDefaultValue")
|
||||
private OuterEnumDefaultValue outerEnumDefaultValue = OuterEnumDefaultValue.PLACED;
|
||||
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue";
|
||||
@XmlElement(name = "outerEnumIntegerDefaultValue")
|
||||
private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0;
|
||||
|
||||
public EnumTest() {
|
||||
}
|
||||
@@ -342,8 +364,8 @@ public class EnumTest {
|
||||
|
||||
|
||||
public EnumTest outerEnum(OuterEnum outerEnum) {
|
||||
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
|
||||
|
||||
this.outerEnum = outerEnum;
|
||||
return this;
|
||||
}
|
||||
|
||||
@@ -352,20 +374,111 @@ public class EnumTest {
|
||||
* @return outerEnum
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public OuterEnum getOuterEnum() {
|
||||
return outerEnum.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "outerEnum")
|
||||
|
||||
public OuterEnum getOuterEnum() {
|
||||
public JsonNullable<OuterEnum> getOuterEnum_JsonNullable() {
|
||||
return outerEnum;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
||||
public void setOuterEnum_JsonNullable(JsonNullable<OuterEnum> outerEnum) {
|
||||
this.outerEnum = outerEnum;
|
||||
}
|
||||
|
||||
public void setOuterEnum(OuterEnum outerEnum) {
|
||||
this.outerEnum = JsonNullable.<OuterEnum>of(outerEnum);
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
||||
public EnumTest outerEnumInteger(OuterEnumInteger outerEnumInteger) {
|
||||
|
||||
this.outerEnumInteger = outerEnumInteger;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get outerEnumInteger
|
||||
* @return outerEnumInteger
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "outerEnum")
|
||||
public void setOuterEnum(OuterEnum outerEnum) {
|
||||
this.outerEnum = outerEnum;
|
||||
@JacksonXmlProperty(localName = "outerEnumInteger")
|
||||
|
||||
public OuterEnumInteger getOuterEnumInteger() {
|
||||
return outerEnumInteger;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "outerEnumInteger")
|
||||
public void setOuterEnumInteger(OuterEnumInteger outerEnumInteger) {
|
||||
this.outerEnumInteger = outerEnumInteger;
|
||||
}
|
||||
|
||||
|
||||
public EnumTest outerEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
|
||||
|
||||
this.outerEnumDefaultValue = outerEnumDefaultValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get outerEnumDefaultValue
|
||||
* @return outerEnumDefaultValue
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "outerEnumDefaultValue")
|
||||
|
||||
public OuterEnumDefaultValue getOuterEnumDefaultValue() {
|
||||
return outerEnumDefaultValue;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_DEFAULT_VALUE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "outerEnumDefaultValue")
|
||||
public void setOuterEnumDefaultValue(OuterEnumDefaultValue outerEnumDefaultValue) {
|
||||
this.outerEnumDefaultValue = outerEnumDefaultValue;
|
||||
}
|
||||
|
||||
|
||||
public EnumTest outerEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
|
||||
|
||||
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get outerEnumIntegerDefaultValue
|
||||
* @return outerEnumIntegerDefaultValue
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "outerEnumIntegerDefaultValue")
|
||||
|
||||
public OuterEnumIntegerDefaultValue getOuterEnumIntegerDefaultValue() {
|
||||
return outerEnumIntegerDefaultValue;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "outerEnumIntegerDefaultValue")
|
||||
public void setOuterEnumIntegerDefaultValue(OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue) {
|
||||
this.outerEnumIntegerDefaultValue = outerEnumIntegerDefaultValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -381,12 +494,26 @@ public class EnumTest {
|
||||
Objects.equals(this.enumStringRequired, enumTest.enumStringRequired) &&
|
||||
Objects.equals(this.enumInteger, enumTest.enumInteger) &&
|
||||
Objects.equals(this.enumNumber, enumTest.enumNumber) &&
|
||||
Objects.equals(this.outerEnum, enumTest.outerEnum);
|
||||
equalsNullable(this.outerEnum, enumTest.outerEnum) &&
|
||||
Objects.equals(this.outerEnumInteger, enumTest.outerEnumInteger) &&
|
||||
Objects.equals(this.outerEnumDefaultValue, enumTest.outerEnumDefaultValue) &&
|
||||
Objects.equals(this.outerEnumIntegerDefaultValue, enumTest.outerEnumIntegerDefaultValue);
|
||||
}
|
||||
|
||||
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
|
||||
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, hashCodeNullable(outerEnum), outerEnumInteger, outerEnumDefaultValue, outerEnumIntegerDefaultValue);
|
||||
}
|
||||
|
||||
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||
if (a == null) {
|
||||
return 1;
|
||||
}
|
||||
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -398,6 +525,9 @@ public class EnumTest {
|
||||
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
|
||||
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
|
||||
sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
|
||||
sb.append(" outerEnumInteger: ").append(toIndentedString(outerEnumInteger)).append("\n");
|
||||
sb.append(" outerEnumDefaultValue: ").append(toIndentedString(outerEnumDefaultValue)).append("\n");
|
||||
sb.append(" outerEnumIntegerDefaultValue: ").append(toIndentedString(outerEnumIntegerDefaultValue)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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.Map;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
/**
|
||||
* FakeBigDecimalMap200Response
|
||||
*/
|
||||
@JsonPropertyOrder({
|
||||
FakeBigDecimalMap200Response.JSON_PROPERTY_SOME_ID,
|
||||
FakeBigDecimalMap200Response.JSON_PROPERTY_SOME_MAP
|
||||
})
|
||||
@JsonTypeName("fakeBigDecimalMap_200_response")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "FakeBigDecimalMap200Response")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "FakeBigDecimalMap200Response")
|
||||
public class FakeBigDecimalMap200Response {
|
||||
public static final String JSON_PROPERTY_SOME_ID = "someId";
|
||||
@XmlElement(name = "someId")
|
||||
private BigDecimal someId;
|
||||
|
||||
public static final String JSON_PROPERTY_SOME_MAP = "someMap";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=BigDecimal
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, BigDecimal> someMap = new HashMap<>();
|
||||
|
||||
public FakeBigDecimalMap200Response() {
|
||||
}
|
||||
|
||||
public FakeBigDecimalMap200Response someId(BigDecimal someId) {
|
||||
|
||||
this.someId = someId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get someId
|
||||
* @return someId
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_SOME_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "someId")
|
||||
|
||||
public BigDecimal getSomeId() {
|
||||
return someId;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SOME_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "someId")
|
||||
public void setSomeId(BigDecimal someId) {
|
||||
this.someId = someId;
|
||||
}
|
||||
|
||||
|
||||
public FakeBigDecimalMap200Response someMap(Map<String, BigDecimal> someMap) {
|
||||
|
||||
this.someMap = someMap;
|
||||
return this;
|
||||
}
|
||||
|
||||
public FakeBigDecimalMap200Response putSomeMapItem(String key, BigDecimal someMapItem) {
|
||||
if (this.someMap == null) {
|
||||
this.someMap = new HashMap<>();
|
||||
}
|
||||
this.someMap.put(key, someMapItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get someMap
|
||||
* @return someMap
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_SOME_MAP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "someMap")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, BigDecimal> getSomeMap() {
|
||||
return someMap;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SOME_MAP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "someMap")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setSomeMap(Map<String, BigDecimal> someMap) {
|
||||
this.someMap = someMap;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
FakeBigDecimalMap200Response fakeBigDecimalMap200Response = (FakeBigDecimalMap200Response) o;
|
||||
return Objects.equals(this.someId, fakeBigDecimalMap200Response.someId) &&
|
||||
Objects.equals(this.someMap, fakeBigDecimalMap200Response.someMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(someId, someMap);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FakeBigDecimalMap200Response {\n");
|
||||
sb.append(" someId: ").append(toIndentedString(someId)).append("\n");
|
||||
sb.append(" someMap: ").append(toIndentedString(someMap)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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 com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
/**
|
||||
* Foo
|
||||
*/
|
||||
@JsonPropertyOrder({
|
||||
Foo.JSON_PROPERTY_BAR
|
||||
})
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "Foo")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "Foo")
|
||||
public class Foo {
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@XmlElement(name = "bar")
|
||||
private String bar = "bar";
|
||||
|
||||
public Foo() {
|
||||
}
|
||||
|
||||
public Foo bar(String bar) {
|
||||
|
||||
this.bar = bar;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bar
|
||||
* @return bar
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "bar")
|
||||
|
||||
public String getBar() {
|
||||
return bar;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "bar")
|
||||
public void setBar(String bar) {
|
||||
this.bar = bar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
Foo foo = (Foo) o;
|
||||
return Objects.equals(this.bar, foo.bar);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(bar);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class Foo {\n");
|
||||
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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 org.openapitools.client.model.Foo;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
/**
|
||||
* FooGetDefaultResponse
|
||||
*/
|
||||
@JsonPropertyOrder({
|
||||
FooGetDefaultResponse.JSON_PROPERTY_STRING
|
||||
})
|
||||
@JsonTypeName("_foo_get_default_response")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "FooGetDefaultResponse")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "FooGetDefaultResponse")
|
||||
public class FooGetDefaultResponse {
|
||||
public static final String JSON_PROPERTY_STRING = "string";
|
||||
@XmlElement(name = "string")
|
||||
private Foo string;
|
||||
|
||||
public FooGetDefaultResponse() {
|
||||
}
|
||||
|
||||
public FooGetDefaultResponse string(Foo string) {
|
||||
|
||||
this.string = string;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get string
|
||||
* @return string
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "string")
|
||||
|
||||
public Foo getString() {
|
||||
return string;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "string")
|
||||
public void setString(Foo string) {
|
||||
this.string = string;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
FooGetDefaultResponse fooGetDefaultResponse = (FooGetDefaultResponse) o;
|
||||
return Objects.equals(this.string, fooGetDefaultResponse.string);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(string);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class FooGetDefaultResponse {\n");
|
||||
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -42,6 +42,7 @@ import io.github.threetenjaxb.core.*;
|
||||
FormatTest.JSON_PROPERTY_NUMBER,
|
||||
FormatTest.JSON_PROPERTY_FLOAT,
|
||||
FormatTest.JSON_PROPERTY_DOUBLE,
|
||||
FormatTest.JSON_PROPERTY_DECIMAL,
|
||||
FormatTest.JSON_PROPERTY_STRING,
|
||||
FormatTest.JSON_PROPERTY_BYTE,
|
||||
FormatTest.JSON_PROPERTY_BINARY,
|
||||
@@ -49,7 +50,8 @@ import io.github.threetenjaxb.core.*;
|
||||
FormatTest.JSON_PROPERTY_DATE_TIME,
|
||||
FormatTest.JSON_PROPERTY_UUID,
|
||||
FormatTest.JSON_PROPERTY_PASSWORD,
|
||||
FormatTest.JSON_PROPERTY_BIG_DECIMAL
|
||||
FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS,
|
||||
FormatTest.JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER
|
||||
})
|
||||
@JsonTypeName("format_test")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@@ -81,6 +83,10 @@ public class FormatTest {
|
||||
@XmlElement(name = "double")
|
||||
private Double _double;
|
||||
|
||||
public static final String JSON_PROPERTY_DECIMAL = "decimal";
|
||||
@XmlElement(name = "decimal")
|
||||
private BigDecimal decimal;
|
||||
|
||||
public static final String JSON_PROPERTY_STRING = "string";
|
||||
@XmlElement(name = "string")
|
||||
private String string;
|
||||
@@ -110,9 +116,13 @@ public class FormatTest {
|
||||
@XmlElement(name = "password")
|
||||
private String password;
|
||||
|
||||
public static final String JSON_PROPERTY_BIG_DECIMAL = "BigDecimal";
|
||||
@XmlElement(name = "BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS = "pattern_with_digits";
|
||||
@XmlElement(name = "pattern_with_digits")
|
||||
private String patternWithDigits;
|
||||
|
||||
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter";
|
||||
@XmlElement(name = "pattern_with_digits_and_delimiter")
|
||||
private String patternWithDigitsAndDelimiter;
|
||||
|
||||
public FormatTest() {
|
||||
}
|
||||
@@ -295,6 +305,34 @@ public class FormatTest {
|
||||
}
|
||||
|
||||
|
||||
public FormatTest decimal(BigDecimal decimal) {
|
||||
|
||||
this.decimal = decimal;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get decimal
|
||||
* @return decimal
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_DECIMAL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "decimal")
|
||||
|
||||
public BigDecimal getDecimal() {
|
||||
return decimal;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DECIMAL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "decimal")
|
||||
public void setDecimal(BigDecimal decimal) {
|
||||
this.decimal = decimal;
|
||||
}
|
||||
|
||||
|
||||
public FormatTest string(String string) {
|
||||
|
||||
this.string = string;
|
||||
@@ -491,31 +529,59 @@ public class FormatTest {
|
||||
}
|
||||
|
||||
|
||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||
public FormatTest patternWithDigits(String patternWithDigits) {
|
||||
|
||||
this.bigDecimal = bigDecimal;
|
||||
this.patternWithDigits = patternWithDigits;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
* A string that is a 10 digit number. Can have leading zeros.
|
||||
* @return patternWithDigits
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "BigDecimal")
|
||||
@JacksonXmlProperty(localName = "pattern_with_digits")
|
||||
|
||||
public BigDecimal getBigDecimal() {
|
||||
return bigDecimal;
|
||||
public String getPatternWithDigits() {
|
||||
return patternWithDigits;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BIG_DECIMAL)
|
||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "BigDecimal")
|
||||
public void setBigDecimal(BigDecimal bigDecimal) {
|
||||
this.bigDecimal = bigDecimal;
|
||||
@JacksonXmlProperty(localName = "pattern_with_digits")
|
||||
public void setPatternWithDigits(String patternWithDigits) {
|
||||
this.patternWithDigits = patternWithDigits;
|
||||
}
|
||||
|
||||
|
||||
public FormatTest patternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
|
||||
|
||||
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* A string starting with 'image_' (case insensitive) and one to three digits following i.e. Image_01.
|
||||
* @return patternWithDigitsAndDelimiter
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "pattern_with_digits_and_delimiter")
|
||||
|
||||
public String getPatternWithDigitsAndDelimiter() {
|
||||
return patternWithDigitsAndDelimiter;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "pattern_with_digits_and_delimiter")
|
||||
public void setPatternWithDigitsAndDelimiter(String patternWithDigitsAndDelimiter) {
|
||||
this.patternWithDigitsAndDelimiter = patternWithDigitsAndDelimiter;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -533,6 +599,7 @@ public class FormatTest {
|
||||
Objects.equals(this.number, formatTest.number) &&
|
||||
Objects.equals(this._float, formatTest._float) &&
|
||||
Objects.equals(this._double, formatTest._double) &&
|
||||
Objects.equals(this.decimal, formatTest.decimal) &&
|
||||
Objects.equals(this.string, formatTest.string) &&
|
||||
Arrays.equals(this._byte, formatTest._byte) &&
|
||||
Objects.equals(this.binary, formatTest.binary) &&
|
||||
@@ -540,12 +607,13 @@ public class FormatTest {
|
||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||
Objects.equals(this.password, formatTest.password) &&
|
||||
Objects.equals(this.bigDecimal, formatTest.bigDecimal);
|
||||
Objects.equals(this.patternWithDigits, formatTest.patternWithDigits) &&
|
||||
Objects.equals(this.patternWithDigitsAndDelimiter, formatTest.patternWithDigitsAndDelimiter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, bigDecimal);
|
||||
return Objects.hash(integer, int32, int64, number, _float, _double, decimal, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, patternWithDigits, patternWithDigitsAndDelimiter);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -558,6 +626,7 @@ public class FormatTest {
|
||||
sb.append(" number: ").append(toIndentedString(number)).append("\n");
|
||||
sb.append(" _float: ").append(toIndentedString(_float)).append("\n");
|
||||
sb.append(" _double: ").append(toIndentedString(_double)).append("\n");
|
||||
sb.append(" decimal: ").append(toIndentedString(decimal)).append("\n");
|
||||
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
||||
sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n");
|
||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
||||
@@ -565,7 +634,8 @@ public class FormatTest {
|
||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||
sb.append(" bigDecimal: ").append(toIndentedString(bigDecimal)).append("\n");
|
||||
sb.append(" patternWithDigits: ").append(toIndentedString(patternWithDigits)).append("\n");
|
||||
sb.append(" patternWithDigitsAndDelimiter: ").append(toIndentedString(patternWithDigitsAndDelimiter)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
@@ -0,0 +1,135 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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 org.openapitools.jackson.nullable.JsonNullable;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
/**
|
||||
* Just a string to inform instance is up and running. Make it nullable in hope to get it as pointer in generated model.
|
||||
*/
|
||||
@JsonPropertyOrder({
|
||||
HealthCheckResult.JSON_PROPERTY_NULLABLE_MESSAGE
|
||||
})
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "HealthCheckResult")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "HealthCheckResult")
|
||||
public class HealthCheckResult {
|
||||
public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage";
|
||||
@XmlElement(name = "NullableMessage")
|
||||
private JsonNullable<String> nullableMessage = JsonNullable.<String>undefined();
|
||||
|
||||
public HealthCheckResult() {
|
||||
}
|
||||
|
||||
public HealthCheckResult nullableMessage(String nullableMessage) {
|
||||
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get nullableMessage
|
||||
* @return nullableMessage
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public String getNullableMessage() {
|
||||
return nullableMessage.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "NullableMessage")
|
||||
|
||||
public JsonNullable<String> getNullableMessage_JsonNullable() {
|
||||
return nullableMessage;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NULLABLE_MESSAGE)
|
||||
public void setNullableMessage_JsonNullable(JsonNullable<String> nullableMessage) {
|
||||
this.nullableMessage = nullableMessage;
|
||||
}
|
||||
|
||||
public void setNullableMessage(String nullableMessage) {
|
||||
this.nullableMessage = JsonNullable.<String>of(nullableMessage);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
HealthCheckResult healthCheckResult = (HealthCheckResult) o;
|
||||
return equalsNullable(this.nullableMessage, healthCheckResult.nullableMessage);
|
||||
}
|
||||
|
||||
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(hashCodeNullable(nullableMessage));
|
||||
}
|
||||
|
||||
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||
if (a == null) {
|
||||
return 1;
|
||||
}
|
||||
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class HealthCheckResult {\n");
|
||||
sb.append(" nullableMessage: ").append(toIndentedString(nullableMessage)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,685 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
/**
|
||||
* NullableClass
|
||||
*/
|
||||
@JsonPropertyOrder({
|
||||
NullableClass.JSON_PROPERTY_INTEGER_PROP,
|
||||
NullableClass.JSON_PROPERTY_NUMBER_PROP,
|
||||
NullableClass.JSON_PROPERTY_BOOLEAN_PROP,
|
||||
NullableClass.JSON_PROPERTY_STRING_PROP,
|
||||
NullableClass.JSON_PROPERTY_DATE_PROP,
|
||||
NullableClass.JSON_PROPERTY_DATETIME_PROP,
|
||||
NullableClass.JSON_PROPERTY_ARRAY_NULLABLE_PROP,
|
||||
NullableClass.JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP,
|
||||
NullableClass.JSON_PROPERTY_ARRAY_ITEMS_NULLABLE,
|
||||
NullableClass.JSON_PROPERTY_OBJECT_NULLABLE_PROP,
|
||||
NullableClass.JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP,
|
||||
NullableClass.JSON_PROPERTY_OBJECT_ITEMS_NULLABLE
|
||||
})
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "NullableClass")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "NullableClass")
|
||||
public class NullableClass extends HashMap<String, Object> {
|
||||
public static final String JSON_PROPERTY_INTEGER_PROP = "integer_prop";
|
||||
@XmlElement(name = "integer_prop")
|
||||
private JsonNullable<Integer> integerProp = JsonNullable.<Integer>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_NUMBER_PROP = "number_prop";
|
||||
@XmlElement(name = "number_prop")
|
||||
private JsonNullable<BigDecimal> numberProp = JsonNullable.<BigDecimal>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_BOOLEAN_PROP = "boolean_prop";
|
||||
@XmlElement(name = "boolean_prop")
|
||||
private JsonNullable<Boolean> booleanProp = JsonNullable.<Boolean>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_STRING_PROP = "string_prop";
|
||||
@XmlElement(name = "string_prop")
|
||||
private JsonNullable<String> stringProp = JsonNullable.<String>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_DATE_PROP = "date_prop";
|
||||
@XmlElement(name = "date_prop")
|
||||
private JsonNullable<LocalDate> dateProp = JsonNullable.<LocalDate>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_DATETIME_PROP = "datetime_prop";
|
||||
@XmlElement(name = "datetime_prop")
|
||||
@XmlJavaTypeAdapter(OffsetDateTimeXmlAdapter.class)
|
||||
private JsonNullable<OffsetDateTime> datetimeProp = JsonNullable.<OffsetDateTime>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_NULLABLE_PROP = "array_nullable_prop";
|
||||
// Is a container wrapped=false
|
||||
// items.name=arrayNullableProp items.baseName=arrayNullableProp items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Object
|
||||
@XmlElement(name = "arrayNullableProp")
|
||||
private JsonNullable<List<Object>> arrayNullableProp = JsonNullable.<List<Object>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP = "array_and_items_nullable_prop";
|
||||
// Is a container wrapped=false
|
||||
// items.name=arrayAndItemsNullableProp items.baseName=arrayAndItemsNullableProp items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Object
|
||||
@XmlElement(name = "arrayAndItemsNullableProp")
|
||||
private JsonNullable<List<Object>> arrayAndItemsNullableProp = JsonNullable.<List<Object>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_ITEMS_NULLABLE = "array_items_nullable";
|
||||
// Is a container wrapped=false
|
||||
// items.name=arrayItemsNullable items.baseName=arrayItemsNullable items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Object
|
||||
@XmlElement(name = "arrayItemsNullable")
|
||||
private List<Object> arrayItemsNullable;
|
||||
|
||||
public static final String JSON_PROPERTY_OBJECT_NULLABLE_PROP = "object_nullable_prop";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Object
|
||||
@XmlElement(name = "inner")
|
||||
private JsonNullable<Map<String, Object>> objectNullableProp = JsonNullable.<Map<String, Object>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP = "object_and_items_nullable_prop";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Object
|
||||
@XmlElement(name = "inner")
|
||||
private JsonNullable<Map<String, Object>> objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable";
|
||||
// Is a container wrapped=false
|
||||
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=Object
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, Object> objectItemsNullable = new HashMap<>();
|
||||
|
||||
public NullableClass() {
|
||||
|
||||
}
|
||||
|
||||
public NullableClass integerProp(Integer integerProp) {
|
||||
this.integerProp = JsonNullable.<Integer>of(integerProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get integerProp
|
||||
* @return integerProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public Integer getIntegerProp() {
|
||||
return integerProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER_PROP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "integer_prop")
|
||||
|
||||
public JsonNullable<Integer> getIntegerProp_JsonNullable() {
|
||||
return integerProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER_PROP)
|
||||
public void setIntegerProp_JsonNullable(JsonNullable<Integer> integerProp) {
|
||||
this.integerProp = integerProp;
|
||||
}
|
||||
|
||||
public void setIntegerProp(Integer integerProp) {
|
||||
this.integerProp = JsonNullable.<Integer>of(integerProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass numberProp(BigDecimal numberProp) {
|
||||
this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get numberProp
|
||||
* @return numberProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public BigDecimal getNumberProp() {
|
||||
return numberProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER_PROP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "number_prop")
|
||||
|
||||
public JsonNullable<BigDecimal> getNumberProp_JsonNullable() {
|
||||
return numberProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER_PROP)
|
||||
public void setNumberProp_JsonNullable(JsonNullable<BigDecimal> numberProp) {
|
||||
this.numberProp = numberProp;
|
||||
}
|
||||
|
||||
public void setNumberProp(BigDecimal numberProp) {
|
||||
this.numberProp = JsonNullable.<BigDecimal>of(numberProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass booleanProp(Boolean booleanProp) {
|
||||
this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get booleanProp
|
||||
* @return booleanProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public Boolean getBooleanProp() {
|
||||
return booleanProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BOOLEAN_PROP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "boolean_prop")
|
||||
|
||||
public JsonNullable<Boolean> getBooleanProp_JsonNullable() {
|
||||
return booleanProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BOOLEAN_PROP)
|
||||
public void setBooleanProp_JsonNullable(JsonNullable<Boolean> booleanProp) {
|
||||
this.booleanProp = booleanProp;
|
||||
}
|
||||
|
||||
public void setBooleanProp(Boolean booleanProp) {
|
||||
this.booleanProp = JsonNullable.<Boolean>of(booleanProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass stringProp(String stringProp) {
|
||||
this.stringProp = JsonNullable.<String>of(stringProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get stringProp
|
||||
* @return stringProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public String getStringProp() {
|
||||
return stringProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STRING_PROP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "string_prop")
|
||||
|
||||
public JsonNullable<String> getStringProp_JsonNullable() {
|
||||
return stringProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STRING_PROP)
|
||||
public void setStringProp_JsonNullable(JsonNullable<String> stringProp) {
|
||||
this.stringProp = stringProp;
|
||||
}
|
||||
|
||||
public void setStringProp(String stringProp) {
|
||||
this.stringProp = JsonNullable.<String>of(stringProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass dateProp(LocalDate dateProp) {
|
||||
this.dateProp = JsonNullable.<LocalDate>of(dateProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get dateProp
|
||||
* @return dateProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public LocalDate getDateProp() {
|
||||
return dateProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE_PROP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "date_prop")
|
||||
|
||||
public JsonNullable<LocalDate> getDateProp_JsonNullable() {
|
||||
return dateProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE_PROP)
|
||||
public void setDateProp_JsonNullable(JsonNullable<LocalDate> dateProp) {
|
||||
this.dateProp = dateProp;
|
||||
}
|
||||
|
||||
public void setDateProp(LocalDate dateProp) {
|
||||
this.dateProp = JsonNullable.<LocalDate>of(dateProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass datetimeProp(OffsetDateTime datetimeProp) {
|
||||
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get datetimeProp
|
||||
* @return datetimeProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public OffsetDateTime getDatetimeProp() {
|
||||
return datetimeProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATETIME_PROP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "datetime_prop")
|
||||
|
||||
public JsonNullable<OffsetDateTime> getDatetimeProp_JsonNullable() {
|
||||
return datetimeProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATETIME_PROP)
|
||||
public void setDatetimeProp_JsonNullable(JsonNullable<OffsetDateTime> datetimeProp) {
|
||||
this.datetimeProp = datetimeProp;
|
||||
}
|
||||
|
||||
public void setDatetimeProp(OffsetDateTime datetimeProp) {
|
||||
this.datetimeProp = JsonNullable.<OffsetDateTime>of(datetimeProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass arrayNullableProp(List<Object> arrayNullableProp) {
|
||||
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public NullableClass addArrayNullablePropItem(Object arrayNullablePropItem) {
|
||||
if (this.arrayNullableProp == null || !this.arrayNullableProp.isPresent()) {
|
||||
this.arrayNullableProp = JsonNullable.<List<Object>>of(new ArrayList<>());
|
||||
}
|
||||
try {
|
||||
this.arrayNullableProp.get().add(arrayNullablePropItem);
|
||||
} catch (java.util.NoSuchElementException e) {
|
||||
// this can never happen, as we make sure above that the value is present
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get arrayNullableProp
|
||||
* @return arrayNullableProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public List<Object> getArrayNullableProp() {
|
||||
return arrayNullableProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "array_nullable_prop")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public JsonNullable<List<Object>> getArrayNullableProp_JsonNullable() {
|
||||
return arrayNullableProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NULLABLE_PROP)
|
||||
public void setArrayNullableProp_JsonNullable(JsonNullable<List<Object>> arrayNullableProp) {
|
||||
this.arrayNullableProp = arrayNullableProp;
|
||||
}
|
||||
|
||||
public void setArrayNullableProp(List<Object> arrayNullableProp) {
|
||||
this.arrayNullableProp = JsonNullable.<List<Object>>of(arrayNullableProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass arrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) {
|
||||
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public NullableClass addArrayAndItemsNullablePropItem(Object arrayAndItemsNullablePropItem) {
|
||||
if (this.arrayAndItemsNullableProp == null || !this.arrayAndItemsNullableProp.isPresent()) {
|
||||
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(new ArrayList<>());
|
||||
}
|
||||
try {
|
||||
this.arrayAndItemsNullableProp.get().add(arrayAndItemsNullablePropItem);
|
||||
} catch (java.util.NoSuchElementException e) {
|
||||
// this can never happen, as we make sure above that the value is present
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get arrayAndItemsNullableProp
|
||||
* @return arrayAndItemsNullableProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public List<Object> getArrayAndItemsNullableProp() {
|
||||
return arrayAndItemsNullableProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "array_and_items_nullable_prop")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public JsonNullable<List<Object>> getArrayAndItemsNullableProp_JsonNullable() {
|
||||
return arrayAndItemsNullableProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_AND_ITEMS_NULLABLE_PROP)
|
||||
public void setArrayAndItemsNullableProp_JsonNullable(JsonNullable<List<Object>> arrayAndItemsNullableProp) {
|
||||
this.arrayAndItemsNullableProp = arrayAndItemsNullableProp;
|
||||
}
|
||||
|
||||
public void setArrayAndItemsNullableProp(List<Object> arrayAndItemsNullableProp) {
|
||||
this.arrayAndItemsNullableProp = JsonNullable.<List<Object>>of(arrayAndItemsNullableProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass arrayItemsNullable(List<Object> arrayItemsNullable) {
|
||||
|
||||
this.arrayItemsNullable = arrayItemsNullable;
|
||||
return this;
|
||||
}
|
||||
|
||||
public NullableClass addArrayItemsNullableItem(Object arrayItemsNullableItem) {
|
||||
if (this.arrayItemsNullable == null) {
|
||||
this.arrayItemsNullable = new ArrayList<>();
|
||||
}
|
||||
this.arrayItemsNullable.add(arrayItemsNullableItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get arrayItemsNullable
|
||||
* @return arrayItemsNullable
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "array_items_nullable")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public List<Object> getArrayItemsNullable() {
|
||||
return arrayItemsNullable;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEMS_NULLABLE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "array_items_nullable")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setArrayItemsNullable(List<Object> arrayItemsNullable) {
|
||||
this.arrayItemsNullable = arrayItemsNullable;
|
||||
}
|
||||
|
||||
|
||||
public NullableClass objectNullableProp(Map<String, Object> objectNullableProp) {
|
||||
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public NullableClass putObjectNullablePropItem(String key, Object objectNullablePropItem) {
|
||||
if (this.objectNullableProp == null || !this.objectNullableProp.isPresent()) {
|
||||
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(new HashMap<>());
|
||||
}
|
||||
try {
|
||||
this.objectNullableProp.get().put(key, objectNullablePropItem);
|
||||
} catch (java.util.NoSuchElementException e) {
|
||||
// this can never happen, as we make sure above that the value is present
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get objectNullableProp
|
||||
* @return objectNullableProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public Map<String, Object> getObjectNullableProp() {
|
||||
return objectNullableProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "object_nullable_prop")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public JsonNullable<Map<String, Object>> getObjectNullableProp_JsonNullable() {
|
||||
return objectNullableProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_NULLABLE_PROP)
|
||||
public void setObjectNullableProp_JsonNullable(JsonNullable<Map<String, Object>> objectNullableProp) {
|
||||
this.objectNullableProp = objectNullableProp;
|
||||
}
|
||||
|
||||
public void setObjectNullableProp(Map<String, Object> objectNullableProp) {
|
||||
this.objectNullableProp = JsonNullable.<Map<String, Object>>of(objectNullableProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass objectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
|
||||
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
public NullableClass putObjectAndItemsNullablePropItem(String key, Object objectAndItemsNullablePropItem) {
|
||||
if (this.objectAndItemsNullableProp == null || !this.objectAndItemsNullableProp.isPresent()) {
|
||||
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(new HashMap<>());
|
||||
}
|
||||
try {
|
||||
this.objectAndItemsNullableProp.get().put(key, objectAndItemsNullablePropItem);
|
||||
} catch (java.util.NoSuchElementException e) {
|
||||
// this can never happen, as we make sure above that the value is present
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get objectAndItemsNullableProp
|
||||
* @return objectAndItemsNullableProp
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonIgnore
|
||||
|
||||
public Map<String, Object> getObjectAndItemsNullableProp() {
|
||||
return objectAndItemsNullableProp.orElse(null);
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP)
|
||||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "object_and_items_nullable_prop")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public JsonNullable<Map<String, Object>> getObjectAndItemsNullableProp_JsonNullable() {
|
||||
return objectAndItemsNullableProp;
|
||||
}
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_AND_ITEMS_NULLABLE_PROP)
|
||||
public void setObjectAndItemsNullableProp_JsonNullable(JsonNullable<Map<String, Object>> objectAndItemsNullableProp) {
|
||||
this.objectAndItemsNullableProp = objectAndItemsNullableProp;
|
||||
}
|
||||
|
||||
public void setObjectAndItemsNullableProp(Map<String, Object> objectAndItemsNullableProp) {
|
||||
this.objectAndItemsNullableProp = JsonNullable.<Map<String, Object>>of(objectAndItemsNullableProp);
|
||||
}
|
||||
|
||||
|
||||
public NullableClass objectItemsNullable(Map<String, Object> objectItemsNullable) {
|
||||
|
||||
this.objectItemsNullable = objectItemsNullable;
|
||||
return this;
|
||||
}
|
||||
|
||||
public NullableClass putObjectItemsNullableItem(String key, Object objectItemsNullableItem) {
|
||||
if (this.objectItemsNullable == null) {
|
||||
this.objectItemsNullable = new HashMap<>();
|
||||
}
|
||||
this.objectItemsNullable.put(key, objectItemsNullableItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get objectItemsNullable
|
||||
* @return objectItemsNullable
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
|
||||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "object_items_nullable")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public Map<String, Object> getObjectItemsNullable() {
|
||||
return objectItemsNullable;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OBJECT_ITEMS_NULLABLE)
|
||||
@JsonInclude(content = JsonInclude.Include.ALWAYS, value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "object_items_nullable")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setObjectItemsNullable(Map<String, Object> objectItemsNullable) {
|
||||
this.objectItemsNullable = objectItemsNullable;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
NullableClass nullableClass = (NullableClass) o;
|
||||
return equalsNullable(this.integerProp, nullableClass.integerProp) &&
|
||||
equalsNullable(this.numberProp, nullableClass.numberProp) &&
|
||||
equalsNullable(this.booleanProp, nullableClass.booleanProp) &&
|
||||
equalsNullable(this.stringProp, nullableClass.stringProp) &&
|
||||
equalsNullable(this.dateProp, nullableClass.dateProp) &&
|
||||
equalsNullable(this.datetimeProp, nullableClass.datetimeProp) &&
|
||||
equalsNullable(this.arrayNullableProp, nullableClass.arrayNullableProp) &&
|
||||
equalsNullable(this.arrayAndItemsNullableProp, nullableClass.arrayAndItemsNullableProp) &&
|
||||
Objects.equals(this.arrayItemsNullable, nullableClass.arrayItemsNullable) &&
|
||||
equalsNullable(this.objectNullableProp, nullableClass.objectNullableProp) &&
|
||||
equalsNullable(this.objectAndItemsNullableProp, nullableClass.objectAndItemsNullableProp) &&
|
||||
Objects.equals(this.objectItemsNullable, nullableClass.objectItemsNullable) &&
|
||||
super.equals(o);
|
||||
}
|
||||
|
||||
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(hashCodeNullable(integerProp), hashCodeNullable(numberProp), hashCodeNullable(booleanProp), hashCodeNullable(stringProp), hashCodeNullable(dateProp), hashCodeNullable(datetimeProp), hashCodeNullable(arrayNullableProp), hashCodeNullable(arrayAndItemsNullableProp), arrayItemsNullable, hashCodeNullable(objectNullableProp), hashCodeNullable(objectAndItemsNullableProp), objectItemsNullable, super.hashCode());
|
||||
}
|
||||
|
||||
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||
if (a == null) {
|
||||
return 1;
|
||||
}
|
||||
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class NullableClass {\n");
|
||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||
sb.append(" integerProp: ").append(toIndentedString(integerProp)).append("\n");
|
||||
sb.append(" numberProp: ").append(toIndentedString(numberProp)).append("\n");
|
||||
sb.append(" booleanProp: ").append(toIndentedString(booleanProp)).append("\n");
|
||||
sb.append(" stringProp: ").append(toIndentedString(stringProp)).append("\n");
|
||||
sb.append(" dateProp: ").append(toIndentedString(dateProp)).append("\n");
|
||||
sb.append(" datetimeProp: ").append(toIndentedString(datetimeProp)).append("\n");
|
||||
sb.append(" arrayNullableProp: ").append(toIndentedString(arrayNullableProp)).append("\n");
|
||||
sb.append(" arrayAndItemsNullableProp: ").append(toIndentedString(arrayAndItemsNullableProp)).append("\n");
|
||||
sb.append(" arrayItemsNullable: ").append(toIndentedString(arrayItemsNullable)).append("\n");
|
||||
sb.append(" objectNullableProp: ").append(toIndentedString(objectNullableProp)).append("\n");
|
||||
sb.append(" objectAndItemsNullableProp: ").append(toIndentedString(objectAndItemsNullableProp)).append("\n");
|
||||
sb.append(" objectItemsNullable: ").append(toIndentedString(objectItemsNullable)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,242 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.DeprecatedObject;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
/**
|
||||
* ObjectWithDeprecatedFields
|
||||
*/
|
||||
@JsonPropertyOrder({
|
||||
ObjectWithDeprecatedFields.JSON_PROPERTY_UUID,
|
||||
ObjectWithDeprecatedFields.JSON_PROPERTY_ID,
|
||||
ObjectWithDeprecatedFields.JSON_PROPERTY_DEPRECATED_REF,
|
||||
ObjectWithDeprecatedFields.JSON_PROPERTY_BARS
|
||||
})
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "ObjectWithDeprecatedFields")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "ObjectWithDeprecatedFields")
|
||||
public class ObjectWithDeprecatedFields {
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@XmlElement(name = "uuid")
|
||||
private String uuid;
|
||||
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@XmlElement(name = "id")
|
||||
private BigDecimal id;
|
||||
|
||||
public static final String JSON_PROPERTY_DEPRECATED_REF = "deprecatedRef";
|
||||
@XmlElement(name = "deprecatedRef")
|
||||
private DeprecatedObject deprecatedRef;
|
||||
|
||||
public static final String JSON_PROPERTY_BARS = "bars";
|
||||
// Is a container wrapped=false
|
||||
// items.name=bars items.baseName=bars items.xmlName= items.xmlNamespace=
|
||||
// items.example= items.type=String
|
||||
@XmlElement(name = "bars")
|
||||
private List<String> bars;
|
||||
|
||||
public ObjectWithDeprecatedFields() {
|
||||
}
|
||||
|
||||
public ObjectWithDeprecatedFields uuid(String uuid) {
|
||||
|
||||
this.uuid = uuid;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get uuid
|
||||
* @return uuid
|
||||
**/
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "uuid")
|
||||
|
||||
public String getUuid() {
|
||||
return uuid;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "uuid")
|
||||
public void setUuid(String uuid) {
|
||||
this.uuid = uuid;
|
||||
}
|
||||
|
||||
|
||||
public ObjectWithDeprecatedFields id(BigDecimal id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
* @deprecated
|
||||
**/
|
||||
@Deprecated
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "id")
|
||||
|
||||
public BigDecimal getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "id")
|
||||
public void setId(BigDecimal id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public ObjectWithDeprecatedFields deprecatedRef(DeprecatedObject deprecatedRef) {
|
||||
|
||||
this.deprecatedRef = deprecatedRef;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get deprecatedRef
|
||||
* @return deprecatedRef
|
||||
* @deprecated
|
||||
**/
|
||||
@Deprecated
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_DEPRECATED_REF)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "deprecatedRef")
|
||||
|
||||
public DeprecatedObject getDeprecatedRef() {
|
||||
return deprecatedRef;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DEPRECATED_REF)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "deprecatedRef")
|
||||
public void setDeprecatedRef(DeprecatedObject deprecatedRef) {
|
||||
this.deprecatedRef = deprecatedRef;
|
||||
}
|
||||
|
||||
|
||||
public ObjectWithDeprecatedFields bars(List<String> bars) {
|
||||
|
||||
this.bars = bars;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ObjectWithDeprecatedFields addBarsItem(String barsItem) {
|
||||
if (this.bars == null) {
|
||||
this.bars = new ArrayList<>();
|
||||
}
|
||||
this.bars.add(barsItem);
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bars
|
||||
* @return bars
|
||||
* @deprecated
|
||||
**/
|
||||
@Deprecated
|
||||
@javax.annotation.Nullable
|
||||
@JsonProperty(JSON_PROPERTY_BARS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "bars")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
|
||||
public List<String> getBars() {
|
||||
return bars;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_BARS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
@JacksonXmlProperty(localName = "bars")
|
||||
@JacksonXmlElementWrapper(useWrapping = false)
|
||||
public void setBars(List<String> bars) {
|
||||
this.bars = bars;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
ObjectWithDeprecatedFields objectWithDeprecatedFields = (ObjectWithDeprecatedFields) o;
|
||||
return Objects.equals(this.uuid, objectWithDeprecatedFields.uuid) &&
|
||||
Objects.equals(this.id, objectWithDeprecatedFields.id) &&
|
||||
Objects.equals(this.deprecatedRef, objectWithDeprecatedFields.deprecatedRef) &&
|
||||
Objects.equals(this.bars, objectWithDeprecatedFields.bars);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(uuid, id, deprecatedRef, bars);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class ObjectWithDeprecatedFields {\n");
|
||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||
sb.append(" deprecatedRef: ").append(toIndentedString(deprecatedRef)).append("\n");
|
||||
sb.append(" bars: ").append(toIndentedString(bars)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public enum OuterEnum {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* Gets or Sets OuterEnumDefaultValue
|
||||
*/
|
||||
public enum OuterEnumDefaultValue {
|
||||
|
||||
@XmlEnumValue("placed")
|
||||
PLACED("placed"),
|
||||
|
||||
@XmlEnumValue("approved")
|
||||
APPROVED("approved"),
|
||||
|
||||
@XmlEnumValue("delivered")
|
||||
DELIVERED("delivered");
|
||||
|
||||
private String value;
|
||||
|
||||
OuterEnumDefaultValue(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
public static OuterEnumDefaultValue fromValue(String value) {
|
||||
for (OuterEnumDefaultValue b : OuterEnumDefaultValue.values()) {
|
||||
if (b.value.equals(value)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* Gets or Sets OuterEnumInteger
|
||||
*/
|
||||
public enum OuterEnumInteger {
|
||||
|
||||
@XmlEnumValue("0")
|
||||
NUMBER_0(0),
|
||||
|
||||
@XmlEnumValue("1")
|
||||
NUMBER_1(1),
|
||||
|
||||
@XmlEnumValue("2")
|
||||
NUMBER_2(2);
|
||||
|
||||
private Integer value;
|
||||
|
||||
OuterEnumInteger(Integer value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public Integer getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
public static OuterEnumInteger fromValue(Integer value) {
|
||||
for (OuterEnumInteger b : OuterEnumInteger.values()) {
|
||||
if (b.value.equals(value)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* Gets or Sets OuterEnumIntegerDefaultValue
|
||||
*/
|
||||
public enum OuterEnumIntegerDefaultValue {
|
||||
|
||||
@XmlEnumValue("0")
|
||||
NUMBER_0(0),
|
||||
|
||||
@XmlEnumValue("1")
|
||||
NUMBER_1(1),
|
||||
|
||||
@XmlEnumValue("2")
|
||||
NUMBER_2(2);
|
||||
|
||||
private Integer value;
|
||||
|
||||
OuterEnumIntegerDefaultValue(Integer value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public Integer getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
public static OuterEnumIntegerDefaultValue fromValue(Integer value) {
|
||||
for (OuterEnumIntegerDefaultValue b : OuterEnumIntegerDefaultValue.values()) {
|
||||
if (b.value.equals(value)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,114 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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 org.openapitools.client.model.OuterEnumInteger;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
/**
|
||||
* OuterObjectWithEnumProperty
|
||||
*/
|
||||
@JsonPropertyOrder({
|
||||
OuterObjectWithEnumProperty.JSON_PROPERTY_VALUE
|
||||
})
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "OuterObjectWithEnumProperty")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@JacksonXmlRootElement(localName = "OuterObjectWithEnumProperty")
|
||||
public class OuterObjectWithEnumProperty {
|
||||
public static final String JSON_PROPERTY_VALUE = "value";
|
||||
@XmlElement(name = "value")
|
||||
private OuterEnumInteger value;
|
||||
|
||||
public OuterObjectWithEnumProperty() {
|
||||
}
|
||||
|
||||
public OuterObjectWithEnumProperty value(OuterEnumInteger value) {
|
||||
|
||||
this.value = value;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get value
|
||||
* @return value
|
||||
**/
|
||||
@javax.annotation.Nonnull
|
||||
@JsonProperty(JSON_PROPERTY_VALUE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
@JacksonXmlProperty(localName = "value")
|
||||
|
||||
public OuterEnumInteger getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_VALUE)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
@JacksonXmlProperty(localName = "value")
|
||||
public void setValue(OuterEnumInteger value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) {
|
||||
return true;
|
||||
}
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
OuterObjectWithEnumProperty outerObjectWithEnumProperty = (OuterObjectWithEnumProperty) o;
|
||||
return Objects.equals(this.value, outerObjectWithEnumProperty.value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Objects.hash(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("class OuterObjectWithEnumProperty {\n");
|
||||
sb.append(" value: ").append(toIndentedString(value)).append("\n");
|
||||
sb.append("}");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert the given object to string with each line indented by 4 spaces
|
||||
* (except the first line).
|
||||
*/
|
||||
private String toIndentedString(Object o) {
|
||||
if (o == null) {
|
||||
return "null";
|
||||
}
|
||||
return o.toString().replace("\n", "\n ");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
|
||||
package org.openapitools.client.model;
|
||||
|
||||
import java.util.Objects;
|
||||
import java.util.Arrays;
|
||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||
import javax.xml.bind.annotation.*;
|
||||
import javax.xml.bind.annotation.adapters.*;
|
||||
import io.github.threetenjaxb.core.*;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
|
||||
/**
|
||||
* Gets or Sets SingleRefType
|
||||
*/
|
||||
public enum SingleRefType {
|
||||
|
||||
@XmlEnumValue("admin")
|
||||
ADMIN("admin"),
|
||||
|
||||
@XmlEnumValue("user")
|
||||
USER("user");
|
||||
|
||||
private String value;
|
||||
|
||||
SingleRefType(String value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@JsonValue
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(value);
|
||||
}
|
||||
|
||||
@JsonCreator
|
||||
public static SingleRefType fromValue(String value) {
|
||||
for (SingleRefType b : SingleRefType.values()) {
|
||||
if (b.value.equals(value)) {
|
||||
return b;
|
||||
}
|
||||
}
|
||||
throw new IllegalArgumentException("Unexpected value '" + value + "'");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ import io.github.threetenjaxb.core.*;
|
||||
@JsonPropertyOrder({
|
||||
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
|
||||
})
|
||||
@JsonTypeName("$special[model.name]")
|
||||
@JsonTypeName("_special_model.name_")
|
||||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||
@XmlRootElement(name = "$special[model.name]")
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@@ -81,8 +81,8 @@ public class SpecialModelName {
|
||||
if (o == null || getClass() != o.getClass()) {
|
||||
return false;
|
||||
}
|
||||
SpecialModelName $specialModelName = (SpecialModelName) o;
|
||||
return Objects.equals(this.$specialPropertyName, $specialModelName.$specialPropertyName);
|
||||
SpecialModelName specialModelName = (SpecialModelName) o;
|
||||
return Objects.equals(this.$specialPropertyName, specialModelName.$specialPropertyName);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
package org.openapitools.client;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.*;
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
import java.util.*;
|
||||
import org.junit.*;
|
||||
import org.springframework.util.MultiValueMap;
|
||||
import org.springframework.util.LinkedMultiValueMap;
|
||||
|
||||
public class ApiClientTest {
|
||||
ApiClient apiClient;
|
||||
|
||||
@Before
|
||||
public void setup() {
|
||||
apiClient = new ApiClient();
|
||||
}
|
||||
|
||||
/**
|
||||
* Test uri encoding when params contains comma
|
||||
*/
|
||||
@Test
|
||||
public void testUriEncoderWithComma() {
|
||||
Map<String,Object> uriParams = new HashMap<>();
|
||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
queryParams.add("key", "val,comma");
|
||||
apiClient.generateQueryUri(queryParams, uriParams);
|
||||
|
||||
assertEquals("/key=val%2Ccomma", apiClient.expandPath("/key={key0}", uriParams));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPathParamEncoding() {
|
||||
Map<String,Object> uriParams = new HashMap<>();
|
||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
uriParams.put("username", "user_name,comma& space");
|
||||
assertEquals("user/user_name%2Ccomma%26amp%20space", apiClient.expandPath("user/{username}", uriParams));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testPathAndQueryParamEncoding() {
|
||||
Map<String, Object> uriParams = new HashMap<>();
|
||||
MultiValueMap<String, String> queryParams = new LinkedMultiValueMap<String, String>();
|
||||
queryParams.add("key", "val,comma?q-mark&");
|
||||
uriParams.put("username", "user_name,comma& space");
|
||||
String template = "user/{username}?" + apiClient.generateQueryUri(queryParams, uriParams);
|
||||
assertEquals("user/user_name%2Ccomma%26amp%20space?key=val%2Ccomma%3Fq-mark%26amp",
|
||||
apiClient.expandPath(template, uriParams));
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,8 @@ import org.openapitools.client.model.Client;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -41,8 +43,8 @@ public class AnotherFakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void call123testSpecialTagsTest() {
|
||||
Client body = null;
|
||||
Client response = api.call123testSpecialTags(body);
|
||||
Client client = null;
|
||||
Client response = api.call123testSpecialTags(client);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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 org.openapitools.client.model.FooGetDefaultResponse;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* API tests for DefaultApi
|
||||
*/
|
||||
@Ignore
|
||||
public class DefaultApiTest {
|
||||
|
||||
private final DefaultApi api = new DefaultApi();
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void fooGetTest() {
|
||||
FooGetDefaultResponse response = api.fooGet();
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
}
|
||||
@@ -15,16 +15,22 @@ package org.openapitools.client.api;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import org.openapitools.client.model.Client;
|
||||
import org.openapitools.client.model.EnumClass;
|
||||
import org.openapitools.client.model.FakeBigDecimalMap200Response;
|
||||
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 org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -40,17 +46,49 @@ public class FakeApiTest {
|
||||
|
||||
|
||||
/**
|
||||
* creates an XmlItem
|
||||
*
|
||||
*
|
||||
* this route creates an XmlItem
|
||||
* for Java apache and Java native, test toUrlQueryString for maps with BegDecimal keys
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void createXmlItemTest() {
|
||||
XmlItem xmlItem = null;
|
||||
api.createXmlItem(xmlItem);
|
||||
public void fakeBigDecimalMapTest() {
|
||||
FakeBigDecimalMap200Response response = api.fakeBigDecimalMap();
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Health check endpoint
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void fakeHealthGetTest() {
|
||||
HealthCheckResult response = api.fakeHealthGet();
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* test http signature authentication
|
||||
*
|
||||
*
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void fakeHttpSignatureTestTest() {
|
||||
Pet pet = null;
|
||||
String query1 = null;
|
||||
String header1 = null;
|
||||
api.fakeHttpSignatureTest(pet, query1, header1);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -81,8 +119,8 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void fakeOuterCompositeSerializeTest() {
|
||||
OuterComposite body = null;
|
||||
OuterComposite response = api.fakeOuterCompositeSerialize(body);
|
||||
OuterComposite outerComposite = null;
|
||||
OuterComposite response = api.fakeOuterCompositeSerialize(outerComposite);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -122,15 +160,47 @@ public class FakeApiTest {
|
||||
/**
|
||||
*
|
||||
*
|
||||
* For this test, the body for this request much reference a schema named `File`.
|
||||
* Test serialization of enum (int) properties with examples
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void fakePropertyEnumIntegerSerializeTest() {
|
||||
OuterObjectWithEnumProperty outerObjectWithEnumProperty = null;
|
||||
OuterObjectWithEnumProperty response = api.fakePropertyEnumIntegerSerialize(outerObjectWithEnumProperty);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* For this test, the body has to be a binary file.
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testBodyWithBinaryTest() {
|
||||
File body = null;
|
||||
api.testBodyWithBinary(body);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* For this test, the body for this request must reference a schema named `File`.
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
*/
|
||||
@Test
|
||||
public void testBodyWithFileSchemaTest() {
|
||||
FileSchemaTestClass body = null;
|
||||
api.testBodyWithFileSchema(body);
|
||||
FileSchemaTestClass fileSchemaTestClass = null;
|
||||
api.testBodyWithFileSchema(fileSchemaTestClass);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -146,8 +216,8 @@ public class FakeApiTest {
|
||||
@Test
|
||||
public void testBodyWithQueryParamsTest() {
|
||||
String query = null;
|
||||
User body = null;
|
||||
api.testBodyWithQueryParams(query, body);
|
||||
User user = null;
|
||||
api.testBodyWithQueryParams(query, user);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -162,16 +232,16 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testClientModelTest() {
|
||||
Client body = null;
|
||||
Client response = api.testClientModel(body);
|
||||
Client client = null;
|
||||
Client response = api.testClientModel(client);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
/**
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
* Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트
|
||||
*
|
||||
* @throws ApiException
|
||||
* if the Api call fails
|
||||
@@ -213,9 +283,10 @@ public class FakeApiTest {
|
||||
String enumQueryString = null;
|
||||
Integer enumQueryInteger = null;
|
||||
Double enumQueryDouble = null;
|
||||
List<EnumClass> enumQueryModelArray = null;
|
||||
List<String> enumFormStringArray = null;
|
||||
String enumFormString = null;
|
||||
api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
|
||||
api.testEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -251,8 +322,8 @@ public class FakeApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testInlineAdditionalPropertiesTest() {
|
||||
Map<String, String> param = null;
|
||||
api.testInlineAdditionalProperties(param);
|
||||
Map<String, String> requestBody = null;
|
||||
api.testInlineAdditionalProperties(requestBody);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -289,7 +360,9 @@ public class FakeApiTest {
|
||||
List<String> http = null;
|
||||
List<String> url = null;
|
||||
List<String> context = null;
|
||||
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
String allowEmpty = null;
|
||||
Map<String, String> language = null;
|
||||
api.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, allowEmpty, language);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -17,6 +17,8 @@ import org.openapitools.client.model.Client;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -41,8 +43,8 @@ public class FakeClassnameTags123ApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void testClassnameTest() {
|
||||
Client body = null;
|
||||
Client response = api.testClassname(body);
|
||||
Client client = null;
|
||||
Client response = api.testClassname(client);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -20,6 +20,8 @@ import java.util.Set;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -44,8 +46,8 @@ public class PetApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void addPetTest() {
|
||||
Pet body = null;
|
||||
api.addPet(body);
|
||||
Pet pet = null;
|
||||
api.addPet(pet);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -125,8 +127,8 @@ public class PetApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void updatePetTest() {
|
||||
Pet body = null;
|
||||
api.updatePet(body);
|
||||
Pet pet = null;
|
||||
api.updatePet(pet);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -161,8 +163,8 @@ public class PetApiTest {
|
||||
public void uploadFileTest() {
|
||||
Long petId = null;
|
||||
String additionalMetadata = null;
|
||||
File file = null;
|
||||
ModelApiResponse response = api.uploadFile(petId, additionalMetadata, file);
|
||||
File _file = null;
|
||||
ModelApiResponse response = api.uploadFile(petId, additionalMetadata, _file);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -17,6 +17,8 @@ import org.openapitools.client.model.Order;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -88,8 +90,8 @@ public class StoreApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void placeOrderTest() {
|
||||
Order body = null;
|
||||
Order response = api.placeOrder(body);
|
||||
Order order = null;
|
||||
Order response = api.placeOrder(order);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -13,10 +13,13 @@
|
||||
|
||||
package org.openapitools.client.api;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
import org.openapitools.client.model.User;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@@ -41,8 +44,8 @@ public class UserApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void createUserTest() {
|
||||
User body = null;
|
||||
api.createUser(body);
|
||||
User user = null;
|
||||
api.createUser(user);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -57,8 +60,8 @@ public class UserApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void createUsersWithArrayInputTest() {
|
||||
List<User> body = null;
|
||||
api.createUsersWithArrayInput(body);
|
||||
List<User> user = null;
|
||||
api.createUsersWithArrayInput(user);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -73,8 +76,8 @@ public class UserApiTest {
|
||||
*/
|
||||
@Test
|
||||
public void createUsersWithListInputTest() {
|
||||
List<User> body = null;
|
||||
api.createUsersWithListInput(body);
|
||||
List<User> user = null;
|
||||
api.createUsersWithListInput(user);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
@@ -154,8 +157,8 @@ public class UserApiTest {
|
||||
@Test
|
||||
public void updateUserTest() {
|
||||
String username = null;
|
||||
User body = null;
|
||||
api.updateUser(username, body);
|
||||
User user = null;
|
||||
api.updateUser(username, user);
|
||||
|
||||
// TODO: test validations
|
||||
}
|
||||
|
||||
@@ -18,15 +18,12 @@ 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 org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesClass
|
||||
*/
|
||||
@@ -42,91 +39,19 @@ public class AdditionalPropertiesClassTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'mapString'
|
||||
* Test the property 'mapProperty'
|
||||
*/
|
||||
@Test
|
||||
public void mapStringTest() {
|
||||
// TODO: test mapString
|
||||
public void mapPropertyTest() {
|
||||
// TODO: test mapProperty
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'mapNumber'
|
||||
* Test the property 'mapOfMapProperty'
|
||||
*/
|
||||
@Test
|
||||
public void mapNumberTest() {
|
||||
// TODO: test mapNumber
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'mapInteger'
|
||||
*/
|
||||
@Test
|
||||
public void mapIntegerTest() {
|
||||
// TODO: test mapInteger
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'mapBoolean'
|
||||
*/
|
||||
@Test
|
||||
public void mapBooleanTest() {
|
||||
// TODO: test mapBoolean
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'mapArrayInteger'
|
||||
*/
|
||||
@Test
|
||||
public void mapArrayIntegerTest() {
|
||||
// TODO: test mapArrayInteger
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'mapArrayAnytype'
|
||||
*/
|
||||
@Test
|
||||
public void mapArrayAnytypeTest() {
|
||||
// TODO: test mapArrayAnytype
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'mapMapString'
|
||||
*/
|
||||
@Test
|
||||
public void mapMapStringTest() {
|
||||
// TODO: test mapMapString
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'mapMapAnytype'
|
||||
*/
|
||||
@Test
|
||||
public void mapMapAnytypeTest() {
|
||||
// TODO: test mapMapAnytype
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'anytype1'
|
||||
*/
|
||||
@Test
|
||||
public void anytype1Test() {
|
||||
// TODO: test anytype1
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'anytype2'
|
||||
*/
|
||||
@Test
|
||||
public void anytype2Test() {
|
||||
// TODO: test anytype2
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'anytype3'
|
||||
*/
|
||||
@Test
|
||||
public void anytype3Test() {
|
||||
// TODO: test anytype3
|
||||
public void mapOfMapPropertyTest() {
|
||||
// TODO: test mapOfMapProperty
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,34 +18,39 @@ 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.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.openapitools.client.model.SingleRefType;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesArray
|
||||
* Model tests for AllOfWithSingleRef
|
||||
*/
|
||||
public class AdditionalPropertiesArrayTest {
|
||||
private final AdditionalPropertiesArray model = new AdditionalPropertiesArray();
|
||||
public class AllOfWithSingleRefTest {
|
||||
private final AllOfWithSingleRef model = new AllOfWithSingleRef();
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesArray
|
||||
* Model tests for AllOfWithSingleRef
|
||||
*/
|
||||
@Test
|
||||
public void testAdditionalPropertiesArray() {
|
||||
// TODO: test AdditionalPropertiesArray
|
||||
public void testAllOfWithSingleRef() {
|
||||
// TODO: test AllOfWithSingleRef
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'name'
|
||||
* Test the property 'username'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
// TODO: test name
|
||||
public void usernameTest() {
|
||||
// TODO: test username
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'singleRefType'
|
||||
*/
|
||||
@Test
|
||||
public void singleRefTypeTest() {
|
||||
// TODO: test singleRefType
|
||||
}
|
||||
|
||||
}
|
||||
@@ -21,14 +21,10 @@ import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import org.openapitools.client.model.BigCat;
|
||||
import org.openapitools.client.model.Cat;
|
||||
import org.openapitools.client.model.Dog;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Animal
|
||||
*/
|
||||
|
||||
@@ -20,12 +20,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for ArrayOfArrayOfNumberOnly
|
||||
*/
|
||||
|
||||
@@ -20,12 +20,12 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for ArrayOfNumberOnly
|
||||
*/
|
||||
|
||||
@@ -19,13 +19,13 @@ import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.ReadOnlyFirst;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for ArrayTest
|
||||
*/
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import org.openapitools.client.model.Cat;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Model tests for BigCat
|
||||
*/
|
||||
public class BigCatTest {
|
||||
private final BigCat model = new BigCat();
|
||||
|
||||
/**
|
||||
* Model tests for BigCat
|
||||
*/
|
||||
@Test
|
||||
public void testBigCat() {
|
||||
// TODO: test BigCat
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'className'
|
||||
*/
|
||||
@Test
|
||||
public void classNameTest() {
|
||||
// TODO: test className
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'color'
|
||||
*/
|
||||
@Test
|
||||
public void colorTest() {
|
||||
// TODO: test color
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'declawed'
|
||||
*/
|
||||
@Test
|
||||
public void declawedTest() {
|
||||
// TODO: test declawed
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'kind'
|
||||
*/
|
||||
@Test
|
||||
public void kindTest() {
|
||||
// TODO: test kind
|
||||
}
|
||||
|
||||
}
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Capitalization
|
||||
*/
|
||||
|
||||
@@ -22,12 +22,10 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import org.openapitools.client.model.Animal;
|
||||
import org.openapitools.client.model.BigCat;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Cat
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Category
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for ClassModel
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Client
|
||||
*/
|
||||
|
||||
@@ -18,25 +18,22 @@ 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.util.HashMap;
|
||||
import java.util.Map;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesString
|
||||
* Model tests for DeprecatedObject
|
||||
*/
|
||||
public class AdditionalPropertiesStringTest {
|
||||
private final AdditionalPropertiesString model = new AdditionalPropertiesString();
|
||||
public class DeprecatedObjectTest {
|
||||
private final DeprecatedObject model = new DeprecatedObject();
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesString
|
||||
* Model tests for DeprecatedObject
|
||||
*/
|
||||
@Test
|
||||
public void testAdditionalPropertiesString() {
|
||||
// TODO: test AdditionalPropertiesString
|
||||
public void testDeprecatedObject() {
|
||||
// TODO: test DeprecatedObject
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -26,7 +26,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Dog
|
||||
*/
|
||||
|
||||
@@ -19,12 +19,12 @@ import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for EnumArrays
|
||||
*/
|
||||
|
||||
@@ -17,7 +17,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for EnumClass
|
||||
*/
|
||||
|
||||
@@ -19,11 +19,17 @@ import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import org.openapitools.client.model.OuterEnum;
|
||||
import org.openapitools.client.model.OuterEnumDefaultValue;
|
||||
import org.openapitools.client.model.OuterEnumInteger;
|
||||
import org.openapitools.client.model.OuterEnumIntegerDefaultValue;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for EnumTest
|
||||
*/
|
||||
@@ -78,4 +84,28 @@ public class EnumTestTest {
|
||||
// TODO: test outerEnum
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'outerEnumInteger'
|
||||
*/
|
||||
@Test
|
||||
public void outerEnumIntegerTest() {
|
||||
// TODO: test outerEnumInteger
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'outerEnumDefaultValue'
|
||||
*/
|
||||
@Test
|
||||
public void outerEnumDefaultValueTest() {
|
||||
// TODO: test outerEnumDefaultValue
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'outerEnumIntegerDefaultValue'
|
||||
*/
|
||||
@Test
|
||||
public void outerEnumIntegerDefaultValueTest() {
|
||||
// TODO: test outerEnumIntegerDefaultValue
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -25,27 +25,34 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesNumber
|
||||
* Model tests for FakeBigDecimalMap200Response
|
||||
*/
|
||||
public class AdditionalPropertiesNumberTest {
|
||||
private final AdditionalPropertiesNumber model = new AdditionalPropertiesNumber();
|
||||
public class FakeBigDecimalMap200ResponseTest {
|
||||
private final FakeBigDecimalMap200Response model = new FakeBigDecimalMap200Response();
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesNumber
|
||||
* Model tests for FakeBigDecimalMap200Response
|
||||
*/
|
||||
@Test
|
||||
public void testAdditionalPropertiesNumber() {
|
||||
// TODO: test AdditionalPropertiesNumber
|
||||
public void testFakeBigDecimalMap200Response() {
|
||||
// TODO: test FakeBigDecimalMap200Response
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'name'
|
||||
* Test the property 'someId'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
// TODO: test name
|
||||
public void someIdTest() {
|
||||
// TODO: test someId
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'someMap'
|
||||
*/
|
||||
@Test
|
||||
public void someMapTest() {
|
||||
// TODO: test someMap
|
||||
}
|
||||
|
||||
}
|
||||
@@ -19,13 +19,13 @@ import com.fasterxml.jackson.annotation.JsonCreator;
|
||||
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.ModelFile;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for FileSchemaTestClass
|
||||
*/
|
||||
|
||||
@@ -18,33 +18,31 @@ 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.util.HashMap;
|
||||
import java.util.Map;
|
||||
import org.openapitools.client.model.Foo;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesObject
|
||||
* Model tests for FooGetDefaultResponse
|
||||
*/
|
||||
public class AdditionalPropertiesObjectTest {
|
||||
private final AdditionalPropertiesObject model = new AdditionalPropertiesObject();
|
||||
public class FooGetDefaultResponseTest {
|
||||
private final FooGetDefaultResponse model = new FooGetDefaultResponse();
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesObject
|
||||
* Model tests for FooGetDefaultResponse
|
||||
*/
|
||||
@Test
|
||||
public void testAdditionalPropertiesObject() {
|
||||
// TODO: test AdditionalPropertiesObject
|
||||
public void testFooGetDefaultResponse() {
|
||||
// TODO: test FooGetDefaultResponse
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'name'
|
||||
* Test the property 'string'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
// TODO: test name
|
||||
public void stringTest() {
|
||||
// TODO: test string
|
||||
}
|
||||
|
||||
}
|
||||
@@ -18,33 +18,30 @@ 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.util.HashMap;
|
||||
import java.util.Map;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesAnyType
|
||||
* Model tests for Foo
|
||||
*/
|
||||
public class AdditionalPropertiesAnyTypeTest {
|
||||
private final AdditionalPropertiesAnyType model = new AdditionalPropertiesAnyType();
|
||||
public class FooTest {
|
||||
private final Foo model = new Foo();
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesAnyType
|
||||
* Model tests for Foo
|
||||
*/
|
||||
@Test
|
||||
public void testAdditionalPropertiesAnyType() {
|
||||
// TODO: test AdditionalPropertiesAnyType
|
||||
public void testFoo() {
|
||||
// TODO: test Foo
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'name'
|
||||
* Test the property 'bar'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
// TODO: test name
|
||||
public void barTest() {
|
||||
// TODO: test bar
|
||||
}
|
||||
|
||||
}
|
||||
@@ -27,7 +27,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for FormatTest
|
||||
*/
|
||||
@@ -90,6 +89,14 @@ public class FormatTestTest {
|
||||
// TODO: test _double
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'decimal'
|
||||
*/
|
||||
@Test
|
||||
public void decimalTest() {
|
||||
// TODO: test decimal
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'string'
|
||||
*/
|
||||
@@ -147,11 +154,19 @@ public class FormatTestTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'bigDecimal'
|
||||
* Test the property 'patternWithDigits'
|
||||
*/
|
||||
@Test
|
||||
public void bigDecimalTest() {
|
||||
// TODO: test bigDecimal
|
||||
public void patternWithDigitsTest() {
|
||||
// TODO: test patternWithDigits
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'patternWithDigitsAndDelimiter'
|
||||
*/
|
||||
@Test
|
||||
public void patternWithDigitsAndDelimiterTest() {
|
||||
// TODO: test patternWithDigitsAndDelimiter
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for HasOnlyReadOnly
|
||||
*/
|
||||
|
||||
@@ -18,33 +18,34 @@ 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.util.HashMap;
|
||||
import java.util.Map;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesBoolean
|
||||
* Model tests for HealthCheckResult
|
||||
*/
|
||||
public class AdditionalPropertiesBooleanTest {
|
||||
private final AdditionalPropertiesBoolean model = new AdditionalPropertiesBoolean();
|
||||
public class HealthCheckResultTest {
|
||||
private final HealthCheckResult model = new HealthCheckResult();
|
||||
|
||||
/**
|
||||
* Model tests for AdditionalPropertiesBoolean
|
||||
* Model tests for HealthCheckResult
|
||||
*/
|
||||
@Test
|
||||
public void testAdditionalPropertiesBoolean() {
|
||||
// TODO: test AdditionalPropertiesBoolean
|
||||
public void testHealthCheckResult() {
|
||||
// TODO: test HealthCheckResult
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'name'
|
||||
* Test the property 'nullableMessage'
|
||||
*/
|
||||
@Test
|
||||
public void nameTest() {
|
||||
// TODO: test name
|
||||
public void nullableMessageTest() {
|
||||
// TODO: test nullableMessage
|
||||
}
|
||||
|
||||
}
|
||||
@@ -24,7 +24,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for MapTest
|
||||
*/
|
||||
|
||||
@@ -27,7 +27,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for MixedPropertiesAndAdditionalPropertiesClass
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Model200Response
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for ModelApiResponse
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for ModelFile
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for ModelList
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for ModelReturn
|
||||
*/
|
||||
|
||||
@@ -22,7 +22,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Name
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
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.time.LocalDate;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import org.openapitools.jackson.nullable.JsonNullable;
|
||||
import java.util.NoSuchElementException;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Model tests for NullableClass
|
||||
*/
|
||||
public class NullableClassTest {
|
||||
private final NullableClass model = new NullableClass();
|
||||
|
||||
/**
|
||||
* Model tests for NullableClass
|
||||
*/
|
||||
@Test
|
||||
public void testNullableClass() {
|
||||
// TODO: test NullableClass
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'integerProp'
|
||||
*/
|
||||
@Test
|
||||
public void integerPropTest() {
|
||||
// TODO: test integerProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'numberProp'
|
||||
*/
|
||||
@Test
|
||||
public void numberPropTest() {
|
||||
// TODO: test numberProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'booleanProp'
|
||||
*/
|
||||
@Test
|
||||
public void booleanPropTest() {
|
||||
// TODO: test booleanProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'stringProp'
|
||||
*/
|
||||
@Test
|
||||
public void stringPropTest() {
|
||||
// TODO: test stringProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'dateProp'
|
||||
*/
|
||||
@Test
|
||||
public void datePropTest() {
|
||||
// TODO: test dateProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'datetimeProp'
|
||||
*/
|
||||
@Test
|
||||
public void datetimePropTest() {
|
||||
// TODO: test datetimeProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'arrayNullableProp'
|
||||
*/
|
||||
@Test
|
||||
public void arrayNullablePropTest() {
|
||||
// TODO: test arrayNullableProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'arrayAndItemsNullableProp'
|
||||
*/
|
||||
@Test
|
||||
public void arrayAndItemsNullablePropTest() {
|
||||
// TODO: test arrayAndItemsNullableProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'arrayItemsNullable'
|
||||
*/
|
||||
@Test
|
||||
public void arrayItemsNullableTest() {
|
||||
// TODO: test arrayItemsNullable
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'objectNullableProp'
|
||||
*/
|
||||
@Test
|
||||
public void objectNullablePropTest() {
|
||||
// TODO: test objectNullableProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'objectAndItemsNullableProp'
|
||||
*/
|
||||
@Test
|
||||
public void objectAndItemsNullablePropTest() {
|
||||
// TODO: test objectAndItemsNullableProp
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'objectItemsNullable'
|
||||
*/
|
||||
@Test
|
||||
public void objectItemsNullableTest() {
|
||||
// TODO: test objectItemsNullable
|
||||
}
|
||||
|
||||
}
|
||||
@@ -23,7 +23,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for NumberOnly
|
||||
*/
|
||||
|
||||
@@ -20,64 +20,57 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
import com.fasterxml.jackson.annotation.JsonValue;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import org.openapitools.client.model.DeprecatedObject;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for TypeHolderDefault
|
||||
* Model tests for ObjectWithDeprecatedFields
|
||||
*/
|
||||
public class TypeHolderDefaultTest {
|
||||
private final TypeHolderDefault model = new TypeHolderDefault();
|
||||
public class ObjectWithDeprecatedFieldsTest {
|
||||
private final ObjectWithDeprecatedFields model = new ObjectWithDeprecatedFields();
|
||||
|
||||
/**
|
||||
* Model tests for TypeHolderDefault
|
||||
* Model tests for ObjectWithDeprecatedFields
|
||||
*/
|
||||
@Test
|
||||
public void testTypeHolderDefault() {
|
||||
// TODO: test TypeHolderDefault
|
||||
public void testObjectWithDeprecatedFields() {
|
||||
// TODO: test ObjectWithDeprecatedFields
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'stringItem'
|
||||
* Test the property 'uuid'
|
||||
*/
|
||||
@Test
|
||||
public void stringItemTest() {
|
||||
// TODO: test stringItem
|
||||
public void uuidTest() {
|
||||
// TODO: test uuid
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'numberItem'
|
||||
* Test the property 'id'
|
||||
*/
|
||||
@Test
|
||||
public void numberItemTest() {
|
||||
// TODO: test numberItem
|
||||
public void idTest() {
|
||||
// TODO: test id
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'integerItem'
|
||||
* Test the property 'deprecatedRef'
|
||||
*/
|
||||
@Test
|
||||
public void integerItemTest() {
|
||||
// TODO: test integerItem
|
||||
public void deprecatedRefTest() {
|
||||
// TODO: test deprecatedRef
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'boolItem'
|
||||
* Test the property 'bars'
|
||||
*/
|
||||
@Test
|
||||
public void boolItemTest() {
|
||||
// TODO: test boolItem
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the property 'arrayItem'
|
||||
*/
|
||||
@Test
|
||||
public void arrayItemTest() {
|
||||
// TODO: test arrayItem
|
||||
public void barsTest() {
|
||||
// TODO: test bars
|
||||
}
|
||||
|
||||
}
|
||||
@@ -23,7 +23,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for Order
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,6 @@ import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
|
||||
/**
|
||||
* Model tests for OuterComposite
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* 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.model;
|
||||
|
||||
import org.junit.Assert;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
/**
|
||||
* Model tests for OuterEnumDefaultValue
|
||||
*/
|
||||
public class OuterEnumDefaultValueTest {
|
||||
/**
|
||||
* Model tests for OuterEnumDefaultValue
|
||||
*/
|
||||
@Test
|
||||
public void testOuterEnumDefaultValue() {
|
||||
// TODO: test OuterEnumDefaultValue
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user