diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java
index 1260b334af7..96f053d3530 100644
--- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java
+++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java
@@ -619,7 +619,15 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
public String toDefaultValue(Schema p) {
if (ModelUtils.isBooleanSchema(p)) {
if (p.getDefault() != null) {
- if (p.getDefault().toString().equalsIgnoreCase("false"))
+ if (Boolean.valueOf(p.getDefault().toString()) == false)
+ return "False";
+ else
+ return "True";
+ }
+ // include fallback to example, default defined as server only
+ // example is not defined as server only
+ if (p.getExample() != null) {
+ if (Boolean.valueOf(p.getExample().toString()) == false)
return "False";
else
return "True";
@@ -632,10 +640,24 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
if (p.getDefault() != null) {
return p.getDefault().toString();
}
+ // default numbers are not yet returned by v2 spec openAPI results
+ // https://github.com/swagger-api/swagger-parser/issues/971
+ // include fallback to example, default defined as server only
+ // example is not defined as server only
+ if (p.getExample() != null) {
+ return p.getExample().toString();
+ }
} else if (ModelUtils.isIntegerSchema(p)) {
if (p.getDefault() != null) {
return p.getDefault().toString();
}
+ // default integers are not yet returned by v2 spec openAPI results
+ // https://github.com/swagger-api/swagger-parser/issues/971
+ // include fallback to example, default defined as server only
+ // example is not defined as server only
+ if (p.getExample() != null) {
+ return p.getExample().toString();
+ }
} else if (ModelUtils.isStringSchema(p)) {
if (p.getDefault() != null) {
if (Pattern.compile("\r\n|\r|\n").matcher((String) p.getDefault()).find())
@@ -643,6 +665,23 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
else
return "'" + p.getDefault() + "'";
}
+ // include fallback to example, default defined as server only
+ // example is not defined as server only
+ if (p.getExample() != null) {
+ if (Pattern.compile("\r\n|\r|\n").matcher((String) p.getExample()).find())
+ return "'''" + p.getExample() + "'''";
+ else
+ return "'" + p.getExample() + "'";
+ }
+ } else if (ModelUtils.isArraySchema(p)) {
+ if (p.getDefault() != null) {
+ return p.getDefault().toString();
+ }
+ // include fallback to example, default defined as server only
+ // example is not defined as server only
+ if (p.getExample() != null) {
+ return p.getExample().toString();
+ }
}
return null;
diff --git a/modules/openapi-generator/src/main/resources/python/model.mustache b/modules/openapi-generator/src/main/resources/python/model.mustache
index cde5cb3718f..c3ab5cb0209 100644
--- a/modules/openapi-generator/src/main/resources/python/model.mustache
+++ b/modules/openapi-generator/src/main/resources/python/model.mustache
@@ -173,7 +173,8 @@ class {{classname}}(object):
{{#discriminator}}
def get_real_child_model(self, data):
"""Returns the real base class specified by the discriminator"""
- discriminator_value = data[self.discriminator]
+ discriminator_key = self.attribute_map[self.discriminator]
+ discriminator_value = data[discriminator_key]
return self.discriminator_value_class_map.get(discriminator_value)
{{/discriminator}}
diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
index 2a57404e601..d4b466e5c7c 100644
--- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
+++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml
@@ -1574,3 +1574,63 @@ definitions:
sourceURI:
description: 'Test capitalization'
type: string
+ TypeHolderDefault:
+ type: object
+ required:
+ - string_item
+ - number_item
+ - integer_item
+ - bool_item
+ - array_item
+ properties:
+ string_item:
+ type: string
+ default: what
+ number_item:
+ type: number
+ default: 1.234
+ integer_item:
+ type: integer
+ default: -2
+ bool_item:
+ type: boolean
+ default: true
+ array_item:
+ type: array
+ items:
+ type: integer
+ default:
+ - 0
+ - 1
+ - 2
+ - 3
+ TypeHolderExample:
+ type: object
+ required:
+ - string_item
+ - number_item
+ - integer_item
+ - bool_item
+ - array_item
+ properties:
+ string_item:
+ type: string
+ example: what
+ number_item:
+ type: number
+ example: 1.234
+ integer_item:
+ type: integer
+ example: -2
+ bool_item:
+ type: boolean
+ example: true
+ array_item:
+ type: array
+ items:
+ type: integer
+ example:
+ - 0
+ - 1
+ - 2
+ - 3
diff --git a/samples/client/petstore-security-test/python/.openapi-generator/VERSION b/samples/client/petstore-security-test/python/.openapi-generator/VERSION
index d077ffb477a..afa63656064 100644
--- a/samples/client/petstore-security-test/python/.openapi-generator/VERSION
+++ b/samples/client/petstore-security-test/python/.openapi-generator/VERSION
@@ -1 +1 @@
-3.3.4-SNAPSHOT
\ No newline at end of file
+4.0.0-SNAPSHOT
\ No newline at end of file
diff --git a/samples/client/petstore-security-test/python/README.md b/samples/client/petstore-security-test/python/README.md
index e027eb66ca0..72ef2b830b1 100644
--- a/samples/client/petstore-security-test/python/README.md
+++ b/samples/client/petstore-security-test/python/README.md
@@ -53,11 +53,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.FakeApi(petstore_api.ApiClient(configuration))
-unknown_base_type = petstore_api.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | (optional)
+test_code_inject____end____rn_n_r = 'test_code_inject____end____rn_n_r_example' # str | To test code injection */ ' \\\" =end -- \\\\r\\\\n \\\\n \\\\r (optional)
try:
# To test code injection */ ' \" =end -- \\r\\n \\n \\r
- api_instance.test_code_inject____end__rn_n_r(unknown_base_type=unknown_base_type)
+ api_instance.test_code_inject____end__rn_n_r(test_code_inject____end____rn_n_r=test_code_inject____end____rn_n_r)
except ApiException as e:
print("Exception when calling FakeApi->test_code_inject____end__rn_n_r: %s\n" % e)
diff --git a/samples/client/petstore-security-test/python/docs/FakeApi.md b/samples/client/petstore-security-test/python/docs/FakeApi.md
index 72e768ee32a..559e39fb202 100644
--- a/samples/client/petstore-security-test/python/docs/FakeApi.md
+++ b/samples/client/petstore-security-test/python/docs/FakeApi.md
@@ -8,7 +8,7 @@ Method | HTTP request | Description
# **test_code_inject____end__rn_n_r**
-> test_code_inject____end__rn_n_r(unknown_base_type=unknown_base_type)
+> test_code_inject____end__rn_n_r(test_code_inject____end____rn_n_r=test_code_inject____end____rn_n_r)
To test code injection */ ' \" =end -- \\r\\n \\n \\r
@@ -24,11 +24,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.FakeApi()
-unknown_base_type = petstore_api.UNKNOWN_BASE_TYPE() # UNKNOWN_BASE_TYPE | (optional)
+test_code_inject____end____rn_n_r = 'test_code_inject____end____rn_n_r_example' # str | To test code injection */ ' \\\" =end -- \\\\r\\\\n \\\\n \\\\r (optional)
try:
# To test code injection */ ' \" =end -- \\r\\n \\n \\r
- api_instance.test_code_inject____end__rn_n_r(unknown_base_type=unknown_base_type)
+ api_instance.test_code_inject____end__rn_n_r(test_code_inject____end____rn_n_r=test_code_inject____end____rn_n_r)
except ApiException as e:
print("Exception when calling FakeApi->test_code_inject____end__rn_n_r: %s\n" % e)
```
@@ -37,7 +37,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **unknown_base_type** | [**UNKNOWN_BASE_TYPE**](UNKNOWN_BASE_TYPE.md)| | [optional]
+ **test_code_inject____end____rn_n_r** | **str**| To test code injection */ ' \\\" =end -- \\\\r\\\\n \\\\n \\\\r | [optional]
### Return type
@@ -49,7 +49,7 @@ No authorization required
### HTTP request headers
- - **Content-Type**: application/json, */ \" =end --
+ - **Content-Type**: application/x-www-form-urlencoded, */ \" =end --
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/samples/client/petstore-security-test/python/petstore_api/api/fake_api.py b/samples/client/petstore-security-test/python/petstore_api/api/fake_api.py
index 1a5c77c31dc..24a1c4fe1b9 100644
--- a/samples/client/petstore-security-test/python/petstore_api/api/fake_api.py
+++ b/samples/client/petstore-security-test/python/petstore_api/api/fake_api.py
@@ -43,7 +43,7 @@ class FakeApi(object):
>>> result = thread.get()
:param async_req bool
- :param UNKNOWN_BASE_TYPE unknown_base_type:
+ :param str test_code_inject____end____rn_n_r: To test code injection */ ' \\\" =end -- \\\\r\\\\n \\\\n \\\\r
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -65,7 +65,7 @@ class FakeApi(object):
>>> result = thread.get()
:param async_req bool
- :param UNKNOWN_BASE_TYPE unknown_base_type:
+ :param str test_code_inject____end____rn_n_r: To test code injection */ ' \\\" =end -- \\\\r\\\\n \\\\n \\\\r
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -73,7 +73,7 @@ class FakeApi(object):
local_var_params = locals()
- all_params = ['unknown_base_type'] # noqa: E501
+ all_params = ['test_code_inject____end____rn_n_r'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -98,13 +98,13 @@ class FakeApi(object):
form_params = []
local_var_files = {}
+ if 'test_code_inject____end____rn_n_r' in local_var_params:
+ form_params.append(('test code inject */ ' " =end -- \r\n \n \r', local_var_params['test_code_inject____end____rn_n_r'])) # noqa: E501
body_params = None
- if 'unknown_base_type' in local_var_params:
- body_params = local_var_params['unknown_base_type']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json', '*/ \" =end -- ']) # noqa: E501
+ ['application/x-www-form-urlencoded', '*/ \" =end -- ']) # noqa: E501
# Authentication setting
auth_settings = [] # noqa: E501
diff --git a/samples/client/petstore-security-test/python/petstore_api/api_client.py b/samples/client/petstore-security-test/python/petstore_api/api_client.py
index d22cf174fac..acf72f112ea 100644
--- a/samples/client/petstore-security-test/python/petstore_api/api_client.py
+++ b/samples/client/petstore-security-test/python/petstore_api/api_client.py
@@ -64,7 +64,7 @@ class ApiClient(object):
_pool = None
def __init__(self, configuration=None, header_name=None, header_value=None,
- cookie=None, pool_threads=None):
+ cookie=None, pool_threads=1):
if configuration is None:
configuration = Configuration()
self.configuration = configuration
diff --git a/samples/client/petstore/csharp/OpenAPIClient/README.md b/samples/client/petstore/csharp/OpenAPIClient/README.md
index 8dc6d97251c..b5d79ff2d96 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/README.md
+++ b/samples/client/petstore/csharp/OpenAPIClient/README.md
@@ -169,6 +169,8 @@ Class | Method | HTTP request | Description
- [Model.Return](docs/Return.md)
- [Model.SpecialModelName](docs/SpecialModelName.md)
- [Model.Tag](docs/Tag.md)
+ - [Model.TypeHolderDefault](docs/TypeHolderDefault.md)
+ - [Model.TypeHolderExample](docs/TypeHolderExample.md)
- [Model.User](docs/User.md)
diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderDefault.md b/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..ee75c65ff1f
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderDefault.md
@@ -0,0 +1,13 @@
+# Org.OpenAPITools.Model.TypeHolderDefault
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**StringItem** | **string** | | [default to "what"]
+**NumberItem** | **decimal?** | |
+**IntegerItem** | **int?** | |
+**BoolItem** | **bool?** | | [default to true]
+**ArrayItem** | **List<int?>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderExample.md b/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..0fec0db562e
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderExample.md
@@ -0,0 +1,13 @@
+# Org.OpenAPITools.Model.TypeHolderExample
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**StringItem** | **string** | |
+**NumberItem** | **decimal?** | |
+**IntegerItem** | **int?** | |
+**BoolItem** | **bool?** | |
+**ArrayItem** | **List<int?>** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs
new file mode 100644
index 00000000000..f4c78879bf0
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderDefaultTests.cs
@@ -0,0 +1,112 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using NUnit.Framework;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test
+{
+ ///
+ /// Class for testing TypeHolderDefault
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ [TestFixture]
+ public class TypeHolderDefaultTests
+ {
+ // TODO uncomment below to declare an instance variable for TypeHolderDefault
+ //private TypeHolderDefault instance;
+
+ ///
+ /// Setup before each test
+ ///
+ [SetUp]
+ public void Init()
+ {
+ // TODO uncomment below to create an instance of TypeHolderDefault
+ //instance = new TypeHolderDefault();
+ }
+
+ ///
+ /// Clean up after each test
+ ///
+ [TearDown]
+ public void Cleanup()
+ {
+
+ }
+
+ ///
+ /// Test an instance of TypeHolderDefault
+ ///
+ [Test]
+ public void TypeHolderDefaultInstanceTest()
+ {
+ // TODO uncomment below to test "IsInstanceOfType" TypeHolderDefault
+ //Assert.IsInstanceOfType (instance, "variable 'instance' is a TypeHolderDefault");
+ }
+
+
+ ///
+ /// Test the property 'StringItem'
+ ///
+ [Test]
+ public void StringItemTest()
+ {
+ // TODO unit test for the property 'StringItem'
+ }
+ ///
+ /// Test the property 'NumberItem'
+ ///
+ [Test]
+ public void NumberItemTest()
+ {
+ // TODO unit test for the property 'NumberItem'
+ }
+ ///
+ /// Test the property 'IntegerItem'
+ ///
+ [Test]
+ public void IntegerItemTest()
+ {
+ // TODO unit test for the property 'IntegerItem'
+ }
+ ///
+ /// Test the property 'BoolItem'
+ ///
+ [Test]
+ public void BoolItemTest()
+ {
+ // TODO unit test for the property 'BoolItem'
+ }
+ ///
+ /// Test the property 'ArrayItem'
+ ///
+ [Test]
+ public void ArrayItemTest()
+ {
+ // TODO unit test for the property 'ArrayItem'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs
new file mode 100644
index 00000000000..a4760f2c4c9
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools.Test/Model/TypeHolderExampleTests.cs
@@ -0,0 +1,112 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+
+using NUnit.Framework;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using Org.OpenAPITools.Api;
+using Org.OpenAPITools.Model;
+using Org.OpenAPITools.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace Org.OpenAPITools.Test
+{
+ ///
+ /// Class for testing TypeHolderExample
+ ///
+ ///
+ /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
+ /// Please update the test case below to test the model.
+ ///
+ [TestFixture]
+ public class TypeHolderExampleTests
+ {
+ // TODO uncomment below to declare an instance variable for TypeHolderExample
+ //private TypeHolderExample instance;
+
+ ///
+ /// Setup before each test
+ ///
+ [SetUp]
+ public void Init()
+ {
+ // TODO uncomment below to create an instance of TypeHolderExample
+ //instance = new TypeHolderExample();
+ }
+
+ ///
+ /// Clean up after each test
+ ///
+ [TearDown]
+ public void Cleanup()
+ {
+
+ }
+
+ ///
+ /// Test an instance of TypeHolderExample
+ ///
+ [Test]
+ public void TypeHolderExampleInstanceTest()
+ {
+ // TODO uncomment below to test "IsInstanceOfType" TypeHolderExample
+ //Assert.IsInstanceOfType (instance, "variable 'instance' is a TypeHolderExample");
+ }
+
+
+ ///
+ /// Test the property 'StringItem'
+ ///
+ [Test]
+ public void StringItemTest()
+ {
+ // TODO unit test for the property 'StringItem'
+ }
+ ///
+ /// Test the property 'NumberItem'
+ ///
+ [Test]
+ public void NumberItemTest()
+ {
+ // TODO unit test for the property 'NumberItem'
+ }
+ ///
+ /// Test the property 'IntegerItem'
+ ///
+ [Test]
+ public void IntegerItemTest()
+ {
+ // TODO unit test for the property 'IntegerItem'
+ }
+ ///
+ /// Test the property 'BoolItem'
+ ///
+ [Test]
+ public void BoolItemTest()
+ {
+ // TODO unit test for the property 'BoolItem'
+ }
+ ///
+ /// Test the property 'ArrayItem'
+ ///
+ [Test]
+ public void ArrayItemTest()
+ {
+ // TODO unit test for the property 'ArrayItem'
+ }
+
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderDefault.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderDefault.cs
new file mode 100644
index 00000000000..1409cbbf136
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderDefault.cs
@@ -0,0 +1,233 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// TypeHolderDefault
+ ///
+ [DataContract]
+ public partial class TypeHolderDefault : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected TypeHolderDefault() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// stringItem (required) (default to "what").
+ /// numberItem (required).
+ /// integerItem (required).
+ /// boolItem (required) (default to true).
+ /// arrayItem (required).
+ public TypeHolderDefault(string stringItem = "what", decimal? numberItem = default(decimal?), int? integerItem = default(int?), bool? boolItem = true, List arrayItem = default(List))
+ {
+ // to ensure "stringItem" is required (not null)
+ if (stringItem == null)
+ {
+ throw new InvalidDataException("stringItem is a required property for TypeHolderDefault and cannot be null");
+ }
+ else
+ {
+ this.StringItem = stringItem;
+ }
+ // to ensure "numberItem" is required (not null)
+ if (numberItem == null)
+ {
+ throw new InvalidDataException("numberItem is a required property for TypeHolderDefault and cannot be null");
+ }
+ else
+ {
+ this.NumberItem = numberItem;
+ }
+ // to ensure "integerItem" is required (not null)
+ if (integerItem == null)
+ {
+ throw new InvalidDataException("integerItem is a required property for TypeHolderDefault and cannot be null");
+ }
+ else
+ {
+ this.IntegerItem = integerItem;
+ }
+ // to ensure "boolItem" is required (not null)
+ if (boolItem == null)
+ {
+ throw new InvalidDataException("boolItem is a required property for TypeHolderDefault and cannot be null");
+ }
+ else
+ {
+ this.BoolItem = boolItem;
+ }
+ // to ensure "arrayItem" is required (not null)
+ if (arrayItem == null)
+ {
+ throw new InvalidDataException("arrayItem is a required property for TypeHolderDefault and cannot be null");
+ }
+ else
+ {
+ this.ArrayItem = arrayItem;
+ }
+ }
+
+ ///
+ /// Gets or Sets StringItem
+ ///
+ [DataMember(Name="string_item", EmitDefaultValue=false)]
+ public string StringItem { get; set; }
+
+ ///
+ /// Gets or Sets NumberItem
+ ///
+ [DataMember(Name="number_item", EmitDefaultValue=false)]
+ public decimal? NumberItem { get; set; }
+
+ ///
+ /// Gets or Sets IntegerItem
+ ///
+ [DataMember(Name="integer_item", EmitDefaultValue=false)]
+ public int? IntegerItem { get; set; }
+
+ ///
+ /// Gets or Sets BoolItem
+ ///
+ [DataMember(Name="bool_item", EmitDefaultValue=false)]
+ public bool? BoolItem { get; set; }
+
+ ///
+ /// Gets or Sets ArrayItem
+ ///
+ [DataMember(Name="array_item", EmitDefaultValue=false)]
+ public List ArrayItem { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class TypeHolderDefault {\n");
+ sb.Append(" StringItem: ").Append(StringItem).Append("\n");
+ sb.Append(" NumberItem: ").Append(NumberItem).Append("\n");
+ sb.Append(" IntegerItem: ").Append(IntegerItem).Append("\n");
+ sb.Append(" BoolItem: ").Append(BoolItem).Append("\n");
+ sb.Append(" ArrayItem: ").Append(ArrayItem).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as TypeHolderDefault);
+ }
+
+ ///
+ /// Returns true if TypeHolderDefault instances are equal
+ ///
+ /// Instance of TypeHolderDefault to be compared
+ /// Boolean
+ public bool Equals(TypeHolderDefault input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.StringItem == input.StringItem ||
+ (this.StringItem != null &&
+ this.StringItem.Equals(input.StringItem))
+ ) &&
+ (
+ this.NumberItem == input.NumberItem ||
+ (this.NumberItem != null &&
+ this.NumberItem.Equals(input.NumberItem))
+ ) &&
+ (
+ this.IntegerItem == input.IntegerItem ||
+ (this.IntegerItem != null &&
+ this.IntegerItem.Equals(input.IntegerItem))
+ ) &&
+ (
+ this.BoolItem == input.BoolItem ||
+ (this.BoolItem != null &&
+ this.BoolItem.Equals(input.BoolItem))
+ ) &&
+ (
+ this.ArrayItem == input.ArrayItem ||
+ this.ArrayItem != null &&
+ this.ArrayItem.SequenceEqual(input.ArrayItem)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.StringItem != null)
+ hashCode = hashCode * 59 + this.StringItem.GetHashCode();
+ if (this.NumberItem != null)
+ hashCode = hashCode * 59 + this.NumberItem.GetHashCode();
+ if (this.IntegerItem != null)
+ hashCode = hashCode * 59 + this.IntegerItem.GetHashCode();
+ if (this.BoolItem != null)
+ hashCode = hashCode * 59 + this.BoolItem.GetHashCode();
+ if (this.ArrayItem != null)
+ hashCode = hashCode * 59 + this.ArrayItem.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs
new file mode 100644
index 00000000000..cb590435f01
--- /dev/null
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs
@@ -0,0 +1,233 @@
+/*
+ * OpenAPI Petstore
+ *
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ * Generated by: https://github.com/openapitools/openapi-generator.git
+ */
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using OpenAPIDateConverter = Org.OpenAPITools.Client.OpenAPIDateConverter;
+
+namespace Org.OpenAPITools.Model
+{
+ ///
+ /// TypeHolderExample
+ ///
+ [DataContract]
+ public partial class TypeHolderExample : IEquatable, IValidatableObject
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ [JsonConstructorAttribute]
+ protected TypeHolderExample() { }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// stringItem (required).
+ /// numberItem (required).
+ /// integerItem (required).
+ /// boolItem (required).
+ /// arrayItem (required).
+ public TypeHolderExample(string stringItem = default(string), decimal? numberItem = default(decimal?), int? integerItem = default(int?), bool? boolItem = default(bool?), List arrayItem = default(List))
+ {
+ // to ensure "stringItem" is required (not null)
+ if (stringItem == null)
+ {
+ throw new InvalidDataException("stringItem is a required property for TypeHolderExample and cannot be null");
+ }
+ else
+ {
+ this.StringItem = stringItem;
+ }
+ // to ensure "numberItem" is required (not null)
+ if (numberItem == null)
+ {
+ throw new InvalidDataException("numberItem is a required property for TypeHolderExample and cannot be null");
+ }
+ else
+ {
+ this.NumberItem = numberItem;
+ }
+ // to ensure "integerItem" is required (not null)
+ if (integerItem == null)
+ {
+ throw new InvalidDataException("integerItem is a required property for TypeHolderExample and cannot be null");
+ }
+ else
+ {
+ this.IntegerItem = integerItem;
+ }
+ // to ensure "boolItem" is required (not null)
+ if (boolItem == null)
+ {
+ throw new InvalidDataException("boolItem is a required property for TypeHolderExample and cannot be null");
+ }
+ else
+ {
+ this.BoolItem = boolItem;
+ }
+ // to ensure "arrayItem" is required (not null)
+ if (arrayItem == null)
+ {
+ throw new InvalidDataException("arrayItem is a required property for TypeHolderExample and cannot be null");
+ }
+ else
+ {
+ this.ArrayItem = arrayItem;
+ }
+ }
+
+ ///
+ /// Gets or Sets StringItem
+ ///
+ [DataMember(Name="string_item", EmitDefaultValue=false)]
+ public string StringItem { get; set; }
+
+ ///
+ /// Gets or Sets NumberItem
+ ///
+ [DataMember(Name="number_item", EmitDefaultValue=false)]
+ public decimal? NumberItem { get; set; }
+
+ ///
+ /// Gets or Sets IntegerItem
+ ///
+ [DataMember(Name="integer_item", EmitDefaultValue=false)]
+ public int? IntegerItem { get; set; }
+
+ ///
+ /// Gets or Sets BoolItem
+ ///
+ [DataMember(Name="bool_item", EmitDefaultValue=false)]
+ public bool? BoolItem { get; set; }
+
+ ///
+ /// Gets or Sets ArrayItem
+ ///
+ [DataMember(Name="array_item", EmitDefaultValue=false)]
+ public List ArrayItem { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class TypeHolderExample {\n");
+ sb.Append(" StringItem: ").Append(StringItem).Append("\n");
+ sb.Append(" NumberItem: ").Append(NumberItem).Append("\n");
+ sb.Append(" IntegerItem: ").Append(IntegerItem).Append("\n");
+ sb.Append(" BoolItem: ").Append(BoolItem).Append("\n");
+ sb.Append(" ArrayItem: ").Append(ArrayItem).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as TypeHolderExample);
+ }
+
+ ///
+ /// Returns true if TypeHolderExample instances are equal
+ ///
+ /// Instance of TypeHolderExample to be compared
+ /// Boolean
+ public bool Equals(TypeHolderExample input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.StringItem == input.StringItem ||
+ (this.StringItem != null &&
+ this.StringItem.Equals(input.StringItem))
+ ) &&
+ (
+ this.NumberItem == input.NumberItem ||
+ (this.NumberItem != null &&
+ this.NumberItem.Equals(input.NumberItem))
+ ) &&
+ (
+ this.IntegerItem == input.IntegerItem ||
+ (this.IntegerItem != null &&
+ this.IntegerItem.Equals(input.IntegerItem))
+ ) &&
+ (
+ this.BoolItem == input.BoolItem ||
+ (this.BoolItem != null &&
+ this.BoolItem.Equals(input.BoolItem))
+ ) &&
+ (
+ this.ArrayItem == input.ArrayItem ||
+ this.ArrayItem != null &&
+ this.ArrayItem.SequenceEqual(input.ArrayItem)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.StringItem != null)
+ hashCode = hashCode * 59 + this.StringItem.GetHashCode();
+ if (this.NumberItem != null)
+ hashCode = hashCode * 59 + this.NumberItem.GetHashCode();
+ if (this.IntegerItem != null)
+ hashCode = hashCode * 59 + this.IntegerItem.GetHashCode();
+ if (this.BoolItem != null)
+ hashCode = hashCode * 59 + this.BoolItem.GetHashCode();
+ if (this.ArrayItem != null)
+ hashCode = hashCode * 59 + this.ArrayItem.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+
+}
diff --git a/samples/client/petstore/go/go-petstore/README.md b/samples/client/petstore/go/go-petstore/README.md
index c6ffd9374bf..4bca622853b 100644
--- a/samples/client/petstore/go/go-petstore/README.md
+++ b/samples/client/petstore/go/go-petstore/README.md
@@ -102,6 +102,8 @@ Class | Method | HTTP request | Description
- [Return](docs/Return.md)
- [SpecialModelName](docs/SpecialModelName.md)
- [Tag](docs/Tag.md)
+ - [TypeHolderDefault](docs/TypeHolderDefault.md)
+ - [TypeHolderExample](docs/TypeHolderExample.md)
- [User](docs/User.md)
diff --git a/samples/client/petstore/go/go-petstore/api/openapi.yaml b/samples/client/petstore/go/go-petstore/api/openapi.yaml
index ce1f37c60f2..671c549a19a 100644
--- a/samples/client/petstore/go/go-petstore/api/openapi.yaml
+++ b/samples/client/petstore/go/go-petstore/api/openapi.yaml
@@ -1646,6 +1646,59 @@ components:
description: Test capitalization
type: string
type: object
+ TypeHolderDefault:
+ properties:
+ string_item:
+ default: what
+ type: string
+ number_item:
+ type: number
+ integer_item:
+ type: integer
+ bool_item:
+ default: true
+ type: boolean
+ array_item:
+ items:
+ type: integer
+ type: array
+ required:
+ - array_item
+ - bool_item
+ - integer_item
+ - number_item
+ - string_item
+ type: object
+ TypeHolderExample:
+ properties:
+ string_item:
+ example: what
+ type: string
+ number_item:
+ example: 1.234
+ type: number
+ integer_item:
+ example: -2
+ type: integer
+ bool_item:
+ example: true
+ type: boolean
+ array_item:
+ example:
+ - 0
+ - 1
+ - 2
+ - 3
+ items:
+ type: integer
+ type: array
+ required:
+ - array_item
+ - bool_item
+ - integer_item
+ - number_item
+ - string_item
+ type: object
securitySchemes:
petstore_auth:
flows:
diff --git a/samples/client/petstore/go/go-petstore/docs/TypeHolderDefault.md b/samples/client/petstore/go/go-petstore/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..080c12a02f4
--- /dev/null
+++ b/samples/client/petstore/go/go-petstore/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**StringItem** | **string** | | [default to what]
+**NumberItem** | **float32** | |
+**IntegerItem** | **int32** | |
+**BoolItem** | **bool** | | [default to true]
+**ArrayItem** | **[]int32** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/go/go-petstore/docs/TypeHolderExample.md b/samples/client/petstore/go/go-petstore/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..231c2a18722
--- /dev/null
+++ b/samples/client/petstore/go/go-petstore/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**StringItem** | **string** | |
+**NumberItem** | **float32** | |
+**IntegerItem** | **int32** | |
+**BoolItem** | **bool** | |
+**ArrayItem** | **[]int32** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/go/go-petstore/model_type_holder_default.go b/samples/client/petstore/go/go-petstore/model_type_holder_default.go
new file mode 100644
index 00000000000..68e1218ec95
--- /dev/null
+++ b/samples/client/petstore/go/go-petstore/model_type_holder_default.go
@@ -0,0 +1,18 @@
+/*
+ * 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: \" \\
+ *
+ * API version: 1.0.0
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
+ */
+
+package petstore
+
+type TypeHolderDefault struct {
+ StringItem string `json:"string_item"`
+ NumberItem float32 `json:"number_item"`
+ IntegerItem int32 `json:"integer_item"`
+ BoolItem bool `json:"bool_item"`
+ ArrayItem []int32 `json:"array_item"`
+}
diff --git a/samples/client/petstore/go/go-petstore/model_type_holder_example.go b/samples/client/petstore/go/go-petstore/model_type_holder_example.go
new file mode 100644
index 00000000000..e129bb6a765
--- /dev/null
+++ b/samples/client/petstore/go/go-petstore/model_type_holder_example.go
@@ -0,0 +1,18 @@
+/*
+ * 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: \" \\
+ *
+ * API version: 1.0.0
+ * Generated by: OpenAPI Generator (https://openapi-generator.tech)
+ */
+
+package petstore
+
+type TypeHolderExample struct {
+ StringItem string `json:"string_item"`
+ NumberItem float32 `json:"number_item"`
+ IntegerItem int32 `json:"integer_item"`
+ BoolItem bool `json:"bool_item"`
+ ArrayItem []int32 `json:"array_item"`
+}
diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs
index af315d1b361..f9926acccda 100644
--- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs
+++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs
@@ -1330,6 +1330,104 @@ mkTag =
, tagName = Nothing
}
+-- ** TypeHolderDefault
+-- | TypeHolderDefault
+data TypeHolderDefault = TypeHolderDefault
+ { typeHolderDefaultStringItem :: !(Text) -- ^ /Required/ "string_item"
+ , typeHolderDefaultNumberItem :: !(Double) -- ^ /Required/ "number_item"
+ , typeHolderDefaultIntegerItem :: !(Int) -- ^ /Required/ "integer_item"
+ , typeHolderDefaultBoolItem :: !(Bool) -- ^ /Required/ "bool_item"
+ , typeHolderDefaultArrayItem :: !([Int]) -- ^ /Required/ "array_item"
+ } deriving (P.Show, P.Eq, P.Typeable)
+
+-- | FromJSON TypeHolderDefault
+instance A.FromJSON TypeHolderDefault where
+ parseJSON = A.withObject "TypeHolderDefault" $ \o ->
+ TypeHolderDefault
+ <$> (o .: "string_item")
+ <*> (o .: "number_item")
+ <*> (o .: "integer_item")
+ <*> (o .: "bool_item")
+ <*> (o .: "array_item")
+
+-- | ToJSON TypeHolderDefault
+instance A.ToJSON TypeHolderDefault where
+ toJSON TypeHolderDefault {..} =
+ _omitNulls
+ [ "string_item" .= typeHolderDefaultStringItem
+ , "number_item" .= typeHolderDefaultNumberItem
+ , "integer_item" .= typeHolderDefaultIntegerItem
+ , "bool_item" .= typeHolderDefaultBoolItem
+ , "array_item" .= typeHolderDefaultArrayItem
+ ]
+
+
+-- | Construct a value of type 'TypeHolderDefault' (by applying it's required fields, if any)
+mkTypeHolderDefault
+ :: Text -- ^ 'typeHolderDefaultStringItem'
+ -> Double -- ^ 'typeHolderDefaultNumberItem'
+ -> Int -- ^ 'typeHolderDefaultIntegerItem'
+ -> Bool -- ^ 'typeHolderDefaultBoolItem'
+ -> [Int] -- ^ 'typeHolderDefaultArrayItem'
+ -> TypeHolderDefault
+mkTypeHolderDefault typeHolderDefaultStringItem typeHolderDefaultNumberItem typeHolderDefaultIntegerItem typeHolderDefaultBoolItem typeHolderDefaultArrayItem =
+ TypeHolderDefault
+ { typeHolderDefaultStringItem
+ , typeHolderDefaultNumberItem
+ , typeHolderDefaultIntegerItem
+ , typeHolderDefaultBoolItem
+ , typeHolderDefaultArrayItem
+ }
+
+-- ** TypeHolderExample
+-- | TypeHolderExample
+data TypeHolderExample = TypeHolderExample
+ { typeHolderExampleStringItem :: !(Text) -- ^ /Required/ "string_item"
+ , typeHolderExampleNumberItem :: !(Double) -- ^ /Required/ "number_item"
+ , typeHolderExampleIntegerItem :: !(Int) -- ^ /Required/ "integer_item"
+ , typeHolderExampleBoolItem :: !(Bool) -- ^ /Required/ "bool_item"
+ , typeHolderExampleArrayItem :: !([Int]) -- ^ /Required/ "array_item"
+ } deriving (P.Show, P.Eq, P.Typeable)
+
+-- | FromJSON TypeHolderExample
+instance A.FromJSON TypeHolderExample where
+ parseJSON = A.withObject "TypeHolderExample" $ \o ->
+ TypeHolderExample
+ <$> (o .: "string_item")
+ <*> (o .: "number_item")
+ <*> (o .: "integer_item")
+ <*> (o .: "bool_item")
+ <*> (o .: "array_item")
+
+-- | ToJSON TypeHolderExample
+instance A.ToJSON TypeHolderExample where
+ toJSON TypeHolderExample {..} =
+ _omitNulls
+ [ "string_item" .= typeHolderExampleStringItem
+ , "number_item" .= typeHolderExampleNumberItem
+ , "integer_item" .= typeHolderExampleIntegerItem
+ , "bool_item" .= typeHolderExampleBoolItem
+ , "array_item" .= typeHolderExampleArrayItem
+ ]
+
+
+-- | Construct a value of type 'TypeHolderExample' (by applying it's required fields, if any)
+mkTypeHolderExample
+ :: Text -- ^ 'typeHolderExampleStringItem'
+ -> Double -- ^ 'typeHolderExampleNumberItem'
+ -> Int -- ^ 'typeHolderExampleIntegerItem'
+ -> Bool -- ^ 'typeHolderExampleBoolItem'
+ -> [Int] -- ^ 'typeHolderExampleArrayItem'
+ -> TypeHolderExample
+mkTypeHolderExample typeHolderExampleStringItem typeHolderExampleNumberItem typeHolderExampleIntegerItem typeHolderExampleBoolItem typeHolderExampleArrayItem =
+ TypeHolderExample
+ { typeHolderExampleStringItem
+ , typeHolderExampleNumberItem
+ , typeHolderExampleIntegerItem
+ , typeHolderExampleBoolItem
+ , typeHolderExampleArrayItem
+ }
+
-- ** User
-- | User
data User = User
diff --git a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/ModelLens.hs b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/ModelLens.hs
index 0b8a2a84813..6cb6f6d7e5f 100644
--- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/ModelLens.hs
+++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/ModelLens.hs
@@ -613,6 +613,64 @@ tagNameL f Tag{..} = (\tagName -> Tag { tagName, ..} ) <$> f tagName
+-- * TypeHolderDefault
+
+-- | 'typeHolderDefaultStringItem' Lens
+typeHolderDefaultStringItemL :: Lens_' TypeHolderDefault (Text)
+typeHolderDefaultStringItemL f TypeHolderDefault{..} = (\typeHolderDefaultStringItem -> TypeHolderDefault { typeHolderDefaultStringItem, ..} ) <$> f typeHolderDefaultStringItem
+{-# INLINE typeHolderDefaultStringItemL #-}
+
+-- | 'typeHolderDefaultNumberItem' Lens
+typeHolderDefaultNumberItemL :: Lens_' TypeHolderDefault (Double)
+typeHolderDefaultNumberItemL f TypeHolderDefault{..} = (\typeHolderDefaultNumberItem -> TypeHolderDefault { typeHolderDefaultNumberItem, ..} ) <$> f typeHolderDefaultNumberItem
+{-# INLINE typeHolderDefaultNumberItemL #-}
+
+-- | 'typeHolderDefaultIntegerItem' Lens
+typeHolderDefaultIntegerItemL :: Lens_' TypeHolderDefault (Int)
+typeHolderDefaultIntegerItemL f TypeHolderDefault{..} = (\typeHolderDefaultIntegerItem -> TypeHolderDefault { typeHolderDefaultIntegerItem, ..} ) <$> f typeHolderDefaultIntegerItem
+{-# INLINE typeHolderDefaultIntegerItemL #-}
+
+-- | 'typeHolderDefaultBoolItem' Lens
+typeHolderDefaultBoolItemL :: Lens_' TypeHolderDefault (Bool)
+typeHolderDefaultBoolItemL f TypeHolderDefault{..} = (\typeHolderDefaultBoolItem -> TypeHolderDefault { typeHolderDefaultBoolItem, ..} ) <$> f typeHolderDefaultBoolItem
+{-# INLINE typeHolderDefaultBoolItemL #-}
+
+-- | 'typeHolderDefaultArrayItem' Lens
+typeHolderDefaultArrayItemL :: Lens_' TypeHolderDefault ([Int])
+typeHolderDefaultArrayItemL f TypeHolderDefault{..} = (\typeHolderDefaultArrayItem -> TypeHolderDefault { typeHolderDefaultArrayItem, ..} ) <$> f typeHolderDefaultArrayItem
+{-# INLINE typeHolderDefaultArrayItemL #-}
+
+
+
+-- * TypeHolderExample
+
+-- | 'typeHolderExampleStringItem' Lens
+typeHolderExampleStringItemL :: Lens_' TypeHolderExample (Text)
+typeHolderExampleStringItemL f TypeHolderExample{..} = (\typeHolderExampleStringItem -> TypeHolderExample { typeHolderExampleStringItem, ..} ) <$> f typeHolderExampleStringItem
+{-# INLINE typeHolderExampleStringItemL #-}
+
+-- | 'typeHolderExampleNumberItem' Lens
+typeHolderExampleNumberItemL :: Lens_' TypeHolderExample (Double)
+typeHolderExampleNumberItemL f TypeHolderExample{..} = (\typeHolderExampleNumberItem -> TypeHolderExample { typeHolderExampleNumberItem, ..} ) <$> f typeHolderExampleNumberItem
+{-# INLINE typeHolderExampleNumberItemL #-}
+
+-- | 'typeHolderExampleIntegerItem' Lens
+typeHolderExampleIntegerItemL :: Lens_' TypeHolderExample (Int)
+typeHolderExampleIntegerItemL f TypeHolderExample{..} = (\typeHolderExampleIntegerItem -> TypeHolderExample { typeHolderExampleIntegerItem, ..} ) <$> f typeHolderExampleIntegerItem
+{-# INLINE typeHolderExampleIntegerItemL #-}
+
+-- | 'typeHolderExampleBoolItem' Lens
+typeHolderExampleBoolItemL :: Lens_' TypeHolderExample (Bool)
+typeHolderExampleBoolItemL f TypeHolderExample{..} = (\typeHolderExampleBoolItem -> TypeHolderExample { typeHolderExampleBoolItem, ..} ) <$> f typeHolderExampleBoolItem
+{-# INLINE typeHolderExampleBoolItemL #-}
+
+-- | 'typeHolderExampleArrayItem' Lens
+typeHolderExampleArrayItemL :: Lens_' TypeHolderExample ([Int])
+typeHolderExampleArrayItemL f TypeHolderExample{..} = (\typeHolderExampleArrayItem -> TypeHolderExample { typeHolderExampleArrayItem, ..} ) <$> f typeHolderExampleArrayItem
+{-# INLINE typeHolderExampleArrayItemL #-}
+
+
+
-- * User
-- | 'userId' Lens
diff --git a/samples/client/petstore/haskell-http-client/openapi.yaml b/samples/client/petstore/haskell-http-client/openapi.yaml
index ce1f37c60f2..671c549a19a 100644
--- a/samples/client/petstore/haskell-http-client/openapi.yaml
+++ b/samples/client/petstore/haskell-http-client/openapi.yaml
@@ -1646,6 +1646,59 @@ components:
description: Test capitalization
type: string
type: object
+ TypeHolderDefault:
+ properties:
+ string_item:
+ default: what
+ type: string
+ number_item:
+ type: number
+ integer_item:
+ type: integer
+ bool_item:
+ default: true
+ type: boolean
+ array_item:
+ items:
+ type: integer
+ type: array
+ required:
+ - array_item
+ - bool_item
+ - integer_item
+ - number_item
+ - string_item
+ type: object
+ TypeHolderExample:
+ properties:
+ string_item:
+ example: what
+ type: string
+ number_item:
+ example: 1.234
+ type: number
+ integer_item:
+ example: -2
+ type: integer
+ bool_item:
+ example: true
+ type: boolean
+ array_item:
+ example:
+ - 0
+ - 1
+ - 2
+ - 3
+ items:
+ type: integer
+ type: array
+ required:
+ - array_item
+ - bool_item
+ - integer_item
+ - number_item
+ - string_item
+ type: object
securitySchemes:
petstore_auth:
flows:
diff --git a/samples/client/petstore/haskell-http-client/tests/Instances.hs b/samples/client/petstore/haskell-http-client/tests/Instances.hs
index 74830f44ba2..fb943387a19 100644
--- a/samples/client/petstore/haskell-http-client/tests/Instances.hs
+++ b/samples/client/petstore/haskell-http-client/tests/Instances.hs
@@ -302,6 +302,24 @@ instance Arbitrary Tag where
<$> arbitrary -- tagId :: Maybe Integer
<*> arbitrary -- tagName :: Maybe Text
+instance Arbitrary TypeHolderDefault where
+ arbitrary =
+ TypeHolderDefault
+ <$> arbitrary -- typeHolderDefaultStringItem :: Text
+ <*> arbitrary -- typeHolderDefaultNumberItem :: Double
+ <*> arbitrary -- typeHolderDefaultIntegerItem :: Int
+ <*> arbitrary -- typeHolderDefaultBoolItem :: Bool
+ <*> arbitrary -- typeHolderDefaultArrayItem :: [Int]
+
+instance Arbitrary TypeHolderExample where
+ arbitrary =
+ TypeHolderExample
+ <$> arbitrary -- typeHolderExampleStringItem :: Text
+ <*> arbitrary -- typeHolderExampleNumberItem :: Double
+ <*> arbitrary -- typeHolderExampleIntegerItem :: Int
+ <*> arbitrary -- typeHolderExampleBoolItem :: Bool
+ <*> arbitrary -- typeHolderExampleArrayItem :: [Int]
+
instance Arbitrary User where
arbitrary =
User
diff --git a/samples/client/petstore/haskell-http-client/tests/Test.hs b/samples/client/petstore/haskell-http-client/tests/Test.hs
index 9d6355d7b71..59bd9f23014 100644
--- a/samples/client/petstore/haskell-http-client/tests/Test.hs
+++ b/samples/client/petstore/haskell-http-client/tests/Test.hs
@@ -53,5 +53,7 @@ main =
propMimeEq MimeJSON (Proxy :: Proxy ReadOnlyFirst)
propMimeEq MimeJSON (Proxy :: Proxy SpecialModelName)
propMimeEq MimeJSON (Proxy :: Proxy Tag)
+ propMimeEq MimeJSON (Proxy :: Proxy TypeHolderDefault)
+ propMimeEq MimeJSON (Proxy :: Proxy TypeHolderExample)
propMimeEq MimeJSON (Proxy :: Proxy User)
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..bb9749d75ac
--- /dev/null
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean isBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..2f817dbcb52
--- /dev/null
+++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean isBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..bb9749d75ac
--- /dev/null
+++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean isBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..2f817dbcb52
--- /dev/null
+++ b/samples/client/petstore/java/feign10x/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean isBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/google-api-client/docs/TypeHolderDefault.md b/samples/client/petstore/java/google-api-client/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/google-api-client/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/google-api-client/docs/TypeHolderExample.md b/samples/client/petstore/java/google-api-client/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/google-api-client/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..e9410efc213
--- /dev/null
+++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..66721ce291e
--- /dev/null
+++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/jersey1/docs/TypeHolderDefault.md b/samples/client/petstore/java/jersey1/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/jersey1/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/jersey1/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey1/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/jersey1/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..e9410efc213
--- /dev/null
+++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..66721ce291e
--- /dev/null
+++ b/samples/client/petstore/java/jersey1/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/TypeHolderDefault.md b/samples/client/petstore/java/jersey2-java6/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/jersey2-java6/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/jersey2-java6/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey2-java6/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/jersey2-java6/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..66dffc1bd81
--- /dev/null
+++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,190 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.apache.commons.lang3.ObjectUtils;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean isBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return ObjectUtils.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ ObjectUtils.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ ObjectUtils.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ ObjectUtils.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ ObjectUtils.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return ObjectUtils.hashCodeMulti(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..e97bbe9d62d
--- /dev/null
+++ b/samples/client/petstore/java/jersey2-java6/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,190 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.apache.commons.lang3.ObjectUtils;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean isBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return ObjectUtils.equals(this.stringItem, typeHolderExample.stringItem) &&
+ ObjectUtils.equals(this.numberItem, typeHolderExample.numberItem) &&
+ ObjectUtils.equals(this.integerItem, typeHolderExample.integerItem) &&
+ ObjectUtils.equals(this.boolItem, typeHolderExample.boolItem) &&
+ ObjectUtils.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return ObjectUtils.hashCodeMulti(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/jersey2-java8/docs/TypeHolderDefault.md b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..e092c3fefa4
--- /dev/null
+++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..f7b337ce0f6
--- /dev/null
+++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/jersey2/docs/TypeHolderDefault.md b/samples/client/petstore/java/jersey2/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/jersey2/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/jersey2/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey2/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/jersey2/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..e9410efc213
--- /dev/null
+++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..66721ce291e
--- /dev/null
+++ b/samples/client/petstore/java/jersey2/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderDefault.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderExample.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..836b9164e3d
--- /dev/null
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,232 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import android.os.Parcelable;
+import android.os.Parcel;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault implements Parcelable {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem = "what";
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem = true;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault() {
+ }
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public void writeToParcel(Parcel out, int flags) {
+ out.writeValue(stringItem);
+ out.writeValue(numberItem);
+ out.writeValue(integerItem);
+ out.writeValue(boolItem);
+ out.writeValue(arrayItem);
+ }
+
+ TypeHolderDefault(Parcel in) {
+ stringItem = (String)in.readValue(null);
+ numberItem = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
+ integerItem = (Integer)in.readValue(null);
+ boolItem = (Boolean)in.readValue(null);
+ arrayItem = (List)in.readValue(null);
+ }
+
+ public int describeContents() {
+ return 0;
+ }
+
+ public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
+ public TypeHolderDefault createFromParcel(Parcel in) {
+ return new TypeHolderDefault(in);
+ }
+ public TypeHolderDefault[] newArray(int size) {
+ return new TypeHolderDefault[size];
+ }
+ };
+}
+
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..9e8f0b2a101
--- /dev/null
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,232 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import android.os.Parcelable;
+import android.os.Parcel;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample implements Parcelable {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem;
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample() {
+ }
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+
+ public void writeToParcel(Parcel out, int flags) {
+ out.writeValue(stringItem);
+ out.writeValue(numberItem);
+ out.writeValue(integerItem);
+ out.writeValue(boolItem);
+ out.writeValue(arrayItem);
+ }
+
+ TypeHolderExample(Parcel in) {
+ stringItem = (String)in.readValue(null);
+ numberItem = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
+ integerItem = (Integer)in.readValue(null);
+ boolItem = (Boolean)in.readValue(null);
+ arrayItem = (List)in.readValue(null);
+ }
+
+ public int describeContents() {
+ return 0;
+ }
+
+ public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
+ public TypeHolderExample createFromParcel(Parcel in) {
+ return new TypeHolderExample(in);
+ }
+ public TypeHolderExample[] newArray(int size) {
+ return new TypeHolderExample[size];
+ }
+ };
+}
+
diff --git a/samples/client/petstore/java/okhttp-gson/docs/TypeHolderDefault.md b/samples/client/petstore/java/okhttp-gson/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/okhttp-gson/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/okhttp-gson/docs/TypeHolderExample.md b/samples/client/petstore/java/okhttp-gson/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/okhttp-gson/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..8b6e71d6b54
--- /dev/null
+++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem = "what";
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem = true;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..f1026fef4fd
--- /dev/null
+++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem;
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/rest-assured/docs/TypeHolderDefault.md b/samples/client/petstore/java/rest-assured/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/rest-assured/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/rest-assured/docs/TypeHolderExample.md b/samples/client/petstore/java/rest-assured/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/rest-assured/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..f2c9a7531c1
--- /dev/null
+++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem = "what";
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem = true;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean isBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..35e93e546e0
--- /dev/null
+++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem;
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean isBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/resteasy/docs/TypeHolderDefault.md b/samples/client/petstore/java/resteasy/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/resteasy/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/resteasy/docs/TypeHolderExample.md b/samples/client/petstore/java/resteasy/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/resteasy/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..e9410efc213
--- /dev/null
+++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..66721ce291e
--- /dev/null
+++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderDefault.md b/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderExample.md b/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..943ad5ad18b
--- /dev/null
+++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,208 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import com.fasterxml.jackson.dataformat.xml.annotation.*;
+import javax.xml.bind.annotation.*;
+
+/**
+ * TypeHolderDefault
+ */
+
+@XmlRootElement(name = "TypeHolderDefault")
+@XmlAccessorType(XmlAccessType.FIELD)
+@JacksonXmlRootElement(localName = "TypeHolderDefault")
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ @JacksonXmlProperty(localName = "string_item")
+ @XmlElement(name = "string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ @JacksonXmlProperty(localName = "number_item")
+ @XmlElement(name = "number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ @JacksonXmlProperty(localName = "integer_item")
+ @XmlElement(name = "integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ @JacksonXmlProperty(localName = "bool_item")
+ @XmlElement(name = "bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ // Is a container wrapped=false
+ // items.name=arrayItem items.baseName=arrayItem items.xmlName= items.xmlNamespace=
+ // items.example= items.type=Integer
+ @XmlElement(name = "arrayItem")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..d85918c3fbf
--- /dev/null
+++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,208 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import com.fasterxml.jackson.dataformat.xml.annotation.*;
+import javax.xml.bind.annotation.*;
+
+/**
+ * TypeHolderExample
+ */
+
+@XmlRootElement(name = "TypeHolderExample")
+@XmlAccessorType(XmlAccessType.FIELD)
+@JacksonXmlRootElement(localName = "TypeHolderExample")
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ @JacksonXmlProperty(localName = "string_item")
+ @XmlElement(name = "string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ @JacksonXmlProperty(localName = "number_item")
+ @XmlElement(name = "number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ @JacksonXmlProperty(localName = "integer_item")
+ @XmlElement(name = "integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ @JacksonXmlProperty(localName = "bool_item")
+ @XmlElement(name = "bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ // Is a container wrapped=false
+ // items.name=arrayItem items.baseName=arrayItem items.xmlName= items.xmlNamespace=
+ // items.example= items.type=Integer
+ @XmlElement(name = "arrayItem")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/resttemplate/docs/TypeHolderDefault.md b/samples/client/petstore/java/resttemplate/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/resttemplate/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/resttemplate/docs/TypeHolderExample.md b/samples/client/petstore/java/resttemplate/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/resttemplate/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..e9410efc213
--- /dev/null
+++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..66721ce291e
--- /dev/null
+++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..8b6e71d6b54
--- /dev/null
+++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem = "what";
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem = true;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..f1026fef4fd
--- /dev/null
+++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem;
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderDefault.md b/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..8ae4ccf5787
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @NotNull
+ @Valid
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..03334b7e47f
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play24/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @NotNull
+ @Valid
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderDefault.md b/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..8ae4ccf5787
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @NotNull
+ @Valid
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..03334b7e47f
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play25/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @NotNull
+ @Valid
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderDefault.md b/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..8ae4ccf5787
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @NotNull
+ @Valid
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @NotNull
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..03334b7e47f
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @NotNull
+ @Valid
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2/docs/TypeHolderDefault.md b/samples/client/petstore/java/retrofit2/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..8b6e71d6b54
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem = "what";
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem = true;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..f1026fef4fd
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem;
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2rx/docs/TypeHolderDefault.md b/samples/client/petstore/java/retrofit2rx/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2rx/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2rx/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2rx/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2rx/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..8b6e71d6b54
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem = "what";
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem = true;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..f1026fef4fd
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem;
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderDefault.md b/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..8b6e71d6b54
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem = "what";
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem = true;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..f1026fef4fd
--- /dev/null
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,199 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.google.gson.TypeAdapter;
+import com.google.gson.annotations.JsonAdapter;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.stream.JsonReader;
+import com.google.gson.stream.JsonWriter;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.io.IOException;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ public static final String SERIALIZED_NAME_STRING_ITEM = "string_item";
+ @SerializedName(SERIALIZED_NAME_STRING_ITEM)
+ private String stringItem;
+
+ public static final String SERIALIZED_NAME_NUMBER_ITEM = "number_item";
+ @SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
+ private BigDecimal numberItem;
+
+ public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
+ @SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
+ private Integer integerItem;
+
+ public static final String SERIALIZED_NAME_BOOL_ITEM = "bool_item";
+ @SerializedName(SERIALIZED_NAME_BOOL_ITEM)
+ private Boolean boolItem;
+
+ public static final String SERIALIZED_NAME_ARRAY_ITEM = "array_item";
+ @SerializedName(SERIALIZED_NAME_ARRAY_ITEM)
+ private List arrayItem = new ArrayList();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/vertx/docs/TypeHolderDefault.md b/samples/client/petstore/java/vertx/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/vertx/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/vertx/docs/TypeHolderExample.md b/samples/client/petstore/java/vertx/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/vertx/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..e092c3fefa4
--- /dev/null
+++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..f7b337ce0f6
--- /dev/null
+++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/webclient/docs/TypeHolderDefault.md b/samples/client/petstore/java/webclient/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..cc1a78ba7ea
--- /dev/null
+++ b/samples/client/petstore/java/webclient/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/webclient/docs/TypeHolderExample.md b/samples/client/petstore/java/webclient/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..77921795270
--- /dev/null
+++ b/samples/client/petstore/java/webclient/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**stringItem** | **String** | |
+**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**integerItem** | **Integer** | |
+**boolItem** | **Boolean** | |
+**arrayItem** | **List<Integer>** | |
+
+
+
diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..e092c3fefa4
--- /dev/null
+++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderDefault.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java
new file mode 100644
index 00000000000..f7b337ce0f6
--- /dev/null
+++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -0,0 +1,191 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @ApiModelProperty(example = "what", required = true, value = "")
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @ApiModelProperty(example = "true", required = true, value = "")
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+
+}
+
diff --git a/samples/client/petstore/php/OpenAPIClient-php/README.md b/samples/client/petstore/php/OpenAPIClient-php/README.md
index c97a52feb07..4b1b7004d25 100644
--- a/samples/client/petstore/php/OpenAPIClient-php/README.md
+++ b/samples/client/petstore/php/OpenAPIClient-php/README.md
@@ -151,6 +151,8 @@ Class | Method | HTTP request | Description
- [ReadOnlyFirst](docs/Model/ReadOnlyFirst.md)
- [SpecialModelName](docs/Model/SpecialModelName.md)
- [Tag](docs/Model/Tag.md)
+ - [TypeHolderDefault](docs/Model/TypeHolderDefault.md)
+ - [TypeHolderExample](docs/Model/TypeHolderExample.md)
- [User](docs/Model/User.md)
diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderDefault.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderDefault.md
new file mode 100644
index 00000000000..b03925fa9ce
--- /dev/null
+++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**string_item** | **string** | | [default to 'what']
+**number_item** | **float** | |
+**integer_item** | **int** | |
+**bool_item** | **bool** | | [default to true]
+**array_item** | **int[]** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md
new file mode 100644
index 00000000000..07fb85843da
--- /dev/null
+++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md
@@ -0,0 +1,14 @@
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**string_item** | **string** | |
+**number_item** | **float** | |
+**integer_item** | **int** | |
+**bool_item** | **bool** | |
+**array_item** | **int[]** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderDefault.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderDefault.php
new file mode 100644
index 00000000000..d5d4b99ade6
--- /dev/null
+++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderDefault.php
@@ -0,0 +1,432 @@
+ 'string',
+ 'number_item' => 'float',
+ 'integer_item' => 'int',
+ 'bool_item' => 'bool',
+ 'array_item' => 'int[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPIFormats = [
+ 'string_item' => null,
+ 'number_item' => null,
+ 'integer_item' => null,
+ 'bool_item' => null,
+ 'array_item' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'string_item' => 'string_item',
+ 'number_item' => 'number_item',
+ 'integer_item' => 'integer_item',
+ 'bool_item' => 'bool_item',
+ 'array_item' => 'array_item'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'string_item' => 'setStringItem',
+ 'number_item' => 'setNumberItem',
+ 'integer_item' => 'setIntegerItem',
+ 'bool_item' => 'setBoolItem',
+ 'array_item' => 'setArrayItem'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'string_item' => 'getStringItem',
+ 'number_item' => 'getNumberItem',
+ 'integer_item' => 'getIntegerItem',
+ 'bool_item' => 'getBoolItem',
+ 'array_item' => 'getArrayItem'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['string_item'] = isset($data['string_item']) ? $data['string_item'] : 'what';
+ $this->container['number_item'] = isset($data['number_item']) ? $data['number_item'] : null;
+ $this->container['integer_item'] = isset($data['integer_item']) ? $data['integer_item'] : null;
+ $this->container['bool_item'] = isset($data['bool_item']) ? $data['bool_item'] : true;
+ $this->container['array_item'] = isset($data['array_item']) ? $data['array_item'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['string_item'] === null) {
+ $invalidProperties[] = "'string_item' can't be null";
+ }
+ if ($this->container['number_item'] === null) {
+ $invalidProperties[] = "'number_item' can't be null";
+ }
+ if ($this->container['integer_item'] === null) {
+ $invalidProperties[] = "'integer_item' can't be null";
+ }
+ if ($this->container['bool_item'] === null) {
+ $invalidProperties[] = "'bool_item' can't be null";
+ }
+ if ($this->container['array_item'] === null) {
+ $invalidProperties[] = "'array_item' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets string_item
+ *
+ * @return string
+ */
+ public function getStringItem()
+ {
+ return $this->container['string_item'];
+ }
+
+ /**
+ * Sets string_item
+ *
+ * @param string $string_item string_item
+ *
+ * @return $this
+ */
+ public function setStringItem($string_item)
+ {
+ $this->container['string_item'] = $string_item;
+
+ return $this;
+ }
+
+ /**
+ * Gets number_item
+ *
+ * @return float
+ */
+ public function getNumberItem()
+ {
+ return $this->container['number_item'];
+ }
+
+ /**
+ * Sets number_item
+ *
+ * @param float $number_item number_item
+ *
+ * @return $this
+ */
+ public function setNumberItem($number_item)
+ {
+ $this->container['number_item'] = $number_item;
+
+ return $this;
+ }
+
+ /**
+ * Gets integer_item
+ *
+ * @return int
+ */
+ public function getIntegerItem()
+ {
+ return $this->container['integer_item'];
+ }
+
+ /**
+ * Sets integer_item
+ *
+ * @param int $integer_item integer_item
+ *
+ * @return $this
+ */
+ public function setIntegerItem($integer_item)
+ {
+ $this->container['integer_item'] = $integer_item;
+
+ return $this;
+ }
+
+ /**
+ * Gets bool_item
+ *
+ * @return bool
+ */
+ public function getBoolItem()
+ {
+ return $this->container['bool_item'];
+ }
+
+ /**
+ * Sets bool_item
+ *
+ * @param bool $bool_item bool_item
+ *
+ * @return $this
+ */
+ public function setBoolItem($bool_item)
+ {
+ $this->container['bool_item'] = $bool_item;
+
+ return $this;
+ }
+
+ /**
+ * Gets array_item
+ *
+ * @return int[]
+ */
+ public function getArrayItem()
+ {
+ return $this->container['array_item'];
+ }
+
+ /**
+ * Sets array_item
+ *
+ * @param int[] $array_item array_item
+ *
+ * @return $this
+ */
+ public function setArrayItem($array_item)
+ {
+ $this->container['array_item'] = $array_item;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+}
+
+
diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php
new file mode 100644
index 00000000000..688c48bcd1c
--- /dev/null
+++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php
@@ -0,0 +1,432 @@
+ 'string',
+ 'number_item' => 'float',
+ 'integer_item' => 'int',
+ 'bool_item' => 'bool',
+ 'array_item' => 'int[]'
+ ];
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @var string[]
+ */
+ protected static $openAPIFormats = [
+ 'string_item' => null,
+ 'number_item' => null,
+ 'integer_item' => null,
+ 'bool_item' => null,
+ 'array_item' => null
+ ];
+
+ /**
+ * Array of property to type mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPITypes()
+ {
+ return self::$openAPITypes;
+ }
+
+ /**
+ * Array of property to format mappings. Used for (de)serialization
+ *
+ * @return array
+ */
+ public static function openAPIFormats()
+ {
+ return self::$openAPIFormats;
+ }
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @var string[]
+ */
+ protected static $attributeMap = [
+ 'string_item' => 'string_item',
+ 'number_item' => 'number_item',
+ 'integer_item' => 'integer_item',
+ 'bool_item' => 'bool_item',
+ 'array_item' => 'array_item'
+ ];
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @var string[]
+ */
+ protected static $setters = [
+ 'string_item' => 'setStringItem',
+ 'number_item' => 'setNumberItem',
+ 'integer_item' => 'setIntegerItem',
+ 'bool_item' => 'setBoolItem',
+ 'array_item' => 'setArrayItem'
+ ];
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @var string[]
+ */
+ protected static $getters = [
+ 'string_item' => 'getStringItem',
+ 'number_item' => 'getNumberItem',
+ 'integer_item' => 'getIntegerItem',
+ 'bool_item' => 'getBoolItem',
+ 'array_item' => 'getArrayItem'
+ ];
+
+ /**
+ * Array of attributes where the key is the local name,
+ * and the value is the original name
+ *
+ * @return array
+ */
+ public static function attributeMap()
+ {
+ return self::$attributeMap;
+ }
+
+ /**
+ * Array of attributes to setter functions (for deserialization of responses)
+ *
+ * @return array
+ */
+ public static function setters()
+ {
+ return self::$setters;
+ }
+
+ /**
+ * Array of attributes to getter functions (for serialization of requests)
+ *
+ * @return array
+ */
+ public static function getters()
+ {
+ return self::$getters;
+ }
+
+ /**
+ * The original name of the model.
+ *
+ * @return string
+ */
+ public function getModelName()
+ {
+ return self::$openAPIModelName;
+ }
+
+
+
+
+
+ /**
+ * Associative array for storing property values
+ *
+ * @var mixed[]
+ */
+ protected $container = [];
+
+ /**
+ * Constructor
+ *
+ * @param mixed[] $data Associated array of property values
+ * initializing the model
+ */
+ public function __construct(array $data = null)
+ {
+ $this->container['string_item'] = isset($data['string_item']) ? $data['string_item'] : null;
+ $this->container['number_item'] = isset($data['number_item']) ? $data['number_item'] : null;
+ $this->container['integer_item'] = isset($data['integer_item']) ? $data['integer_item'] : null;
+ $this->container['bool_item'] = isset($data['bool_item']) ? $data['bool_item'] : null;
+ $this->container['array_item'] = isset($data['array_item']) ? $data['array_item'] : null;
+ }
+
+ /**
+ * Show all the invalid properties with reasons.
+ *
+ * @return array invalid properties with reasons
+ */
+ public function listInvalidProperties()
+ {
+ $invalidProperties = [];
+
+ if ($this->container['string_item'] === null) {
+ $invalidProperties[] = "'string_item' can't be null";
+ }
+ if ($this->container['number_item'] === null) {
+ $invalidProperties[] = "'number_item' can't be null";
+ }
+ if ($this->container['integer_item'] === null) {
+ $invalidProperties[] = "'integer_item' can't be null";
+ }
+ if ($this->container['bool_item'] === null) {
+ $invalidProperties[] = "'bool_item' can't be null";
+ }
+ if ($this->container['array_item'] === null) {
+ $invalidProperties[] = "'array_item' can't be null";
+ }
+ return $invalidProperties;
+ }
+
+ /**
+ * Validate all the properties in the model
+ * return true if all passed
+ *
+ * @return bool True if all properties are valid
+ */
+ public function valid()
+ {
+ return count($this->listInvalidProperties()) === 0;
+ }
+
+
+ /**
+ * Gets string_item
+ *
+ * @return string
+ */
+ public function getStringItem()
+ {
+ return $this->container['string_item'];
+ }
+
+ /**
+ * Sets string_item
+ *
+ * @param string $string_item string_item
+ *
+ * @return $this
+ */
+ public function setStringItem($string_item)
+ {
+ $this->container['string_item'] = $string_item;
+
+ return $this;
+ }
+
+ /**
+ * Gets number_item
+ *
+ * @return float
+ */
+ public function getNumberItem()
+ {
+ return $this->container['number_item'];
+ }
+
+ /**
+ * Sets number_item
+ *
+ * @param float $number_item number_item
+ *
+ * @return $this
+ */
+ public function setNumberItem($number_item)
+ {
+ $this->container['number_item'] = $number_item;
+
+ return $this;
+ }
+
+ /**
+ * Gets integer_item
+ *
+ * @return int
+ */
+ public function getIntegerItem()
+ {
+ return $this->container['integer_item'];
+ }
+
+ /**
+ * Sets integer_item
+ *
+ * @param int $integer_item integer_item
+ *
+ * @return $this
+ */
+ public function setIntegerItem($integer_item)
+ {
+ $this->container['integer_item'] = $integer_item;
+
+ return $this;
+ }
+
+ /**
+ * Gets bool_item
+ *
+ * @return bool
+ */
+ public function getBoolItem()
+ {
+ return $this->container['bool_item'];
+ }
+
+ /**
+ * Sets bool_item
+ *
+ * @param bool $bool_item bool_item
+ *
+ * @return $this
+ */
+ public function setBoolItem($bool_item)
+ {
+ $this->container['bool_item'] = $bool_item;
+
+ return $this;
+ }
+
+ /**
+ * Gets array_item
+ *
+ * @return int[]
+ */
+ public function getArrayItem()
+ {
+ return $this->container['array_item'];
+ }
+
+ /**
+ * Sets array_item
+ *
+ * @param int[] $array_item array_item
+ *
+ * @return $this
+ */
+ public function setArrayItem($array_item)
+ {
+ $this->container['array_item'] = $array_item;
+
+ return $this;
+ }
+ /**
+ * Returns true if offset exists. False otherwise.
+ *
+ * @param integer $offset Offset
+ *
+ * @return boolean
+ */
+ public function offsetExists($offset)
+ {
+ return isset($this->container[$offset]);
+ }
+
+ /**
+ * Gets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return mixed
+ */
+ public function offsetGet($offset)
+ {
+ return isset($this->container[$offset]) ? $this->container[$offset] : null;
+ }
+
+ /**
+ * Sets value based on offset.
+ *
+ * @param integer $offset Offset
+ * @param mixed $value Value to be set
+ *
+ * @return void
+ */
+ public function offsetSet($offset, $value)
+ {
+ if (is_null($offset)) {
+ $this->container[] = $value;
+ } else {
+ $this->container[$offset] = $value;
+ }
+ }
+
+ /**
+ * Unsets offset.
+ *
+ * @param integer $offset Offset
+ *
+ * @return void
+ */
+ public function offsetUnset($offset)
+ {
+ unset($this->container[$offset]);
+ }
+
+ /**
+ * Gets the string presentation of the object
+ *
+ * @return string
+ */
+ public function __toString()
+ {
+ return json_encode(
+ ObjectSerializer::sanitizeForSerialization($this),
+ JSON_PRETTY_PRINT
+ );
+ }
+}
+
+
diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/TypeHolderDefaultTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/TypeHolderDefaultTest.php
new file mode 100644
index 00000000000..641c0220c8b
--- /dev/null
+++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/TypeHolderDefaultTest.php
@@ -0,0 +1,115 @@
+call_123_test_special_tags: %s\n" % e)
@@ -142,6 +142,8 @@ Class | Method | HTTP request | Description
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
- [SpecialModelName](docs/SpecialModelName.md)
- [Tag](docs/Tag.md)
+ - [TypeHolderDefault](docs/TypeHolderDefault.md)
+ - [TypeHolderExample](docs/TypeHolderExample.md)
- [User](docs/User.md)
diff --git a/samples/client/petstore/python/docs/AnotherFakeApi.md b/samples/client/petstore/python/docs/AnotherFakeApi.md
index 447ce3edde3..53d8da58f0c 100644
--- a/samples/client/petstore/python/docs/AnotherFakeApi.md
+++ b/samples/client/petstore/python/docs/AnotherFakeApi.md
@@ -8,7 +8,7 @@ Method | HTTP request | Description
# **call_123_test_special_tags**
-> Client call_123_test_special_tags(client)
+> Client call_123_test_special_tags(body)
To test special tags
@@ -24,11 +24,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.AnotherFakeApi()
-client = petstore_api.Client() # Client | client model
+body = petstore_api.Client() # Client | client model
try:
# To test special tags
- api_response = api_instance.call_123_test_special_tags(client)
+ api_response = api_instance.call_123_test_special_tags(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnotherFakeApi->call_123_test_special_tags: %s\n" % e)
@@ -38,7 +38,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **client** | [**Client**](Client.md)| client model |
+ **body** | [**Client**](Client.md)| client model |
### Return type
diff --git a/samples/client/petstore/python/docs/FakeApi.md b/samples/client/petstore/python/docs/FakeApi.md
index 97dc3c892e0..0179be2f3d4 100644
--- a/samples/client/petstore/python/docs/FakeApi.md
+++ b/samples/client/petstore/python/docs/FakeApi.md
@@ -66,7 +66,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **fake_outer_composite_serialize**
-> OuterComposite fake_outer_composite_serialize(outer_composite=outer_composite)
+> OuterComposite fake_outer_composite_serialize(body=body)
@@ -82,10 +82,10 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.FakeApi()
-outer_composite = petstore_api.OuterComposite() # OuterComposite | Input composite as post body (optional)
+body = petstore_api.OuterComposite() # OuterComposite | Input composite as post body (optional)
try:
- api_response = api_instance.fake_outer_composite_serialize(outer_composite=outer_composite)
+ api_response = api_instance.fake_outer_composite_serialize(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling FakeApi->fake_outer_composite_serialize: %s\n" % e)
@@ -95,7 +95,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **outer_composite** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
+ **body** | [**OuterComposite**](OuterComposite.md)| Input composite as post body | [optional]
### Return type
@@ -207,7 +207,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **test_body_with_file_schema**
-> test_body_with_file_schema(file_schema_test_class)
+> test_body_with_file_schema(body)
@@ -223,10 +223,10 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.FakeApi()
-file_schema_test_class = petstore_api.FileSchemaTestClass() # FileSchemaTestClass |
+body = petstore_api.FileSchemaTestClass() # FileSchemaTestClass |
try:
- api_instance.test_body_with_file_schema(file_schema_test_class)
+ api_instance.test_body_with_file_schema(body)
except ApiException as e:
print("Exception when calling FakeApi->test_body_with_file_schema: %s\n" % e)
```
@@ -235,7 +235,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **file_schema_test_class** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
+ **body** | [**FileSchemaTestClass**](FileSchemaTestClass.md)| |
### Return type
@@ -253,7 +253,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **test_body_with_query_params**
-> test_body_with_query_params(query, user)
+> test_body_with_query_params(query, body)
@@ -268,10 +268,10 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.FakeApi()
query = 'query_example' # str |
-user = petstore_api.User() # User |
+body = petstore_api.User() # User |
try:
- api_instance.test_body_with_query_params(query, user)
+ api_instance.test_body_with_query_params(query, body)
except ApiException as e:
print("Exception when calling FakeApi->test_body_with_query_params: %s\n" % e)
```
@@ -281,7 +281,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**query** | **str**| |
- **user** | [**User**](User.md)| |
+ **body** | [**User**](User.md)| |
### Return type
@@ -299,7 +299,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **test_client_model**
-> Client test_client_model(client)
+> Client test_client_model(body)
To test \"client\" model
@@ -315,11 +315,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.FakeApi()
-client = petstore_api.Client() # Client | client model
+body = petstore_api.Client() # Client | client model
try:
# To test \"client\" model
- api_response = api_instance.test_client_model(client)
+ api_response = api_instance.test_client_model(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling FakeApi->test_client_model: %s\n" % e)
@@ -329,7 +329,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **client** | [**Client**](Client.md)| client model |
+ **body** | [**Client**](Client.md)| client model |
### Return type
@@ -545,7 +545,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **test_inline_additional_properties**
-> test_inline_additional_properties(request_body)
+> test_inline_additional_properties(param)
test inline additionalProperties
@@ -559,11 +559,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.FakeApi()
-request_body = {'key': 'request_body_example'} # dict(str, str) | request body
+param = {'key': 'param_example'} # dict(str, str) | request body
try:
# test inline additionalProperties
- api_instance.test_inline_additional_properties(request_body)
+ api_instance.test_inline_additional_properties(param)
except ApiException as e:
print("Exception when calling FakeApi->test_inline_additional_properties: %s\n" % e)
```
@@ -572,7 +572,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **request_body** | [**dict(str, str)**](str.md)| request body |
+ **param** | [**dict(str, str)**](str.md)| request body |
### Return type
diff --git a/samples/client/petstore/python/docs/FakeClassnameTags123Api.md b/samples/client/petstore/python/docs/FakeClassnameTags123Api.md
index 3180674a077..64bb06890df 100644
--- a/samples/client/petstore/python/docs/FakeClassnameTags123Api.md
+++ b/samples/client/petstore/python/docs/FakeClassnameTags123Api.md
@@ -8,7 +8,7 @@ Method | HTTP request | Description
# **test_classname**
-> Client test_classname(client)
+> Client test_classname(body)
To test class name in snake case
@@ -32,11 +32,11 @@ configuration.api_key['api_key_query'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = petstore_api.FakeClassnameTags123Api(petstore_api.ApiClient(configuration))
-client = petstore_api.Client() # Client | client model
+body = petstore_api.Client() # Client | client model
try:
# To test class name in snake case
- api_response = api_instance.test_classname(client)
+ api_response = api_instance.test_classname(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling FakeClassnameTags123Api->test_classname: %s\n" % e)
@@ -46,7 +46,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **client** | [**Client**](Client.md)| client model |
+ **body** | [**Client**](Client.md)| client model |
### Return type
diff --git a/samples/client/petstore/python/docs/Pet.md b/samples/client/petstore/python/docs/Pet.md
index 9e15090300f..f9ea079075d 100644
--- a/samples/client/petstore/python/docs/Pet.md
+++ b/samples/client/petstore/python/docs/Pet.md
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **int** | | [optional]
**category** | [**Category**](Category.md) | | [optional]
-**name** | **str** | |
+**name** | **str** | | [default to 'doggie']
**photo_urls** | **list[str]** | |
**tags** | [**list[Tag]**](Tag.md) | | [optional]
**status** | **str** | pet status in the store | [optional]
diff --git a/samples/client/petstore/python/docs/PetApi.md b/samples/client/petstore/python/docs/PetApi.md
index 726db4708d7..8a0604706db 100644
--- a/samples/client/petstore/python/docs/PetApi.md
+++ b/samples/client/petstore/python/docs/PetApi.md
@@ -16,7 +16,7 @@ Method | HTTP request | Description
# **add_pet**
-> add_pet(pet)
+> add_pet(body)
Add a new pet to the store
@@ -36,11 +36,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = petstore_api.PetApi(petstore_api.ApiClient(configuration))
-pet = petstore_api.Pet() # Pet | Pet object that needs to be added to the store
+body = petstore_api.Pet() # Pet | Pet object that needs to be added to the store
try:
# Add a new pet to the store
- api_instance.add_pet(pet)
+ api_instance.add_pet(body)
except ApiException as e:
print("Exception when calling PetApi->add_pet: %s\n" % e)
```
@@ -49,7 +49,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
@@ -284,7 +284,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_pet**
-> update_pet(pet)
+> update_pet(body)
Update an existing pet
@@ -304,11 +304,11 @@ configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = petstore_api.PetApi(petstore_api.ApiClient(configuration))
-pet = petstore_api.Pet() # Pet | Pet object that needs to be added to the store
+body = petstore_api.Pet() # Pet | Pet object that needs to be added to the store
try:
# Update an existing pet
- api_instance.update_pet(pet)
+ api_instance.update_pet(body)
except ApiException as e:
print("Exception when calling PetApi->update_pet: %s\n" % e)
```
@@ -317,7 +317,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **pet** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
+ **body** | [**Pet**](Pet.md)| Pet object that needs to be added to the store |
### Return type
diff --git a/samples/client/petstore/python/docs/StoreApi.md b/samples/client/petstore/python/docs/StoreApi.md
index ab342460f86..11f04da636e 100644
--- a/samples/client/petstore/python/docs/StoreApi.md
+++ b/samples/client/petstore/python/docs/StoreApi.md
@@ -158,7 +158,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **place_order**
-> Order place_order(order)
+> Order place_order(body)
Place an order for a pet
@@ -172,11 +172,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.StoreApi()
-order = petstore_api.Order() # Order | order placed for purchasing the pet
+body = petstore_api.Order() # Order | order placed for purchasing the pet
try:
# Place an order for a pet
- api_response = api_instance.place_order(order)
+ api_response = api_instance.place_order(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling StoreApi->place_order: %s\n" % e)
@@ -186,7 +186,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **order** | [**Order**](Order.md)| order placed for purchasing the pet |
+ **body** | [**Order**](Order.md)| order placed for purchasing the pet |
### Return type
diff --git a/samples/client/petstore/python/docs/TypeHolderDefault.md b/samples/client/petstore/python/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..861da021826
--- /dev/null
+++ b/samples/client/petstore/python/docs/TypeHolderDefault.md
@@ -0,0 +1,14 @@
+# TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**string_item** | **str** | | [default to 'what']
+**number_item** | **float** | |
+**integer_item** | **int** | |
+**bool_item** | **bool** | | [default to True]
+**array_item** | **list[int]** | |
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/python/docs/TypeHolderExample.md b/samples/client/petstore/python/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..1a1535f4dee
--- /dev/null
+++ b/samples/client/petstore/python/docs/TypeHolderExample.md
@@ -0,0 +1,14 @@
+# TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**string_item** | **str** | | [default to 'what']
+**number_item** | **float** | | [default to 1.234]
+**integer_item** | **int** | | [default to -2]
+**bool_item** | **bool** | | [default to True]
+**array_item** | **list[int]** | | [default to [0, 1, 2, 3]]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/samples/client/petstore/python/docs/UserApi.md b/samples/client/petstore/python/docs/UserApi.md
index c7cc8b64d66..f0d9581779c 100644
--- a/samples/client/petstore/python/docs/UserApi.md
+++ b/samples/client/petstore/python/docs/UserApi.md
@@ -15,7 +15,7 @@ Method | HTTP request | Description
# **create_user**
-> create_user(user)
+> create_user(body)
Create user
@@ -31,11 +31,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.UserApi()
-user = petstore_api.User() # User | Created user object
+body = petstore_api.User() # User | Created user object
try:
# Create user
- api_instance.create_user(user)
+ api_instance.create_user(body)
except ApiException as e:
print("Exception when calling UserApi->create_user: %s\n" % e)
```
@@ -44,7 +44,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **user** | [**User**](User.md)| Created user object |
+ **body** | [**User**](User.md)| Created user object |
### Return type
@@ -62,7 +62,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **create_users_with_array_input**
-> create_users_with_array_input(user)
+> create_users_with_array_input(body)
Creates list of users with given input array
@@ -76,11 +76,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.UserApi()
-user = NULL # list[User] | List of user object
+body = NULL # list[User] | List of user object
try:
# Creates list of users with given input array
- api_instance.create_users_with_array_input(user)
+ api_instance.create_users_with_array_input(body)
except ApiException as e:
print("Exception when calling UserApi->create_users_with_array_input: %s\n" % e)
```
@@ -89,7 +89,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **user** | [**list[User]**](list.md)| List of user object |
+ **body** | [**list[User]**](list.md)| List of user object |
### Return type
@@ -107,7 +107,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **create_users_with_list_input**
-> create_users_with_list_input(user)
+> create_users_with_list_input(body)
Creates list of users with given input array
@@ -121,11 +121,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.UserApi()
-user = NULL # list[User] | List of user object
+body = NULL # list[User] | List of user object
try:
# Creates list of users with given input array
- api_instance.create_users_with_list_input(user)
+ api_instance.create_users_with_list_input(body)
except ApiException as e:
print("Exception when calling UserApi->create_users_with_list_input: %s\n" % e)
```
@@ -134,7 +134,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **user** | [**list[User]**](list.md)| List of user object |
+ **body** | [**list[User]**](list.md)| List of user object |
### Return type
@@ -334,7 +334,7 @@ No authorization required
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_user**
-> update_user(username, user)
+> update_user(username, body)
Updated user
@@ -351,11 +351,11 @@ from pprint import pprint
# create an instance of the API class
api_instance = petstore_api.UserApi()
username = 'username_example' # str | name that need to be deleted
-user = petstore_api.User() # User | Updated user object
+body = petstore_api.User() # User | Updated user object
try:
# Updated user
- api_instance.update_user(username, user)
+ api_instance.update_user(username, body)
except ApiException as e:
print("Exception when calling UserApi->update_user: %s\n" % e)
```
@@ -365,7 +365,7 @@ except ApiException as e:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**username** | **str**| name that need to be deleted |
- **user** | [**User**](User.md)| Updated user object |
+ **body** | [**User**](User.md)| Updated user object |
### Return type
diff --git a/samples/client/petstore/python/petstore_api/__init__.py b/samples/client/petstore/python/petstore_api/__init__.py
index 88ac77881e3..3e09d89174c 100644
--- a/samples/client/petstore/python/petstore_api/__init__.py
+++ b/samples/client/petstore/python/petstore_api/__init__.py
@@ -61,4 +61,6 @@ from petstore_api.models.pet import Pet
from petstore_api.models.read_only_first import ReadOnlyFirst
from petstore_api.models.special_model_name import SpecialModelName
from petstore_api.models.tag import Tag
+from petstore_api.models.type_holder_default import TypeHolderDefault
+from petstore_api.models.type_holder_example import TypeHolderExample
from petstore_api.models.user import User
diff --git a/samples/client/petstore/python/petstore_api/api/another_fake_api.py b/samples/client/petstore/python/petstore_api/api/another_fake_api.py
index 782f7fd07b3..9fd3f816b9c 100644
--- a/samples/client/petstore/python/petstore_api/api/another_fake_api.py
+++ b/samples/client/petstore/python/petstore_api/api/another_fake_api.py
@@ -32,39 +32,39 @@ class AnotherFakeApi(object):
api_client = ApiClient()
self.api_client = api_client
- def call_123_test_special_tags(self, client, **kwargs): # noqa: E501
+ def call_123_test_special_tags(self, body, **kwargs): # noqa: E501
"""To test special tags # noqa: E501
To test special tags and operation ID starting with number # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.call_123_test_special_tags(client, async_req=True)
+ >>> thread = api.call_123_test_special_tags(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Client client: client model (required)
+ :param Client body: client model (required)
:return: Client
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.call_123_test_special_tags_with_http_info(client, **kwargs) # noqa: E501
+ return self.call_123_test_special_tags_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.call_123_test_special_tags_with_http_info(client, **kwargs) # noqa: E501
+ (data) = self.call_123_test_special_tags_with_http_info(body, **kwargs) # noqa: E501
return data
- def call_123_test_special_tags_with_http_info(self, client, **kwargs): # noqa: E501
+ def call_123_test_special_tags_with_http_info(self, body, **kwargs): # noqa: E501
"""To test special tags # noqa: E501
To test special tags and operation ID starting with number # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.call_123_test_special_tags_with_http_info(client, async_req=True)
+ >>> thread = api.call_123_test_special_tags_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Client client: client model (required)
+ :param Client body: client model (required)
:return: Client
If the method is called asynchronously,
returns the request thread.
@@ -72,7 +72,7 @@ class AnotherFakeApi(object):
local_var_params = locals()
- all_params = ['client'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -86,10 +86,10 @@ class AnotherFakeApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'client' is set
- if ('client' not in local_var_params or
- local_var_params['client'] is None):
- raise ValueError("Missing the required parameter `client` when calling `call_123_test_special_tags`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `call_123_test_special_tags`") # noqa: E501
collection_formats = {}
@@ -103,8 +103,8 @@ class AnotherFakeApi(object):
local_var_files = {}
body_params = None
- if 'client' in local_var_params:
- body_params = local_var_params['client']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
diff --git a/samples/client/petstore/python/petstore_api/api/fake_api.py b/samples/client/petstore/python/petstore_api/api/fake_api.py
index 1647628c407..e9401073dde 100644
--- a/samples/client/petstore/python/petstore_api/api/fake_api.py
+++ b/samples/client/petstore/python/petstore_api/api/fake_api.py
@@ -134,7 +134,7 @@ class FakeApi(object):
>>> result = thread.get()
:param async_req bool
- :param OuterComposite outer_composite: Input composite as post body
+ :param OuterComposite body: Input composite as post body
:return: OuterComposite
If the method is called asynchronously,
returns the request thread.
@@ -156,7 +156,7 @@ class FakeApi(object):
>>> result = thread.get()
:param async_req bool
- :param OuterComposite outer_composite: Input composite as post body
+ :param OuterComposite body: Input composite as post body
:return: OuterComposite
If the method is called asynchronously,
returns the request thread.
@@ -164,7 +164,7 @@ class FakeApi(object):
local_var_params = locals()
- all_params = ['outer_composite'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -191,8 +191,8 @@ class FakeApi(object):
local_var_files = {}
body_params = None
- if 'outer_composite' in local_var_params:
- body_params = local_var_params['outer_composite']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['*/*']) # noqa: E501
@@ -400,39 +400,39 @@ class FakeApi(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def test_body_with_file_schema(self, file_schema_test_class, **kwargs): # noqa: E501
+ def test_body_with_file_schema(self, body, **kwargs): # noqa: E501
"""test_body_with_file_schema # noqa: E501
For this test, the body for this request much reference a schema named `File`. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_body_with_file_schema(file_schema_test_class, async_req=True)
+ >>> thread = api.test_body_with_file_schema(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param FileSchemaTestClass file_schema_test_class: (required)
+ :param FileSchemaTestClass body: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.test_body_with_file_schema_with_http_info(file_schema_test_class, **kwargs) # noqa: E501
+ return self.test_body_with_file_schema_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.test_body_with_file_schema_with_http_info(file_schema_test_class, **kwargs) # noqa: E501
+ (data) = self.test_body_with_file_schema_with_http_info(body, **kwargs) # noqa: E501
return data
- def test_body_with_file_schema_with_http_info(self, file_schema_test_class, **kwargs): # noqa: E501
+ def test_body_with_file_schema_with_http_info(self, body, **kwargs): # noqa: E501
"""test_body_with_file_schema # noqa: E501
For this test, the body for this request much reference a schema named `File`. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_body_with_file_schema_with_http_info(file_schema_test_class, async_req=True)
+ >>> thread = api.test_body_with_file_schema_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param FileSchemaTestClass file_schema_test_class: (required)
+ :param FileSchemaTestClass body: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -440,7 +440,7 @@ class FakeApi(object):
local_var_params = locals()
- all_params = ['file_schema_test_class'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -454,10 +454,10 @@ class FakeApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'file_schema_test_class' is set
- if ('file_schema_test_class' not in local_var_params or
- local_var_params['file_schema_test_class'] is None):
- raise ValueError("Missing the required parameter `file_schema_test_class` when calling `test_body_with_file_schema`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `test_body_with_file_schema`") # noqa: E501
collection_formats = {}
@@ -471,8 +471,8 @@ class FakeApi(object):
local_var_files = {}
body_params = None
- if 'file_schema_test_class' in local_var_params:
- body_params = local_var_params['file_schema_test_class']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
@@ -496,39 +496,39 @@ class FakeApi(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def test_body_with_query_params(self, query, user, **kwargs): # noqa: E501
+ def test_body_with_query_params(self, query, body, **kwargs): # noqa: E501
"""test_body_with_query_params # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_body_with_query_params(query, user, async_req=True)
+ >>> thread = api.test_body_with_query_params(query, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str query: (required)
- :param User user: (required)
+ :param User body: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.test_body_with_query_params_with_http_info(query, user, **kwargs) # noqa: E501
+ return self.test_body_with_query_params_with_http_info(query, body, **kwargs) # noqa: E501
else:
- (data) = self.test_body_with_query_params_with_http_info(query, user, **kwargs) # noqa: E501
+ (data) = self.test_body_with_query_params_with_http_info(query, body, **kwargs) # noqa: E501
return data
- def test_body_with_query_params_with_http_info(self, query, user, **kwargs): # noqa: E501
+ def test_body_with_query_params_with_http_info(self, query, body, **kwargs): # noqa: E501
"""test_body_with_query_params # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_body_with_query_params_with_http_info(query, user, async_req=True)
+ >>> thread = api.test_body_with_query_params_with_http_info(query, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str query: (required)
- :param User user: (required)
+ :param User body: (required)
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -536,7 +536,7 @@ class FakeApi(object):
local_var_params = locals()
- all_params = ['query', 'user'] # noqa: E501
+ all_params = ['query', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -554,10 +554,10 @@ class FakeApi(object):
if ('query' not in local_var_params or
local_var_params['query'] is None):
raise ValueError("Missing the required parameter `query` when calling `test_body_with_query_params`") # noqa: E501
- # verify the required parameter 'user' is set
- if ('user' not in local_var_params or
- local_var_params['user'] is None):
- raise ValueError("Missing the required parameter `user` when calling `test_body_with_query_params`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `test_body_with_query_params`") # noqa: E501
collection_formats = {}
@@ -573,8 +573,8 @@ class FakeApi(object):
local_var_files = {}
body_params = None
- if 'user' in local_var_params:
- body_params = local_var_params['user']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
@@ -598,39 +598,39 @@ class FakeApi(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def test_client_model(self, client, **kwargs): # noqa: E501
+ def test_client_model(self, body, **kwargs): # noqa: E501
"""To test \"client\" model # noqa: E501
To test \"client\" model # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_client_model(client, async_req=True)
+ >>> thread = api.test_client_model(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Client client: client model (required)
+ :param Client body: client model (required)
:return: Client
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.test_client_model_with_http_info(client, **kwargs) # noqa: E501
+ return self.test_client_model_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.test_client_model_with_http_info(client, **kwargs) # noqa: E501
+ (data) = self.test_client_model_with_http_info(body, **kwargs) # noqa: E501
return data
- def test_client_model_with_http_info(self, client, **kwargs): # noqa: E501
+ def test_client_model_with_http_info(self, body, **kwargs): # noqa: E501
"""To test \"client\" model # noqa: E501
To test \"client\" model # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_client_model_with_http_info(client, async_req=True)
+ >>> thread = api.test_client_model_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Client client: client model (required)
+ :param Client body: client model (required)
:return: Client
If the method is called asynchronously,
returns the request thread.
@@ -638,7 +638,7 @@ class FakeApi(object):
local_var_params = locals()
- all_params = ['client'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -652,10 +652,10 @@ class FakeApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'client' is set
- if ('client' not in local_var_params or
- local_var_params['client'] is None):
- raise ValueError("Missing the required parameter `client` when calling `test_client_model`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `test_client_model`") # noqa: E501
collection_formats = {}
@@ -669,8 +669,8 @@ class FakeApi(object):
local_var_files = {}
body_params = None
- if 'client' in local_var_params:
- body_params = local_var_params['client']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
@@ -1129,37 +1129,37 @@ class FakeApi(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def test_inline_additional_properties(self, request_body, **kwargs): # noqa: E501
+ def test_inline_additional_properties(self, param, **kwargs): # noqa: E501
"""test inline additionalProperties # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_inline_additional_properties(request_body, async_req=True)
+ >>> thread = api.test_inline_additional_properties(param, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param dict(str, str) request_body: request body (required)
+ :param dict(str, str) param: request body (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.test_inline_additional_properties_with_http_info(request_body, **kwargs) # noqa: E501
+ return self.test_inline_additional_properties_with_http_info(param, **kwargs) # noqa: E501
else:
- (data) = self.test_inline_additional_properties_with_http_info(request_body, **kwargs) # noqa: E501
+ (data) = self.test_inline_additional_properties_with_http_info(param, **kwargs) # noqa: E501
return data
- def test_inline_additional_properties_with_http_info(self, request_body, **kwargs): # noqa: E501
+ def test_inline_additional_properties_with_http_info(self, param, **kwargs): # noqa: E501
"""test inline additionalProperties # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_inline_additional_properties_with_http_info(request_body, async_req=True)
+ >>> thread = api.test_inline_additional_properties_with_http_info(param, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param dict(str, str) request_body: request body (required)
+ :param dict(str, str) param: request body (required)
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -1167,7 +1167,7 @@ class FakeApi(object):
local_var_params = locals()
- all_params = ['request_body'] # noqa: E501
+ all_params = ['param'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -1181,10 +1181,10 @@ class FakeApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'request_body' is set
- if ('request_body' not in local_var_params or
- local_var_params['request_body'] is None):
- raise ValueError("Missing the required parameter `request_body` when calling `test_inline_additional_properties`") # noqa: E501
+ # verify the required parameter 'param' is set
+ if ('param' not in local_var_params or
+ local_var_params['param'] is None):
+ raise ValueError("Missing the required parameter `param` when calling `test_inline_additional_properties`") # noqa: E501
collection_formats = {}
@@ -1198,8 +1198,8 @@ class FakeApi(object):
local_var_files = {}
body_params = None
- if 'request_body' in local_var_params:
- body_params = local_var_params['request_body']
+ if 'param' in local_var_params:
+ body_params = local_var_params['param']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json']) # noqa: E501
diff --git a/samples/client/petstore/python/petstore_api/api/fake_classname_tags_123_api.py b/samples/client/petstore/python/petstore_api/api/fake_classname_tags_123_api.py
index 80e03e6626e..dbf6ef3dfb3 100644
--- a/samples/client/petstore/python/petstore_api/api/fake_classname_tags_123_api.py
+++ b/samples/client/petstore/python/petstore_api/api/fake_classname_tags_123_api.py
@@ -32,39 +32,39 @@ class FakeClassnameTags123Api(object):
api_client = ApiClient()
self.api_client = api_client
- def test_classname(self, client, **kwargs): # noqa: E501
+ def test_classname(self, body, **kwargs): # noqa: E501
"""To test class name in snake case # noqa: E501
To test class name in snake case # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_classname(client, async_req=True)
+ >>> thread = api.test_classname(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Client client: client model (required)
+ :param Client body: client model (required)
:return: Client
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.test_classname_with_http_info(client, **kwargs) # noqa: E501
+ return self.test_classname_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.test_classname_with_http_info(client, **kwargs) # noqa: E501
+ (data) = self.test_classname_with_http_info(body, **kwargs) # noqa: E501
return data
- def test_classname_with_http_info(self, client, **kwargs): # noqa: E501
+ def test_classname_with_http_info(self, body, **kwargs): # noqa: E501
"""To test class name in snake case # noqa: E501
To test class name in snake case # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.test_classname_with_http_info(client, async_req=True)
+ >>> thread = api.test_classname_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Client client: client model (required)
+ :param Client body: client model (required)
:return: Client
If the method is called asynchronously,
returns the request thread.
@@ -72,7 +72,7 @@ class FakeClassnameTags123Api(object):
local_var_params = locals()
- all_params = ['client'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -86,10 +86,10 @@ class FakeClassnameTags123Api(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'client' is set
- if ('client' not in local_var_params or
- local_var_params['client'] is None):
- raise ValueError("Missing the required parameter `client` when calling `test_classname`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `test_classname`") # noqa: E501
collection_formats = {}
@@ -103,8 +103,8 @@ class FakeClassnameTags123Api(object):
local_var_files = {}
body_params = None
- if 'client' in local_var_params:
- body_params = local_var_params['client']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/json']) # noqa: E501
diff --git a/samples/client/petstore/python/petstore_api/api/pet_api.py b/samples/client/petstore/python/petstore_api/api/pet_api.py
index cee0e90ab5c..f29e7239666 100644
--- a/samples/client/petstore/python/petstore_api/api/pet_api.py
+++ b/samples/client/petstore/python/petstore_api/api/pet_api.py
@@ -32,37 +32,37 @@ class PetApi(object):
api_client = ApiClient()
self.api_client = api_client
- def add_pet(self, pet, **kwargs): # noqa: E501
+ def add_pet(self, body, **kwargs): # noqa: E501
"""Add a new pet to the store # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.add_pet(pet, async_req=True)
+ >>> thread = api.add_pet(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Pet pet: Pet object that needs to be added to the store (required)
+ :param Pet body: Pet object that needs to be added to the store (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.add_pet_with_http_info(pet, **kwargs) # noqa: E501
+ return self.add_pet_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.add_pet_with_http_info(pet, **kwargs) # noqa: E501
+ (data) = self.add_pet_with_http_info(body, **kwargs) # noqa: E501
return data
- def add_pet_with_http_info(self, pet, **kwargs): # noqa: E501
+ def add_pet_with_http_info(self, body, **kwargs): # noqa: E501
"""Add a new pet to the store # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.add_pet_with_http_info(pet, async_req=True)
+ >>> thread = api.add_pet_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Pet pet: Pet object that needs to be added to the store (required)
+ :param Pet body: Pet object that needs to be added to the store (required)
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -70,7 +70,7 @@ class PetApi(object):
local_var_params = locals()
- all_params = ['pet'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -84,10 +84,10 @@ class PetApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'pet' is set
- if ('pet' not in local_var_params or
- local_var_params['pet'] is None):
- raise ValueError("Missing the required parameter `pet` when calling `add_pet`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `add_pet`") # noqa: E501
collection_formats = {}
@@ -101,8 +101,8 @@ class PetApi(object):
local_var_files = {}
body_params = None
- if 'pet' in local_var_params:
- body_params = local_var_params['pet']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'application/xml']) # noqa: E501
@@ -510,37 +510,37 @@ class PetApi(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def update_pet(self, pet, **kwargs): # noqa: E501
+ def update_pet(self, body, **kwargs): # noqa: E501
"""Update an existing pet # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_pet(pet, async_req=True)
+ >>> thread = api.update_pet(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Pet pet: Pet object that needs to be added to the store (required)
+ :param Pet body: Pet object that needs to be added to the store (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.update_pet_with_http_info(pet, **kwargs) # noqa: E501
+ return self.update_pet_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.update_pet_with_http_info(pet, **kwargs) # noqa: E501
+ (data) = self.update_pet_with_http_info(body, **kwargs) # noqa: E501
return data
- def update_pet_with_http_info(self, pet, **kwargs): # noqa: E501
+ def update_pet_with_http_info(self, body, **kwargs): # noqa: E501
"""Update an existing pet # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_pet_with_http_info(pet, async_req=True)
+ >>> thread = api.update_pet_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Pet pet: Pet object that needs to be added to the store (required)
+ :param Pet body: Pet object that needs to be added to the store (required)
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -548,7 +548,7 @@ class PetApi(object):
local_var_params = locals()
- all_params = ['pet'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -562,10 +562,10 @@ class PetApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'pet' is set
- if ('pet' not in local_var_params or
- local_var_params['pet'] is None):
- raise ValueError("Missing the required parameter `pet` when calling `update_pet`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `update_pet`") # noqa: E501
collection_formats = {}
@@ -579,8 +579,8 @@ class PetApi(object):
local_var_files = {}
body_params = None
- if 'pet' in local_var_params:
- body_params = local_var_params['pet']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
['application/json', 'application/xml']) # noqa: E501
diff --git a/samples/client/petstore/python/petstore_api/api/store_api.py b/samples/client/petstore/python/petstore_api/api/store_api.py
index 8d471fddabf..bd2677ef92b 100644
--- a/samples/client/petstore/python/petstore_api/api/store_api.py
+++ b/samples/client/petstore/python/petstore_api/api/store_api.py
@@ -312,37 +312,37 @@ class StoreApi(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def place_order(self, order, **kwargs): # noqa: E501
+ def place_order(self, body, **kwargs): # noqa: E501
"""Place an order for a pet # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.place_order(order, async_req=True)
+ >>> thread = api.place_order(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Order order: order placed for purchasing the pet (required)
+ :param Order body: order placed for purchasing the pet (required)
:return: Order
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.place_order_with_http_info(order, **kwargs) # noqa: E501
+ return self.place_order_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.place_order_with_http_info(order, **kwargs) # noqa: E501
+ (data) = self.place_order_with_http_info(body, **kwargs) # noqa: E501
return data
- def place_order_with_http_info(self, order, **kwargs): # noqa: E501
+ def place_order_with_http_info(self, body, **kwargs): # noqa: E501
"""Place an order for a pet # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.place_order_with_http_info(order, async_req=True)
+ >>> thread = api.place_order_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param Order order: order placed for purchasing the pet (required)
+ :param Order body: order placed for purchasing the pet (required)
:return: Order
If the method is called asynchronously,
returns the request thread.
@@ -350,7 +350,7 @@ class StoreApi(object):
local_var_params = locals()
- all_params = ['order'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -364,10 +364,10 @@ class StoreApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'order' is set
- if ('order' not in local_var_params or
- local_var_params['order'] is None):
- raise ValueError("Missing the required parameter `order` when calling `place_order`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `place_order`") # noqa: E501
collection_formats = {}
@@ -381,8 +381,8 @@ class StoreApi(object):
local_var_files = {}
body_params = None
- if 'order' in local_var_params:
- body_params = local_var_params['order']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.select_header_accept(
['application/xml', 'application/json']) # noqa: E501
diff --git a/samples/client/petstore/python/petstore_api/api/user_api.py b/samples/client/petstore/python/petstore_api/api/user_api.py
index e86ac277e97..c27299309a6 100644
--- a/samples/client/petstore/python/petstore_api/api/user_api.py
+++ b/samples/client/petstore/python/petstore_api/api/user_api.py
@@ -32,39 +32,39 @@ class UserApi(object):
api_client = ApiClient()
self.api_client = api_client
- def create_user(self, user, **kwargs): # noqa: E501
+ def create_user(self, body, **kwargs): # noqa: E501
"""Create user # noqa: E501
This can only be done by the logged in user. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_user(user, async_req=True)
+ >>> thread = api.create_user(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param User user: Created user object (required)
+ :param User body: Created user object (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.create_user_with_http_info(user, **kwargs) # noqa: E501
+ return self.create_user_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.create_user_with_http_info(user, **kwargs) # noqa: E501
+ (data) = self.create_user_with_http_info(body, **kwargs) # noqa: E501
return data
- def create_user_with_http_info(self, user, **kwargs): # noqa: E501
+ def create_user_with_http_info(self, body, **kwargs): # noqa: E501
"""Create user # noqa: E501
This can only be done by the logged in user. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_user_with_http_info(user, async_req=True)
+ >>> thread = api.create_user_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param User user: Created user object (required)
+ :param User body: Created user object (required)
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -72,7 +72,7 @@ class UserApi(object):
local_var_params = locals()
- all_params = ['user'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -86,10 +86,10 @@ class UserApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'user' is set
- if ('user' not in local_var_params or
- local_var_params['user'] is None):
- raise ValueError("Missing the required parameter `user` when calling `create_user`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `create_user`") # noqa: E501
collection_formats = {}
@@ -103,8 +103,8 @@ class UserApi(object):
local_var_files = {}
body_params = None
- if 'user' in local_var_params:
- body_params = local_var_params['user']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# Authentication setting
auth_settings = [] # noqa: E501
@@ -124,37 +124,37 @@ class UserApi(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def create_users_with_array_input(self, user, **kwargs): # noqa: E501
+ def create_users_with_array_input(self, body, **kwargs): # noqa: E501
"""Creates list of users with given input array # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_users_with_array_input(user, async_req=True)
+ >>> thread = api.create_users_with_array_input(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param list[User] user: List of user object (required)
+ :param list[User] body: List of user object (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.create_users_with_array_input_with_http_info(user, **kwargs) # noqa: E501
+ return self.create_users_with_array_input_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.create_users_with_array_input_with_http_info(user, **kwargs) # noqa: E501
+ (data) = self.create_users_with_array_input_with_http_info(body, **kwargs) # noqa: E501
return data
- def create_users_with_array_input_with_http_info(self, user, **kwargs): # noqa: E501
+ def create_users_with_array_input_with_http_info(self, body, **kwargs): # noqa: E501
"""Creates list of users with given input array # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_users_with_array_input_with_http_info(user, async_req=True)
+ >>> thread = api.create_users_with_array_input_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param list[User] user: List of user object (required)
+ :param list[User] body: List of user object (required)
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -162,7 +162,7 @@ class UserApi(object):
local_var_params = locals()
- all_params = ['user'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -176,10 +176,10 @@ class UserApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'user' is set
- if ('user' not in local_var_params or
- local_var_params['user'] is None):
- raise ValueError("Missing the required parameter `user` when calling `create_users_with_array_input`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `create_users_with_array_input`") # noqa: E501
collection_formats = {}
@@ -193,8 +193,8 @@ class UserApi(object):
local_var_files = {}
body_params = None
- if 'user' in local_var_params:
- body_params = local_var_params['user']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# Authentication setting
auth_settings = [] # noqa: E501
@@ -214,37 +214,37 @@ class UserApi(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def create_users_with_list_input(self, user, **kwargs): # noqa: E501
+ def create_users_with_list_input(self, body, **kwargs): # noqa: E501
"""Creates list of users with given input array # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_users_with_list_input(user, async_req=True)
+ >>> thread = api.create_users_with_list_input(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param list[User] user: List of user object (required)
+ :param list[User] body: List of user object (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.create_users_with_list_input_with_http_info(user, **kwargs) # noqa: E501
+ return self.create_users_with_list_input_with_http_info(body, **kwargs) # noqa: E501
else:
- (data) = self.create_users_with_list_input_with_http_info(user, **kwargs) # noqa: E501
+ (data) = self.create_users_with_list_input_with_http_info(body, **kwargs) # noqa: E501
return data
- def create_users_with_list_input_with_http_info(self, user, **kwargs): # noqa: E501
+ def create_users_with_list_input_with_http_info(self, body, **kwargs): # noqa: E501
"""Creates list of users with given input array # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_users_with_list_input_with_http_info(user, async_req=True)
+ >>> thread = api.create_users_with_list_input_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool
- :param list[User] user: List of user object (required)
+ :param list[User] body: List of user object (required)
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -252,7 +252,7 @@ class UserApi(object):
local_var_params = locals()
- all_params = ['user'] # noqa: E501
+ all_params = ['body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -266,10 +266,10 @@ class UserApi(object):
)
local_var_params[key] = val
del local_var_params['kwargs']
- # verify the required parameter 'user' is set
- if ('user' not in local_var_params or
- local_var_params['user'] is None):
- raise ValueError("Missing the required parameter `user` when calling `create_users_with_list_input`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `create_users_with_list_input`") # noqa: E501
collection_formats = {}
@@ -283,8 +283,8 @@ class UserApi(object):
local_var_files = {}
body_params = None
- if 'user' in local_var_params:
- body_params = local_var_params['user']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# Authentication setting
auth_settings = [] # noqa: E501
@@ -674,41 +674,41 @@ class UserApi(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def update_user(self, username, user, **kwargs): # noqa: E501
+ def update_user(self, username, body, **kwargs): # noqa: E501
"""Updated user # noqa: E501
This can only be done by the logged in user. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_user(username, user, async_req=True)
+ >>> thread = api.update_user(username, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str username: name that need to be deleted (required)
- :param User user: Updated user object (required)
+ :param User body: Updated user object (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('async_req'):
- return self.update_user_with_http_info(username, user, **kwargs) # noqa: E501
+ return self.update_user_with_http_info(username, body, **kwargs) # noqa: E501
else:
- (data) = self.update_user_with_http_info(username, user, **kwargs) # noqa: E501
+ (data) = self.update_user_with_http_info(username, body, **kwargs) # noqa: E501
return data
- def update_user_with_http_info(self, username, user, **kwargs): # noqa: E501
+ def update_user_with_http_info(self, username, body, **kwargs): # noqa: E501
"""Updated user # noqa: E501
This can only be done by the logged in user. # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.update_user_with_http_info(username, user, async_req=True)
+ >>> thread = api.update_user_with_http_info(username, body, async_req=True)
>>> result = thread.get()
:param async_req bool
:param str username: name that need to be deleted (required)
- :param User user: Updated user object (required)
+ :param User body: Updated user object (required)
:return: None
If the method is called asynchronously,
returns the request thread.
@@ -716,7 +716,7 @@ class UserApi(object):
local_var_params = locals()
- all_params = ['username', 'user'] # noqa: E501
+ all_params = ['username', 'body'] # noqa: E501
all_params.append('async_req')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
@@ -734,10 +734,10 @@ class UserApi(object):
if ('username' not in local_var_params or
local_var_params['username'] is None):
raise ValueError("Missing the required parameter `username` when calling `update_user`") # noqa: E501
- # verify the required parameter 'user' is set
- if ('user' not in local_var_params or
- local_var_params['user'] is None):
- raise ValueError("Missing the required parameter `user` when calling `update_user`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if ('body' not in local_var_params or
+ local_var_params['body'] is None):
+ raise ValueError("Missing the required parameter `body` when calling `update_user`") # noqa: E501
collection_formats = {}
@@ -753,8 +753,8 @@ class UserApi(object):
local_var_files = {}
body_params = None
- if 'user' in local_var_params:
- body_params = local_var_params['user']
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
# Authentication setting
auth_settings = [] # noqa: E501
diff --git a/samples/client/petstore/python/petstore_api/models/__init__.py b/samples/client/petstore/python/petstore_api/models/__init__.py
index 393dec06333..a2a081ff443 100644
--- a/samples/client/petstore/python/petstore_api/models/__init__.py
+++ b/samples/client/petstore/python/petstore_api/models/__init__.py
@@ -47,4 +47,6 @@ from petstore_api.models.pet import Pet
from petstore_api.models.read_only_first import ReadOnlyFirst
from petstore_api.models.special_model_name import SpecialModelName
from petstore_api.models.tag import Tag
+from petstore_api.models.type_holder_default import TypeHolderDefault
+from petstore_api.models.type_holder_example import TypeHolderExample
from petstore_api.models.user import User
diff --git a/samples/client/petstore/python/petstore_api/models/animal.py b/samples/client/petstore/python/petstore_api/models/animal.py
index 5acccf50f7a..abd6f705e5e 100644
--- a/samples/client/petstore/python/petstore_api/models/animal.py
+++ b/samples/client/petstore/python/petstore_api/models/animal.py
@@ -50,7 +50,7 @@ class Animal(object):
self._class_name = None
self._color = None
- self.discriminator = 'className'
+ self.discriminator = 'class_name'
self.class_name = class_name
if color is not None:
@@ -102,7 +102,8 @@ class Animal(object):
def get_real_child_model(self, data):
"""Returns the real base class specified by the discriminator"""
- discriminator_value = data[self.discriminator]
+ discriminator_key = self.attribute_map[self.discriminator]
+ discriminator_value = data[discriminator_key]
return self.discriminator_value_class_map.get(discriminator_value)
def to_dict(self):
diff --git a/samples/client/petstore/python/petstore_api/models/pet.py b/samples/client/petstore/python/petstore_api/models/pet.py
index d3c412f4a82..3183f60c797 100644
--- a/samples/client/petstore/python/petstore_api/models/pet.py
+++ b/samples/client/petstore/python/petstore_api/models/pet.py
@@ -48,7 +48,7 @@ class Pet(object):
'status': 'status'
}
- def __init__(self, id=None, category=None, name=None, photo_urls=None, tags=None, status=None): # noqa: E501
+ def __init__(self, id=None, category=None, name='doggie', photo_urls=None, tags=None, status=None): # noqa: E501
"""Pet - a model defined in OpenAPI""" # noqa: E501
self._id = None
diff --git a/samples/client/petstore/python/petstore_api/models/type_holder_default.py b/samples/client/petstore/python/petstore_api/models/type_holder_default.py
new file mode 100644
index 00000000000..a0566f5d5fe
--- /dev/null
+++ b/samples/client/petstore/python/petstore_api/models/type_holder_default.py
@@ -0,0 +1,221 @@
+# coding: utf-8
+
+"""
+ 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: \" \\ # noqa: E501
+
+ OpenAPI spec version: 1.0.0
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class TypeHolderDefault(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'string_item': 'str',
+ 'number_item': 'float',
+ 'integer_item': 'int',
+ 'bool_item': 'bool',
+ 'array_item': 'list[int]'
+ }
+
+ attribute_map = {
+ 'string_item': 'string_item',
+ 'number_item': 'number_item',
+ 'integer_item': 'integer_item',
+ 'bool_item': 'bool_item',
+ 'array_item': 'array_item'
+ }
+
+ def __init__(self, string_item='what', number_item=None, integer_item=None, bool_item=True, array_item=None): # noqa: E501
+ """TypeHolderDefault - a model defined in OpenAPI""" # noqa: E501
+
+ self._string_item = None
+ self._number_item = None
+ self._integer_item = None
+ self._bool_item = None
+ self._array_item = None
+ self.discriminator = None
+
+ self.string_item = string_item
+ self.number_item = number_item
+ self.integer_item = integer_item
+ self.bool_item = bool_item
+ self.array_item = array_item
+
+ @property
+ def string_item(self):
+ """Gets the string_item of this TypeHolderDefault. # noqa: E501
+
+
+ :return: The string_item of this TypeHolderDefault. # noqa: E501
+ :rtype: str
+ """
+ return self._string_item
+
+ @string_item.setter
+ def string_item(self, string_item):
+ """Sets the string_item of this TypeHolderDefault.
+
+
+ :param string_item: The string_item of this TypeHolderDefault. # noqa: E501
+ :type: str
+ """
+ if string_item is None:
+ raise ValueError("Invalid value for `string_item`, must not be `None`") # noqa: E501
+
+ self._string_item = string_item
+
+ @property
+ def number_item(self):
+ """Gets the number_item of this TypeHolderDefault. # noqa: E501
+
+
+ :return: The number_item of this TypeHolderDefault. # noqa: E501
+ :rtype: float
+ """
+ return self._number_item
+
+ @number_item.setter
+ def number_item(self, number_item):
+ """Sets the number_item of this TypeHolderDefault.
+
+
+ :param number_item: The number_item of this TypeHolderDefault. # noqa: E501
+ :type: float
+ """
+ if number_item is None:
+ raise ValueError("Invalid value for `number_item`, must not be `None`") # noqa: E501
+
+ self._number_item = number_item
+
+ @property
+ def integer_item(self):
+ """Gets the integer_item of this TypeHolderDefault. # noqa: E501
+
+
+ :return: The integer_item of this TypeHolderDefault. # noqa: E501
+ :rtype: int
+ """
+ return self._integer_item
+
+ @integer_item.setter
+ def integer_item(self, integer_item):
+ """Sets the integer_item of this TypeHolderDefault.
+
+
+ :param integer_item: The integer_item of this TypeHolderDefault. # noqa: E501
+ :type: int
+ """
+ if integer_item is None:
+ raise ValueError("Invalid value for `integer_item`, must not be `None`") # noqa: E501
+
+ self._integer_item = integer_item
+
+ @property
+ def bool_item(self):
+ """Gets the bool_item of this TypeHolderDefault. # noqa: E501
+
+
+ :return: The bool_item of this TypeHolderDefault. # noqa: E501
+ :rtype: bool
+ """
+ return self._bool_item
+
+ @bool_item.setter
+ def bool_item(self, bool_item):
+ """Sets the bool_item of this TypeHolderDefault.
+
+
+ :param bool_item: The bool_item of this TypeHolderDefault. # noqa: E501
+ :type: bool
+ """
+ if bool_item is None:
+ raise ValueError("Invalid value for `bool_item`, must not be `None`") # noqa: E501
+
+ self._bool_item = bool_item
+
+ @property
+ def array_item(self):
+ """Gets the array_item of this TypeHolderDefault. # noqa: E501
+
+
+ :return: The array_item of this TypeHolderDefault. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._array_item
+
+ @array_item.setter
+ def array_item(self, array_item):
+ """Sets the array_item of this TypeHolderDefault.
+
+
+ :param array_item: The array_item of this TypeHolderDefault. # noqa: E501
+ :type: list[int]
+ """
+ if array_item is None:
+ raise ValueError("Invalid value for `array_item`, must not be `None`") # noqa: E501
+
+ self._array_item = array_item
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, TypeHolderDefault):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/samples/client/petstore/python/petstore_api/models/type_holder_example.py b/samples/client/petstore/python/petstore_api/models/type_holder_example.py
new file mode 100644
index 00000000000..573354ab4d6
--- /dev/null
+++ b/samples/client/petstore/python/petstore_api/models/type_holder_example.py
@@ -0,0 +1,221 @@
+# coding: utf-8
+
+"""
+ 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: \" \\ # noqa: E501
+
+ OpenAPI spec version: 1.0.0
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+
+class TypeHolderExample(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'string_item': 'str',
+ 'number_item': 'float',
+ 'integer_item': 'int',
+ 'bool_item': 'bool',
+ 'array_item': 'list[int]'
+ }
+
+ attribute_map = {
+ 'string_item': 'string_item',
+ 'number_item': 'number_item',
+ 'integer_item': 'integer_item',
+ 'bool_item': 'bool_item',
+ 'array_item': 'array_item'
+ }
+
+ def __init__(self, string_item='what', number_item=1.234, integer_item=-2, bool_item=True, array_item=[0, 1, 2, 3]): # noqa: E501
+ """TypeHolderExample - a model defined in OpenAPI""" # noqa: E501
+
+ self._string_item = None
+ self._number_item = None
+ self._integer_item = None
+ self._bool_item = None
+ self._array_item = None
+ self.discriminator = None
+
+ self.string_item = string_item
+ self.number_item = number_item
+ self.integer_item = integer_item
+ self.bool_item = bool_item
+ self.array_item = array_item
+
+ @property
+ def string_item(self):
+ """Gets the string_item of this TypeHolderExample. # noqa: E501
+
+
+ :return: The string_item of this TypeHolderExample. # noqa: E501
+ :rtype: str
+ """
+ return self._string_item
+
+ @string_item.setter
+ def string_item(self, string_item):
+ """Sets the string_item of this TypeHolderExample.
+
+
+ :param string_item: The string_item of this TypeHolderExample. # noqa: E501
+ :type: str
+ """
+ if string_item is None:
+ raise ValueError("Invalid value for `string_item`, must not be `None`") # noqa: E501
+
+ self._string_item = string_item
+
+ @property
+ def number_item(self):
+ """Gets the number_item of this TypeHolderExample. # noqa: E501
+
+
+ :return: The number_item of this TypeHolderExample. # noqa: E501
+ :rtype: float
+ """
+ return self._number_item
+
+ @number_item.setter
+ def number_item(self, number_item):
+ """Sets the number_item of this TypeHolderExample.
+
+
+ :param number_item: The number_item of this TypeHolderExample. # noqa: E501
+ :type: float
+ """
+ if number_item is None:
+ raise ValueError("Invalid value for `number_item`, must not be `None`") # noqa: E501
+
+ self._number_item = number_item
+
+ @property
+ def integer_item(self):
+ """Gets the integer_item of this TypeHolderExample. # noqa: E501
+
+
+ :return: The integer_item of this TypeHolderExample. # noqa: E501
+ :rtype: int
+ """
+ return self._integer_item
+
+ @integer_item.setter
+ def integer_item(self, integer_item):
+ """Sets the integer_item of this TypeHolderExample.
+
+
+ :param integer_item: The integer_item of this TypeHolderExample. # noqa: E501
+ :type: int
+ """
+ if integer_item is None:
+ raise ValueError("Invalid value for `integer_item`, must not be `None`") # noqa: E501
+
+ self._integer_item = integer_item
+
+ @property
+ def bool_item(self):
+ """Gets the bool_item of this TypeHolderExample. # noqa: E501
+
+
+ :return: The bool_item of this TypeHolderExample. # noqa: E501
+ :rtype: bool
+ """
+ return self._bool_item
+
+ @bool_item.setter
+ def bool_item(self, bool_item):
+ """Sets the bool_item of this TypeHolderExample.
+
+
+ :param bool_item: The bool_item of this TypeHolderExample. # noqa: E501
+ :type: bool
+ """
+ if bool_item is None:
+ raise ValueError("Invalid value for `bool_item`, must not be `None`") # noqa: E501
+
+ self._bool_item = bool_item
+
+ @property
+ def array_item(self):
+ """Gets the array_item of this TypeHolderExample. # noqa: E501
+
+
+ :return: The array_item of this TypeHolderExample. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._array_item
+
+ @array_item.setter
+ def array_item(self, array_item):
+ """Sets the array_item of this TypeHolderExample.
+
+
+ :param array_item: The array_item of this TypeHolderExample. # noqa: E501
+ :type: list[int]
+ """
+ if array_item is None:
+ raise ValueError("Invalid value for `array_item`, must not be `None`") # noqa: E501
+
+ self._array_item = array_item
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, TypeHolderExample):
+ return False
+
+ return self.__dict__ == other.__dict__
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ return not self == other
diff --git a/samples/client/petstore/python/test/test_type_holder_default.py b/samples/client/petstore/python/test/test_type_holder_default.py
new file mode 100644
index 00000000000..e23ab2a32fc
--- /dev/null
+++ b/samples/client/petstore/python/test/test_type_holder_default.py
@@ -0,0 +1,49 @@
+# coding: utf-8
+
+"""
+ 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: \" \\ # noqa: E501
+
+ OpenAPI spec version: 1.0.0
+ Generated by: https://openapi-generator.tech
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import petstore_api
+from petstore_api.models.type_holder_default import TypeHolderDefault # noqa: E501
+from petstore_api.rest import ApiException
+
+
+class TestTypeHolderDefault(unittest.TestCase):
+ """TypeHolderDefault unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testTypeHolderDefault(self):
+ """Test TypeHolderDefault"""
+ # required_vars are set to None now until swagger-parser/swagger-core fixes
+ # https://github.com/swagger-api/swagger-parser/issues/971
+ required_vars = ['number_item', 'integer_item', 'array_item']
+ sample_values = [5.67, 4, [-5, 2, -6]]
+ assigned_variables = {}
+ for index, required_var in enumerate(required_vars):
+ with self.assertRaises(ValueError):
+ model = TypeHolderDefault(**assigned_variables)
+ assigned_variables[required_var] = sample_values[index]
+ # assigned_variables is fully set, all required variables passed in
+ model = TypeHolderDefault(**assigned_variables)
+ self.assertEqual(model.string_item, 'what')
+ self.assertEqual(model.bool_item, True)
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/samples/client/petstore/python/test/test_type_holder_example.py b/samples/client/petstore/python/test/test_type_holder_example.py
new file mode 100644
index 00000000000..64765f26d6c
--- /dev/null
+++ b/samples/client/petstore/python/test/test_type_holder_example.py
@@ -0,0 +1,42 @@
+# coding: utf-8
+
+"""
+ 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: \" \\ # noqa: E501
+
+ OpenAPI spec version: 1.0.0
+ Generated by: https://openapi-generator.tech
+"""
+
+
+from __future__ import absolute_import
+
+import unittest
+
+import petstore_api
+from petstore_api.models.type_holder_example import TypeHolderExample # noqa: E501
+from petstore_api.rest import ApiException
+
+
+class TestTypeHolderExample(unittest.TestCase):
+ """TypeHolderExample unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def testTypeHolderExample(self):
+ """Test TypeHolderExample"""
+ model = TypeHolderExample()
+ self.assertEqual(model.string_item, 'what')
+ self.assertEqual(model.number_item, 1.234)
+ self.assertEqual(model.integer_item, -2)
+ self.assertEqual(model.bool_item, True)
+ self.assertEqual(model.array_item, [0, 1, 2, 3])
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/samples/client/petstore/python/tests/test_deserialization.py b/samples/client/petstore/python/tests/test_deserialization.py
index 329e4fc5508..6c4e083d1cd 100644
--- a/samples/client/petstore/python/tests/test_deserialization.py
+++ b/samples/client/petstore/python/tests/test_deserialization.py
@@ -8,6 +8,8 @@ $ pip install nose (optional)
$ cd OpenAPIPetstore-python
$ nosetests -v
"""
+from collections import namedtuple
+import json
import os
import time
import unittest
@@ -16,11 +18,14 @@ import datetime
import petstore_api
+MockResponse = namedtuple('MockResponse', 'data')
+
+
class DeserializationTests(unittest.TestCase):
def setUp(self):
self.api_client = petstore_api.ApiClient()
- self.deserialize = self.api_client._ApiClient__deserialize
+ self.deserialize = self.api_client.deserialize
def test_enum_test(self):
""" deserialize dict(str, Enum_Test) """
@@ -33,8 +38,9 @@ class DeserializationTests(unittest.TestCase):
"outerEnum": "placed"
}
}
+ response = MockResponse(data=json.dumps(data))
- deserialized = self.deserialize(data, 'dict(str, EnumTest)')
+ deserialized = self.deserialize(response, 'dict(str, EnumTest)')
self.assertTrue(isinstance(deserialized, dict))
self.assertTrue(isinstance(deserialized['enum_test'], petstore_api.EnumTest))
self.assertEqual(deserialized['enum_test'],
@@ -66,8 +72,9 @@ class DeserializationTests(unittest.TestCase):
"status": "available"
}
}
+ response = MockResponse(data=json.dumps(data))
- deserialized = self.deserialize(data, 'dict(str, Pet)')
+ deserialized = self.deserialize(response, 'dict(str, Pet)')
self.assertTrue(isinstance(deserialized, dict))
self.assertTrue(isinstance(deserialized['pet'], petstore_api.Pet))
@@ -81,8 +88,9 @@ class DeserializationTests(unittest.TestCase):
"bread": "Jack Russel Terrier"
}
}
+ response = MockResponse(data=json.dumps(data))
- deserialized = self.deserialize(data, 'dict(str, Animal)')
+ deserialized = self.deserialize(response, 'dict(str, Animal)')
self.assertTrue(isinstance(deserialized, dict))
self.assertTrue(isinstance(deserialized['dog'], petstore_api.Dog))
@@ -91,27 +99,34 @@ class DeserializationTests(unittest.TestCase):
data = {
'integer': 1
}
+ response = MockResponse(data=json.dumps(data))
- deserialized = self.deserialize(data, 'dict(str, int)')
+ deserialized = self.deserialize(response, 'dict(str, int)')
self.assertTrue(isinstance(deserialized, dict))
self.assertTrue(isinstance(deserialized['integer'], int))
def test_deserialize_str(self):
""" deserialize str """
data = "test str"
- deserialized = self.deserialize(data, "str")
+ response = MockResponse(data=json.dumps(data))
+
+ deserialized = self.deserialize(response, "str")
self.assertTrue(isinstance(deserialized, str))
def test_deserialize_date(self):
""" deserialize date """
data = "1997-07-16"
- deserialized = self.deserialize(data, "date")
+ response = MockResponse(data=json.dumps(data))
+
+ deserialized = self.deserialize(response, "date")
self.assertTrue(isinstance(deserialized, datetime.date))
def test_deserialize_datetime(self):
""" deserialize datetime """
data = "1997-07-16T19:20:30.45+01:00"
- deserialized = self.deserialize(data, "datetime")
+ response = MockResponse(data=json.dumps(data))
+
+ deserialized = self.deserialize(response, "datetime")
self.assertTrue(isinstance(deserialized, datetime.datetime))
def test_deserialize_pet(self):
@@ -134,7 +149,9 @@ class DeserializationTests(unittest.TestCase):
],
"status": "available"
}
- deserialized = self.deserialize(data, "Pet")
+ response = MockResponse(data=json.dumps(data))
+
+ deserialized = self.deserialize(response, "Pet")
self.assertTrue(isinstance(deserialized, petstore_api.Pet))
self.assertEqual(deserialized.id, 0)
self.assertEqual(deserialized.name, "doggie")
@@ -182,7 +199,9 @@ class DeserializationTests(unittest.TestCase):
],
"status": "available"
}]
- deserialized = self.deserialize(data, "list[Pet]")
+ response = MockResponse(data=json.dumps(data))
+
+ deserialized = self.deserialize(response, "list[Pet]")
self.assertTrue(isinstance(deserialized, list))
self.assertTrue(isinstance(deserialized[0], petstore_api.Pet))
self.assertEqual(deserialized[0].id, 0)
@@ -197,8 +216,9 @@ class DeserializationTests(unittest.TestCase):
"bar": 1
}
}
+ response = MockResponse(data=json.dumps(data))
- deserialized = self.deserialize(data, "dict(str, dict(str, int))")
+ deserialized = self.deserialize(response, "dict(str, dict(str, int))")
self.assertTrue(isinstance(deserialized, dict))
self.assertTrue(isinstance(deserialized["foo"], dict))
self.assertTrue(isinstance(deserialized["foo"]["bar"], int))
@@ -206,13 +226,16 @@ class DeserializationTests(unittest.TestCase):
def test_deserialize_nested_list(self):
""" deserialize list[list[str]] """
data = [["foo"]]
+ response = MockResponse(data=json.dumps(data))
- deserialized = self.deserialize(data, "list[list[str]]")
+ deserialized = self.deserialize(response, "list[list[str]]")
self.assertTrue(isinstance(deserialized, list))
self.assertTrue(isinstance(deserialized[0], list))
self.assertTrue(isinstance(deserialized[0][0], str))
def test_deserialize_none(self):
""" deserialize None """
- deserialized = self.deserialize(None, "datetime")
+ response = MockResponse(data=json.dumps(None))
+
+ deserialized = self.deserialize(response, "datetime")
self.assertIsNone(deserialized)
diff --git a/samples/client/petstore/ruby/README.md b/samples/client/petstore/ruby/README.md
index f94148add4a..4c83eb54b5f 100644
--- a/samples/client/petstore/ruby/README.md
+++ b/samples/client/petstore/ruby/README.md
@@ -145,6 +145,8 @@ Class | Method | HTTP request | Description
- [Petstore::ReadOnlyFirst](docs/ReadOnlyFirst.md)
- [Petstore::SpecialModelName](docs/SpecialModelName.md)
- [Petstore::Tag](docs/Tag.md)
+ - [Petstore::TypeHolderDefault](docs/TypeHolderDefault.md)
+ - [Petstore::TypeHolderExample](docs/TypeHolderExample.md)
- [Petstore::User](docs/User.md)
diff --git a/samples/client/petstore/ruby/docs/TypeHolderDefault.md b/samples/client/petstore/ruby/docs/TypeHolderDefault.md
new file mode 100644
index 00000000000..eaadc04a66c
--- /dev/null
+++ b/samples/client/petstore/ruby/docs/TypeHolderDefault.md
@@ -0,0 +1,12 @@
+# Petstore::TypeHolderDefault
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**string_item** | **String** | | [default to 'what']
+**number_item** | **Float** | |
+**integer_item** | **Integer** | |
+**bool_item** | **BOOLEAN** | | [default to true]
+**array_item** | **Array<Integer>** | |
+
+
diff --git a/samples/client/petstore/ruby/docs/TypeHolderExample.md b/samples/client/petstore/ruby/docs/TypeHolderExample.md
new file mode 100644
index 00000000000..f93b2d4de4e
--- /dev/null
+++ b/samples/client/petstore/ruby/docs/TypeHolderExample.md
@@ -0,0 +1,12 @@
+# Petstore::TypeHolderExample
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**string_item** | **String** | |
+**number_item** | **Float** | |
+**integer_item** | **Integer** | |
+**bool_item** | **BOOLEAN** | |
+**array_item** | **Array<Integer>** | |
+
+
diff --git a/samples/client/petstore/ruby/lib/petstore.rb b/samples/client/petstore/ruby/lib/petstore.rb
index ac772a10fa4..c01921ea36e 100644
--- a/samples/client/petstore/ruby/lib/petstore.rb
+++ b/samples/client/petstore/ruby/lib/petstore.rb
@@ -50,6 +50,8 @@ require 'petstore/models/pet'
require 'petstore/models/read_only_first'
require 'petstore/models/special_model_name'
require 'petstore/models/tag'
+require 'petstore/models/type_holder_default'
+require 'petstore/models/type_holder_example'
require 'petstore/models/user'
# APIs
diff --git a/samples/client/petstore/ruby/lib/petstore/models/type_holder_default.rb b/samples/client/petstore/ruby/lib/petstore/models/type_holder_default.rb
new file mode 100644
index 00000000000..af54792b187
--- /dev/null
+++ b/samples/client/petstore/ruby/lib/petstore/models/type_holder_default.rb
@@ -0,0 +1,258 @@
+=begin
+#OpenAPI Petstore
+
+#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+
+OpenAPI spec version: 1.0.0
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 4.0.0-SNAPSHOT
+
+=end
+
+require 'date'
+
+module Petstore
+ class TypeHolderDefault
+ attr_accessor :string_item
+
+ attr_accessor :number_item
+
+ attr_accessor :integer_item
+
+ attr_accessor :bool_item
+
+ attr_accessor :array_item
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'string_item' => :'string_item',
+ :'number_item' => :'number_item',
+ :'integer_item' => :'integer_item',
+ :'bool_item' => :'bool_item',
+ :'array_item' => :'array_item'
+ }
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'string_item' => :'String',
+ :'number_item' => :'Float',
+ :'integer_item' => :'Integer',
+ :'bool_item' => :'BOOLEAN',
+ :'array_item' => :'Array'
+ }
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ return unless attributes.is_a?(Hash)
+
+ # convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
+
+ if attributes.has_key?(:'string_item')
+ self.string_item = attributes[:'string_item']
+ else
+ self.string_item = 'what'
+ end
+
+ if attributes.has_key?(:'number_item')
+ self.number_item = attributes[:'number_item']
+ end
+
+ if attributes.has_key?(:'integer_item')
+ self.integer_item = attributes[:'integer_item']
+ end
+
+ if attributes.has_key?(:'bool_item')
+ self.bool_item = attributes[:'bool_item']
+ else
+ self.bool_item = true
+ end
+
+ if attributes.has_key?(:'array_item')
+ if (value = attributes[:'array_item']).is_a?(Array)
+ self.array_item = value
+ end
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ if @string_item.nil?
+ invalid_properties.push('invalid value for "string_item", string_item cannot be nil.')
+ end
+
+ if @number_item.nil?
+ invalid_properties.push('invalid value for "number_item", number_item cannot be nil.')
+ end
+
+ if @integer_item.nil?
+ invalid_properties.push('invalid value for "integer_item", integer_item cannot be nil.')
+ end
+
+ if @bool_item.nil?
+ invalid_properties.push('invalid value for "bool_item", bool_item cannot be nil.')
+ end
+
+ if @array_item.nil?
+ invalid_properties.push('invalid value for "array_item", array_item cannot be nil.')
+ end
+
+ invalid_properties
+ end
+
+ # Check to see if the all the properties in the model are valid
+ # @return true if the model is valid
+ def valid?
+ return false if @string_item.nil?
+ return false if @number_item.nil?
+ return false if @integer_item.nil?
+ return false if @bool_item.nil?
+ return false if @array_item.nil?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ string_item == o.string_item &&
+ number_item == o.number_item &&
+ integer_item == o.integer_item &&
+ bool_item == o.bool_item &&
+ array_item == o.array_item
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Fixnum] Hash code
+ def hash
+ [string_item, number_item, integer_item, bool_item, array_item].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ self.class.openapi_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the the attribute
+ # is documented as an array but the input is not
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[self.class.attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :DateTime
+ DateTime.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :BOOLEAN
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ Petstore.const_get(type).build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash
+ hash = {}
+ self.class.attribute_map.each_pair do |attr, param|
+ value = self.send(attr)
+ next if value.nil?
+ hash[param] = _to_hash(value)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/samples/client/petstore/ruby/lib/petstore/models/type_holder_example.rb b/samples/client/petstore/ruby/lib/petstore/models/type_holder_example.rb
new file mode 100644
index 00000000000..e4af77d8034
--- /dev/null
+++ b/samples/client/petstore/ruby/lib/petstore/models/type_holder_example.rb
@@ -0,0 +1,254 @@
+=begin
+#OpenAPI Petstore
+
+#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+
+OpenAPI spec version: 1.0.0
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 4.0.0-SNAPSHOT
+
+=end
+
+require 'date'
+
+module Petstore
+ class TypeHolderExample
+ attr_accessor :string_item
+
+ attr_accessor :number_item
+
+ attr_accessor :integer_item
+
+ attr_accessor :bool_item
+
+ attr_accessor :array_item
+
+ # Attribute mapping from ruby-style variable name to JSON key.
+ def self.attribute_map
+ {
+ :'string_item' => :'string_item',
+ :'number_item' => :'number_item',
+ :'integer_item' => :'integer_item',
+ :'bool_item' => :'bool_item',
+ :'array_item' => :'array_item'
+ }
+ end
+
+ # Attribute type mapping.
+ def self.openapi_types
+ {
+ :'string_item' => :'String',
+ :'number_item' => :'Float',
+ :'integer_item' => :'Integer',
+ :'bool_item' => :'BOOLEAN',
+ :'array_item' => :'Array'
+ }
+ end
+
+ # Initializes the object
+ # @param [Hash] attributes Model attributes in the form of hash
+ def initialize(attributes = {})
+ return unless attributes.is_a?(Hash)
+
+ # convert string to symbol for hash key
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
+
+ if attributes.has_key?(:'string_item')
+ self.string_item = attributes[:'string_item']
+ end
+
+ if attributes.has_key?(:'number_item')
+ self.number_item = attributes[:'number_item']
+ end
+
+ if attributes.has_key?(:'integer_item')
+ self.integer_item = attributes[:'integer_item']
+ end
+
+ if attributes.has_key?(:'bool_item')
+ self.bool_item = attributes[:'bool_item']
+ end
+
+ if attributes.has_key?(:'array_item')
+ if (value = attributes[:'array_item']).is_a?(Array)
+ self.array_item = value
+ end
+ end
+ end
+
+ # Show invalid properties with the reasons. Usually used together with valid?
+ # @return Array for valid properties with the reasons
+ def list_invalid_properties
+ invalid_properties = Array.new
+ if @string_item.nil?
+ invalid_properties.push('invalid value for "string_item", string_item cannot be nil.')
+ end
+
+ if @number_item.nil?
+ invalid_properties.push('invalid value for "number_item", number_item cannot be nil.')
+ end
+
+ if @integer_item.nil?
+ invalid_properties.push('invalid value for "integer_item", integer_item cannot be nil.')
+ end
+
+ if @bool_item.nil?
+ invalid_properties.push('invalid value for "bool_item", bool_item cannot be nil.')
+ end
+
+ if @array_item.nil?
+ invalid_properties.push('invalid value for "array_item", array_item cannot be nil.')
+ end
+
+ invalid_properties
+ end
+
+ # Check to see if the all the properties in the model are valid
+ # @return true if the model is valid
+ def valid?
+ return false if @string_item.nil?
+ return false if @number_item.nil?
+ return false if @integer_item.nil?
+ return false if @bool_item.nil?
+ return false if @array_item.nil?
+ true
+ end
+
+ # Checks equality by comparing each attribute.
+ # @param [Object] Object to be compared
+ def ==(o)
+ return true if self.equal?(o)
+ self.class == o.class &&
+ string_item == o.string_item &&
+ number_item == o.number_item &&
+ integer_item == o.integer_item &&
+ bool_item == o.bool_item &&
+ array_item == o.array_item
+ end
+
+ # @see the `==` method
+ # @param [Object] Object to be compared
+ def eql?(o)
+ self == o
+ end
+
+ # Calculates hash code according to all attributes.
+ # @return [Fixnum] Hash code
+ def hash
+ [string_item, number_item, integer_item, bool_item, array_item].hash
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def self.build_from_hash(attributes)
+ new.build_from_hash(attributes)
+ end
+
+ # Builds the object from hash
+ # @param [Hash] attributes Model attributes in the form of hash
+ # @return [Object] Returns the model itself
+ def build_from_hash(attributes)
+ return nil unless attributes.is_a?(Hash)
+ self.class.openapi_types.each_pair do |key, type|
+ if type =~ /\AArray<(.*)>/i
+ # check to ensure the input is an array given that the the attribute
+ # is documented as an array but the input is not
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
+ end
+ elsif !attributes[self.class.attribute_map[key]].nil?
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
+ end
+
+ self
+ end
+
+ # Deserializes the data based on type
+ # @param string type Data type
+ # @param string value Value to be deserialized
+ # @return [Object] Deserialized data
+ def _deserialize(type, value)
+ case type.to_sym
+ when :DateTime
+ DateTime.parse(value)
+ when :Date
+ Date.parse(value)
+ when :String
+ value.to_s
+ when :Integer
+ value.to_i
+ when :Float
+ value.to_f
+ when :BOOLEAN
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
+ true
+ else
+ false
+ end
+ when :Object
+ # generic object (usually a Hash), return directly
+ value
+ when /\AArray<(?.+)>\z/
+ inner_type = Regexp.last_match[:inner_type]
+ value.map { |v| _deserialize(inner_type, v) }
+ when /\AHash<(?.+?), (?.+)>\z/
+ k_type = Regexp.last_match[:k_type]
+ v_type = Regexp.last_match[:v_type]
+ {}.tap do |hash|
+ value.each do |k, v|
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
+ end
+ end
+ else # model
+ Petstore.const_get(type).build_from_hash(value)
+ end
+ end
+
+ # Returns the string representation of the object
+ # @return [String] String presentation of the object
+ def to_s
+ to_hash.to_s
+ end
+
+ # to_body is an alias to to_hash (backward compatibility)
+ # @return [Hash] Returns the object in the form of hash
+ def to_body
+ to_hash
+ end
+
+ # Returns the object in the form of hash
+ # @return [Hash] Returns the object in the form of hash
+ def to_hash
+ hash = {}
+ self.class.attribute_map.each_pair do |attr, param|
+ value = self.send(attr)
+ next if value.nil?
+ hash[param] = _to_hash(value)
+ end
+ hash
+ end
+
+ # Outputs non-array value in the form of hash
+ # For object, use to_hash. Otherwise, just return the value
+ # @param [Object] value Any valid value
+ # @return [Hash] Returns the value in the form of hash
+ def _to_hash(value)
+ if value.is_a?(Array)
+ value.compact.map { |v| _to_hash(v) }
+ elsif value.is_a?(Hash)
+ {}.tap do |hash|
+ value.each { |k, v| hash[k] = _to_hash(v) }
+ end
+ elsif value.respond_to? :to_hash
+ value.to_hash
+ else
+ value
+ end
+ end
+
+ end
+
+end
diff --git a/samples/client/petstore/ruby/spec/models/type_holder_default_spec.rb b/samples/client/petstore/ruby/spec/models/type_holder_default_spec.rb
new file mode 100644
index 00000000000..8770adbbaa6
--- /dev/null
+++ b/samples/client/petstore/ruby/spec/models/type_holder_default_spec.rb
@@ -0,0 +1,65 @@
+=begin
+#OpenAPI Petstore
+
+#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+
+OpenAPI spec version: 1.0.0
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 4.0.0-SNAPSHOT
+
+=end
+
+require 'spec_helper'
+require 'json'
+require 'date'
+
+# Unit tests for Petstore::TypeHolderDefault
+# Automatically generated by openapi-generator (https://openapi-generator.tech)
+# Please update as you see appropriate
+describe 'TypeHolderDefault' do
+ before do
+ # run before each test
+ @instance = Petstore::TypeHolderDefault.new
+ end
+
+ after do
+ # run after each test
+ end
+
+ describe 'test an instance of TypeHolderDefault' do
+ it 'should create an instance of TypeHolderDefault' do
+ expect(@instance).to be_instance_of(Petstore::TypeHolderDefault)
+ end
+ end
+ describe 'test attribute "string_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ describe 'test attribute "number_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ describe 'test attribute "integer_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ describe 'test attribute "bool_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ describe 'test attribute "array_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+end
diff --git a/samples/client/petstore/ruby/spec/models/type_holder_example_spec.rb b/samples/client/petstore/ruby/spec/models/type_holder_example_spec.rb
new file mode 100644
index 00000000000..b7af5697115
--- /dev/null
+++ b/samples/client/petstore/ruby/spec/models/type_holder_example_spec.rb
@@ -0,0 +1,65 @@
+=begin
+#OpenAPI Petstore
+
+#This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+
+OpenAPI spec version: 1.0.0
+
+Generated by: https://openapi-generator.tech
+OpenAPI Generator version: 4.0.0-SNAPSHOT
+
+=end
+
+require 'spec_helper'
+require 'json'
+require 'date'
+
+# Unit tests for Petstore::TypeHolderExample
+# Automatically generated by openapi-generator (https://openapi-generator.tech)
+# Please update as you see appropriate
+describe 'TypeHolderExample' do
+ before do
+ # run before each test
+ @instance = Petstore::TypeHolderExample.new
+ end
+
+ after do
+ # run after each test
+ end
+
+ describe 'test an instance of TypeHolderExample' do
+ it 'should create an instance of TypeHolderExample' do
+ expect(@instance).to be_instance_of(Petstore::TypeHolderExample)
+ end
+ end
+ describe 'test attribute "string_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ describe 'test attribute "number_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ describe 'test attribute "integer_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ describe 'test attribute "bool_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+ describe 'test attribute "array_item"' do
+ it 'should work' do
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
+ end
+ end
+
+end
diff --git a/samples/schema/petstore/mysql/mysql_schema.sql b/samples/schema/petstore/mysql/mysql_schema.sql
index 5870b90fab9..c4c06ab189c 100644
--- a/samples/schema/petstore/mysql/mysql_schema.sql
+++ b/samples/schema/petstore/mysql/mysql_schema.sql
@@ -316,6 +316,30 @@ CREATE TABLE IF NOT EXISTS `Tag` (
`name` TEXT DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+--
+-- Table structure for table `TypeHolderDefault` generated from model 'TypeHolderDefault'
+--
+
+CREATE TABLE IF NOT EXISTS `TypeHolderDefault` (
+ `string_item` TEXT NOT NULL,
+ `number_item` DECIMAL(20, 9) NOT NULL,
+ `integer_item` INT NOT NULL,
+ `bool_item` TINYINT(1) NOT NULL,
+ `array_item` JSON NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+
+--
+-- Table structure for table `TypeHolderExample` generated from model 'TypeHolderExample'
+--
+
+CREATE TABLE IF NOT EXISTS `TypeHolderExample` (
+ `string_item` TEXT NOT NULL,
+ `number_item` DECIMAL(20, 9) NOT NULL,
+ `integer_item` INT NOT NULL,
+ `bool_item` TINYINT(1) NOT NULL,
+ `array_item` JSON NOT NULL
+) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
+
--
-- Table structure for table `User` generated from model 'User'
--
diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..ace8f6a23bd
--- /dev/null
+++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderDefault.java
@@ -0,0 +1,162 @@
+package org.openapitools.model;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+import io.swagger.annotations.ApiModelProperty;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class TypeHolderDefault {
+
+ @ApiModelProperty(required = true, value = "")
+ private String stringItem = "what";
+
+ @ApiModelProperty(required = true, value = "")
+ @Valid
+ private BigDecimal numberItem;
+
+ @ApiModelProperty(required = true, value = "")
+ private Integer integerItem;
+
+ @ApiModelProperty(required = true, value = "")
+ private Boolean boolItem = true;
+
+ @ApiModelProperty(required = true, value = "")
+ private List arrayItem = new ArrayList();
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @JsonProperty("string_item")
+ @NotNull
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @JsonProperty("number_item")
+ @NotNull
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @JsonProperty("integer_item")
+ @NotNull
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @JsonProperty("bool_item")
+ @NotNull
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @JsonProperty("array_item")
+ @NotNull
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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 static String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderExample.java
new file mode 100644
index 00000000000..9d82e8ca2f0
--- /dev/null
+++ b/samples/server/petstore/jaxrs-cxf/src/gen/java/org/openapitools/model/TypeHolderExample.java
@@ -0,0 +1,162 @@
+package org.openapitools.model;
+
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+import io.swagger.annotations.ApiModelProperty;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.XmlEnum;
+import javax.xml.bind.annotation.XmlEnumValue;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+public class TypeHolderExample {
+
+ @ApiModelProperty(example = "what", required = true, value = "")
+ private String stringItem;
+
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @Valid
+ private BigDecimal numberItem;
+
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ private Integer integerItem;
+
+ @ApiModelProperty(example = "true", required = true, value = "")
+ private Boolean boolItem;
+
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ private List arrayItem = new ArrayList();
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @JsonProperty("string_item")
+ @NotNull
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @JsonProperty("number_item")
+ @NotNull
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @JsonProperty("integer_item")
+ @NotNull
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @JsonProperty("bool_item")
+ @NotNull
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @JsonProperty("array_item")
+ @NotNull
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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 static String toIndentedString(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..3cdcb620220
--- /dev/null
+++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderDefault.java
@@ -0,0 +1,206 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import java.io.Serializable;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+/**
+ * TypeHolderDefault
+ */
+
+public class TypeHolderDefault implements Serializable {
+ @JsonProperty("string_item")
+ private String stringItem = "what";
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem = true;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @JsonProperty("string_item")
+ @ApiModelProperty(required = true, value = "")
+ @NotNull
+
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @JsonProperty("number_item")
+ @ApiModelProperty(required = true, value = "")
+ @NotNull
+@Valid
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @JsonProperty("integer_item")
+ @ApiModelProperty(required = true, value = "")
+ @NotNull
+
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @JsonProperty("bool_item")
+ @ApiModelProperty(required = true, value = "")
+ @NotNull
+
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderDefault arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderDefault addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @JsonProperty("array_item")
+ @ApiModelProperty(required = true, value = "")
+ @NotNull
+
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderDefault typeHolderDefault = (TypeHolderDefault) o;
+ return Objects.equals(this.stringItem, typeHolderDefault.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderDefault.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderDefault.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderDefault.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderDefault.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderDefault {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java
new file mode 100644
index 00000000000..01974197407
--- /dev/null
+++ b/samples/server/petstore/jaxrs-datelib-j8/src/gen/java/org/openapitools/model/TypeHolderExample.java
@@ -0,0 +1,206 @@
+/*
+ * OpenAPI Petstore
+ * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
+ *
+ * OpenAPI spec version: 1.0.0
+ *
+ *
+ * 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.model;
+
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import java.io.Serializable;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+/**
+ * TypeHolderExample
+ */
+
+public class TypeHolderExample implements Serializable {
+ @JsonProperty("string_item")
+ private String stringItem;
+
+ @JsonProperty("number_item")
+ private BigDecimal numberItem;
+
+ @JsonProperty("integer_item")
+ private Integer integerItem;
+
+ @JsonProperty("bool_item")
+ private Boolean boolItem;
+
+ @JsonProperty("array_item")
+ private List arrayItem = new ArrayList<>();
+
+ public TypeHolderExample stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+ /**
+ * Get stringItem
+ * @return stringItem
+ **/
+ @JsonProperty("string_item")
+ @ApiModelProperty(example = "what", required = true, value = "")
+ @NotNull
+
+ public String getStringItem() {
+ return stringItem;
+ }
+
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ public TypeHolderExample numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+ /**
+ * Get numberItem
+ * @return numberItem
+ **/
+ @JsonProperty("number_item")
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+@Valid
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ public TypeHolderExample integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+ /**
+ * Get integerItem
+ * @return integerItem
+ **/
+ @JsonProperty("integer_item")
+ @ApiModelProperty(example = "-2", required = true, value = "")
+ @NotNull
+
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ public TypeHolderExample boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+ /**
+ * Get boolItem
+ * @return boolItem
+ **/
+ @JsonProperty("bool_item")
+ @ApiModelProperty(example = "true", required = true, value = "")
+ @NotNull
+
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ public TypeHolderExample arrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ return this;
+ }
+
+ public TypeHolderExample addArrayItemItem(Integer arrayItemItem) {
+ this.arrayItem.add(arrayItemItem);
+ return this;
+ }
+
+ /**
+ * Get arrayItem
+ * @return arrayItem
+ **/
+ @JsonProperty("array_item")
+ @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
+ @NotNull
+
+ public List getArrayItem() {
+ return arrayItem;
+ }
+
+ public void setArrayItem(List arrayItem) {
+ this.arrayItem = arrayItem;
+ }
+
+
+ @Override
+ public boolean equals(java.lang.Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ TypeHolderExample typeHolderExample = (TypeHolderExample) o;
+ return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
+ Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
+ Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
+ Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ }
+
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append("class TypeHolderExample {\n");
+
+ sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
+ sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" integerItem: ").append(toIndentedString(integerItem)).append("\n");
+ sb.append(" boolItem: ").append(toIndentedString(boolItem)).append("\n");
+ sb.append(" arrayItem: ").append(toIndentedString(arrayItem)).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(java.lang.Object o) {
+ if (o == null) {
+ return "null";
+ }
+ return o.toString().replace("\n", "\n ");
+ }
+}
+
diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java
new file mode 100644
index 00000000000..b0cfc27703c
--- /dev/null
+++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderDefault.java
@@ -0,0 +1,165 @@
+package org.openapitools.model;
+
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import java.math.BigDecimal;
+import java.util.ArrayList;
+import java.util.List;
+import java.io.Serializable;
+import javax.validation.constraints.*;
+import javax.validation.Valid;
+
+import io.swagger.annotations.*;
+import java.util.Objects;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+
+
+public class TypeHolderDefault implements Serializable {
+
+ private @Valid String stringItem = "what";
+ private @Valid BigDecimal numberItem;
+ private @Valid Integer integerItem;
+ private @Valid Boolean boolItem = true;
+ private @Valid List arrayItem = new ArrayList();
+
+ /**
+ **/
+ public TypeHolderDefault stringItem(String stringItem) {
+ this.stringItem = stringItem;
+ return this;
+ }
+
+
+ @ApiModelProperty(required = true, value = "")
+ @JsonProperty("string_item")
+ @NotNull
+ public String getStringItem() {
+ return stringItem;
+ }
+ public void setStringItem(String stringItem) {
+ this.stringItem = stringItem;
+ }
+
+ /**
+ **/
+ public TypeHolderDefault numberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ return this;
+ }
+
+
+ @ApiModelProperty(required = true, value = "")
+ @JsonProperty("number_item")
+ @NotNull
+ public BigDecimal getNumberItem() {
+ return numberItem;
+ }
+ public void setNumberItem(BigDecimal numberItem) {
+ this.numberItem = numberItem;
+ }
+
+ /**
+ **/
+ public TypeHolderDefault integerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ return this;
+ }
+
+
+ @ApiModelProperty(required = true, value = "")
+ @JsonProperty("integer_item")
+ @NotNull
+ public Integer getIntegerItem() {
+ return integerItem;
+ }
+ public void setIntegerItem(Integer integerItem) {
+ this.integerItem = integerItem;
+ }
+
+ /**
+ **/
+ public TypeHolderDefault boolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ return this;
+ }
+
+
+ @ApiModelProperty(required = true, value = "")
+ @JsonProperty("bool_item")
+ @NotNull
+ public Boolean getBoolItem() {
+ return boolItem;
+ }
+ public void setBoolItem(Boolean boolItem) {
+ this.boolItem = boolItem;
+ }
+
+ /**
+ **/
+ public TypeHolderDefault arrayItem(List