diff --git a/modules/openapi-generator/src/main/resources/Java/modelInnerEnum.mustache b/modules/openapi-generator/src/main/resources/Java/modelInnerEnum.mustache
index 614e260c97fc..101870341f5d 100644
--- a/modules/openapi-generator/src/main/resources/Java/modelInnerEnum.mustache
+++ b/modules/openapi-generator/src/main/resources/Java/modelInnerEnum.mustache
@@ -56,7 +56,7 @@
@Override
public {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} read(final JsonReader jsonReader) throws IOException {
- {{^isNumber}}{{{dataType}}}{{/isNumber}}{{#isNumber}}String{{/isNumber}} value = jsonReader.{{#isNumber}}nextString(){{/isNumber}}{{#isInteger}}nextInt(){{/isInteger}}{{^isNumber}}{{^isInteger}}next{{{dataType}}}(){{/isInteger}}{{/isNumber}};
+ {{^isNumber}}{{{dataType}}}{{/isNumber}}{{#isNumber}}String{{/isNumber}} value = {{#isFloat}}(float){{/isFloat}} jsonReader.{{#isNumber}}nextString(){{/isNumber}}{{#isInteger}}nextInt(){{/isInteger}}{{^isNumber}}{{^isInteger}}{{#isFloat}}nextDouble{{/isFloat}}{{^isFloat}}next{{{dataType}}}{{/isFloat}}(){{/isInteger}}{{/isNumber}};
return {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}.fromValue({{#isNumber}}new BigDecimal({{/isNumber}}value{{#isNumber}}){{/isNumber}});
}
}
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 38d9683b62dc..9a7d4a03b4ae 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
@@ -1783,6 +1783,7 @@ definitions:
required:
- string_item
- number_item
+ - float_item
- integer_item
- bool_item
- array_item
@@ -1793,6 +1794,10 @@ definitions:
number_item:
type: number
example: 1.234
+ float_item:
+ type: number
+ example: 1.234
+ format: float
integer_item:
type: integer
example: -2
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderExample.md b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderExample.md
index c1b5b77f9604..f78185c2aa04 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderExample.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/docs/TypeHolderExample.md
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StringItem** | **string** | |
**NumberItem** | **decimal** | |
+**FloatItem** | **float** | |
**IntegerItem** | **int** | |
**BoolItem** | **bool** | |
**ArrayItem** | **List<int>** | |
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs
index 9a1df28e4a71..42043170e6a2 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs
@@ -42,10 +42,11 @@ protected TypeHolderExample() { }
///
/// stringItem (required).
/// numberItem (required).
+ /// floatItem (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))
+ public TypeHolderExample(string stringItem = default(string), decimal numberItem = default(decimal), float floatItem = default(float), int integerItem = default(int), bool boolItem = default(bool), List arrayItem = default(List))
{
// to ensure "stringItem" is required (not null)
if (stringItem == null)
@@ -67,6 +68,16 @@ protected TypeHolderExample() { }
this.NumberItem = numberItem;
}
+ // to ensure "floatItem" is required (not null)
+ if (floatItem == null)
+ {
+ throw new InvalidDataException("floatItem is a required property for TypeHolderExample and cannot be null");
+ }
+ else
+ {
+ this.FloatItem = floatItem;
+ }
+
// to ensure "integerItem" is required (not null)
if (integerItem == null)
{
@@ -111,6 +122,12 @@ protected TypeHolderExample() { }
[DataMember(Name="number_item", EmitDefaultValue=false)]
public decimal NumberItem { get; set; }
+ ///
+ /// Gets or Sets FloatItem
+ ///
+ [DataMember(Name="float_item", EmitDefaultValue=false)]
+ public float FloatItem { get; set; }
+
///
/// Gets or Sets IntegerItem
///
@@ -139,6 +156,7 @@ public override string ToString()
sb.Append("class TypeHolderExample {\n");
sb.Append(" StringItem: ").Append(StringItem).Append("\n");
sb.Append(" NumberItem: ").Append(NumberItem).Append("\n");
+ sb.Append(" FloatItem: ").Append(FloatItem).Append("\n");
sb.Append(" IntegerItem: ").Append(IntegerItem).Append("\n");
sb.Append(" BoolItem: ").Append(BoolItem).Append("\n");
sb.Append(" ArrayItem: ").Append(ArrayItem).Append("\n");
@@ -187,6 +205,7 @@ public override int GetHashCode()
if (this.StringItem != null)
hashCode = hashCode * 59 + this.StringItem.GetHashCode();
hashCode = hashCode * 59 + this.NumberItem.GetHashCode();
+ hashCode = hashCode * 59 + this.FloatItem.GetHashCode();
hashCode = hashCode * 59 + this.IntegerItem.GetHashCode();
hashCode = hashCode * 59 + this.BoolItem.GetHashCode();
if (this.ArrayItem != null)
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderExample.md b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderExample.md
index c1b5b77f9604..f78185c2aa04 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderExample.md
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/docs/TypeHolderExample.md
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StringItem** | **string** | |
**NumberItem** | **decimal** | |
+**FloatItem** | **float** | |
**IntegerItem** | **int** | |
**BoolItem** | **bool** | |
**ArrayItem** | **List<int>** | |
diff --git a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderExample.cs b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderExample.cs
index 9a1df28e4a71..42043170e6a2 100644
--- a/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderExample.cs
+++ b/samples/client/petstore/csharp-netcore/OpenAPIClientCore/src/Org.OpenAPITools/Model/TypeHolderExample.cs
@@ -42,10 +42,11 @@ protected TypeHolderExample() { }
///
/// stringItem (required).
/// numberItem (required).
+ /// floatItem (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))
+ public TypeHolderExample(string stringItem = default(string), decimal numberItem = default(decimal), float floatItem = default(float), int integerItem = default(int), bool boolItem = default(bool), List arrayItem = default(List))
{
// to ensure "stringItem" is required (not null)
if (stringItem == null)
@@ -67,6 +68,16 @@ protected TypeHolderExample() { }
this.NumberItem = numberItem;
}
+ // to ensure "floatItem" is required (not null)
+ if (floatItem == null)
+ {
+ throw new InvalidDataException("floatItem is a required property for TypeHolderExample and cannot be null");
+ }
+ else
+ {
+ this.FloatItem = floatItem;
+ }
+
// to ensure "integerItem" is required (not null)
if (integerItem == null)
{
@@ -111,6 +122,12 @@ protected TypeHolderExample() { }
[DataMember(Name="number_item", EmitDefaultValue=false)]
public decimal NumberItem { get; set; }
+ ///
+ /// Gets or Sets FloatItem
+ ///
+ [DataMember(Name="float_item", EmitDefaultValue=false)]
+ public float FloatItem { get; set; }
+
///
/// Gets or Sets IntegerItem
///
@@ -139,6 +156,7 @@ public override string ToString()
sb.Append("class TypeHolderExample {\n");
sb.Append(" StringItem: ").Append(StringItem).Append("\n");
sb.Append(" NumberItem: ").Append(NumberItem).Append("\n");
+ sb.Append(" FloatItem: ").Append(FloatItem).Append("\n");
sb.Append(" IntegerItem: ").Append(IntegerItem).Append("\n");
sb.Append(" BoolItem: ").Append(BoolItem).Append("\n");
sb.Append(" ArrayItem: ").Append(ArrayItem).Append("\n");
@@ -187,6 +205,7 @@ public override int GetHashCode()
if (this.StringItem != null)
hashCode = hashCode * 59 + this.StringItem.GetHashCode();
hashCode = hashCode * 59 + this.NumberItem.GetHashCode();
+ hashCode = hashCode * 59 + this.FloatItem.GetHashCode();
hashCode = hashCode * 59 + this.IntegerItem.GetHashCode();
hashCode = hashCode * 59 + this.BoolItem.GetHashCode();
if (this.ArrayItem != null)
diff --git a/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderExample.md b/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderExample.md
index e92681b8cba4..b9573673baf6 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderExample.md
+++ b/samples/client/petstore/csharp/OpenAPIClient/docs/TypeHolderExample.md
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StringItem** | **string** | |
**NumberItem** | **decimal** | |
+**FloatItem** | **float** | |
**IntegerItem** | **int** | |
**BoolItem** | **bool** | |
**ArrayItem** | **List<int>** | |
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
index 384b5dbbc958..f72c763b0397 100644
--- a/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs
+++ b/samples/client/petstore/csharp/OpenAPIClient/src/Org.OpenAPITools/Model/TypeHolderExample.cs
@@ -40,10 +40,11 @@ protected TypeHolderExample() { }
///
/// stringItem (required).
/// numberItem (required).
+ /// floatItem (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))
+ public TypeHolderExample(string stringItem = default(string), decimal numberItem = default(decimal), float floatItem = default(float), int integerItem = default(int), bool boolItem = default(bool), List arrayItem = default(List))
{
// to ensure "stringItem" is required (not null)
if (stringItem == null)
@@ -65,6 +66,16 @@ protected TypeHolderExample() { }
this.NumberItem = numberItem;
}
+ // to ensure "floatItem" is required (not null)
+ if (floatItem == null)
+ {
+ throw new InvalidDataException("floatItem is a required property for TypeHolderExample and cannot be null");
+ }
+ else
+ {
+ this.FloatItem = floatItem;
+ }
+
// to ensure "integerItem" is required (not null)
if (integerItem == null)
{
@@ -109,6 +120,12 @@ protected TypeHolderExample() { }
[DataMember(Name="number_item", EmitDefaultValue=false)]
public decimal NumberItem { get; set; }
+ ///
+ /// Gets or Sets FloatItem
+ ///
+ [DataMember(Name="float_item", EmitDefaultValue=false)]
+ public float FloatItem { get; set; }
+
///
/// Gets or Sets IntegerItem
///
@@ -137,6 +154,7 @@ public override string ToString()
sb.Append("class TypeHolderExample {\n");
sb.Append(" StringItem: ").Append(StringItem).Append("\n");
sb.Append(" NumberItem: ").Append(NumberItem).Append("\n");
+ sb.Append(" FloatItem: ").Append(FloatItem).Append("\n");
sb.Append(" IntegerItem: ").Append(IntegerItem).Append("\n");
sb.Append(" BoolItem: ").Append(BoolItem).Append("\n");
sb.Append(" ArrayItem: ").Append(ArrayItem).Append("\n");
@@ -184,6 +202,11 @@ public bool Equals(TypeHolderExample input)
(this.NumberItem != null &&
this.NumberItem.Equals(input.NumberItem))
) &&
+ (
+ this.FloatItem == input.FloatItem ||
+ (this.FloatItem != null &&
+ this.FloatItem.Equals(input.FloatItem))
+ ) &&
(
this.IntegerItem == input.IntegerItem ||
(this.IntegerItem != null &&
@@ -215,6 +238,8 @@ public override int GetHashCode()
hashCode = hashCode * 59 + this.StringItem.GetHashCode();
if (this.NumberItem != null)
hashCode = hashCode * 59 + this.NumberItem.GetHashCode();
+ if (this.FloatItem != null)
+ hashCode = hashCode * 59 + this.FloatItem.GetHashCode();
if (this.IntegerItem != null)
hashCode = hashCode * 59 + this.IntegerItem.GetHashCode();
if (this.BoolItem != null)
diff --git a/samples/client/petstore/elixir/lib/openapi_petstore/model/type_holder_example.ex b/samples/client/petstore/elixir/lib/openapi_petstore/model/type_holder_example.ex
index b08d783c4395..194a74c32cf7 100644
--- a/samples/client/petstore/elixir/lib/openapi_petstore/model/type_holder_example.ex
+++ b/samples/client/petstore/elixir/lib/openapi_petstore/model/type_holder_example.ex
@@ -11,6 +11,7 @@ defmodule OpenapiPetstore.Model.TypeHolderExample do
defstruct [
:"string_item",
:"number_item",
+ :"float_item",
:"integer_item",
:"bool_item",
:"array_item"
@@ -19,6 +20,7 @@ defmodule OpenapiPetstore.Model.TypeHolderExample do
@type t :: %__MODULE__{
:"string_item" => String.t,
:"number_item" => float(),
+ :"float_item" => float(),
:"integer_item" => integer(),
:"bool_item" => boolean(),
:"array_item" => [integer()]
diff --git a/samples/client/petstore/go/go-petstore-withXml/api/openapi.yaml b/samples/client/petstore/go/go-petstore-withXml/api/openapi.yaml
index 0a1559e1c4b7..37a46abf4feb 100644
--- a/samples/client/petstore/go/go-petstore-withXml/api/openapi.yaml
+++ b/samples/client/petstore/go/go-petstore-withXml/api/openapi.yaml
@@ -1869,6 +1869,10 @@ components:
number_item:
example: 1.234
type: number
+ float_item:
+ example: 1.234
+ format: float
+ type: number
integer_item:
example: -2
type: integer
@@ -1887,6 +1891,7 @@ components:
required:
- array_item
- bool_item
+ - float_item
- integer_item
- number_item
- string_item
diff --git a/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderExample.md b/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderExample.md
index abe85f9799d1..f4d62ea836b8 100644
--- a/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderExample.md
+++ b/samples/client/petstore/go/go-petstore-withXml/docs/TypeHolderExample.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StringItem** | **string** | |
**NumberItem** | **float32** | |
+**FloatItem** | **float32** | |
**IntegerItem** | **int32** | |
**BoolItem** | **bool** | |
**ArrayItem** | **[]int32** | |
diff --git a/samples/client/petstore/go/go-petstore-withXml/model_type_holder_example.go b/samples/client/petstore/go/go-petstore-withXml/model_type_holder_example.go
index a3bd7d0ad350..4c7432f78d00 100644
--- a/samples/client/petstore/go/go-petstore-withXml/model_type_holder_example.go
+++ b/samples/client/petstore/go/go-petstore-withXml/model_type_holder_example.go
@@ -13,6 +13,7 @@ package petstore
type TypeHolderExample struct {
StringItem string `json:"string_item" xml:"string_item"`
NumberItem float32 `json:"number_item" xml:"number_item"`
+ FloatItem float32 `json:"float_item" xml:"float_item"`
IntegerItem int32 `json:"integer_item" xml:"integer_item"`
BoolItem bool `json:"bool_item" xml:"bool_item"`
ArrayItem []int32 `json:"array_item" xml:"array_item"`
diff --git a/samples/client/petstore/go/go-petstore/api/openapi.yaml b/samples/client/petstore/go/go-petstore/api/openapi.yaml
index 0a1559e1c4b7..37a46abf4feb 100644
--- a/samples/client/petstore/go/go-petstore/api/openapi.yaml
+++ b/samples/client/petstore/go/go-petstore/api/openapi.yaml
@@ -1869,6 +1869,10 @@ components:
number_item:
example: 1.234
type: number
+ float_item:
+ example: 1.234
+ format: float
+ type: number
integer_item:
example: -2
type: integer
@@ -1887,6 +1891,7 @@ components:
required:
- array_item
- bool_item
+ - float_item
- integer_item
- number_item
- string_item
diff --git a/samples/client/petstore/go/go-petstore/docs/TypeHolderExample.md b/samples/client/petstore/go/go-petstore/docs/TypeHolderExample.md
index abe85f9799d1..f4d62ea836b8 100644
--- a/samples/client/petstore/go/go-petstore/docs/TypeHolderExample.md
+++ b/samples/client/petstore/go/go-petstore/docs/TypeHolderExample.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StringItem** | **string** | |
**NumberItem** | **float32** | |
+**FloatItem** | **float32** | |
**IntegerItem** | **int32** | |
**BoolItem** | **bool** | |
**ArrayItem** | **[]int32** | |
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
index bcf4edf7b95e..3d1d53f3d75d 100644
--- a/samples/client/petstore/go/go-petstore/model_type_holder_example.go
+++ b/samples/client/petstore/go/go-petstore/model_type_holder_example.go
@@ -12,6 +12,7 @@ package petstore
type TypeHolderExample struct {
StringItem string `json:"string_item"`
NumberItem float32 `json:"number_item"`
+ FloatItem float32 `json:"float_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 9ad860766624..46623d752c28 100644
--- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs
+++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/Model.hs
@@ -1687,6 +1687,7 @@ mkTypeHolderDefault typeHolderDefaultStringItem typeHolderDefaultNumberItem type
data TypeHolderExample = TypeHolderExample
{ typeHolderExampleStringItem :: !(Text) -- ^ /Required/ "string_item"
, typeHolderExampleNumberItem :: !(Double) -- ^ /Required/ "number_item"
+ , typeHolderExampleFloatItem :: !(Float) -- ^ /Required/ "float_item"
, typeHolderExampleIntegerItem :: !(Int) -- ^ /Required/ "integer_item"
, typeHolderExampleBoolItem :: !(Bool) -- ^ /Required/ "bool_item"
, typeHolderExampleArrayItem :: !([Int]) -- ^ /Required/ "array_item"
@@ -1698,6 +1699,7 @@ instance A.FromJSON TypeHolderExample where
TypeHolderExample
<$> (o .: "string_item")
<*> (o .: "number_item")
+ <*> (o .: "float_item")
<*> (o .: "integer_item")
<*> (o .: "bool_item")
<*> (o .: "array_item")
@@ -1708,6 +1710,7 @@ instance A.ToJSON TypeHolderExample where
_omitNulls
[ "string_item" .= typeHolderExampleStringItem
, "number_item" .= typeHolderExampleNumberItem
+ , "float_item" .= typeHolderExampleFloatItem
, "integer_item" .= typeHolderExampleIntegerItem
, "bool_item" .= typeHolderExampleBoolItem
, "array_item" .= typeHolderExampleArrayItem
@@ -1718,14 +1721,16 @@ instance A.ToJSON TypeHolderExample where
mkTypeHolderExample
:: Text -- ^ 'typeHolderExampleStringItem'
-> Double -- ^ 'typeHolderExampleNumberItem'
+ -> Float -- ^ 'typeHolderExampleFloatItem'
-> Int -- ^ 'typeHolderExampleIntegerItem'
-> Bool -- ^ 'typeHolderExampleBoolItem'
-> [Int] -- ^ 'typeHolderExampleArrayItem'
-> TypeHolderExample
-mkTypeHolderExample typeHolderExampleStringItem typeHolderExampleNumberItem typeHolderExampleIntegerItem typeHolderExampleBoolItem typeHolderExampleArrayItem =
+mkTypeHolderExample typeHolderExampleStringItem typeHolderExampleNumberItem typeHolderExampleFloatItem typeHolderExampleIntegerItem typeHolderExampleBoolItem typeHolderExampleArrayItem =
TypeHolderExample
{ typeHolderExampleStringItem
, typeHolderExampleNumberItem
+ , typeHolderExampleFloatItem
, typeHolderExampleIntegerItem
, typeHolderExampleBoolItem
, typeHolderExampleArrayItem
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 353dacb6e6f0..5908865df53a 100644
--- a/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/ModelLens.hs
+++ b/samples/client/petstore/haskell-http-client/lib/OpenAPIPetstore/ModelLens.hs
@@ -780,6 +780,11 @@ typeHolderExampleNumberItemL :: Lens_' TypeHolderExample (Double)
typeHolderExampleNumberItemL f TypeHolderExample{..} = (\typeHolderExampleNumberItem -> TypeHolderExample { typeHolderExampleNumberItem, ..} ) <$> f typeHolderExampleNumberItem
{-# INLINE typeHolderExampleNumberItemL #-}
+-- | 'typeHolderExampleFloatItem' Lens
+typeHolderExampleFloatItemL :: Lens_' TypeHolderExample (Float)
+typeHolderExampleFloatItemL f TypeHolderExample{..} = (\typeHolderExampleFloatItem -> TypeHolderExample { typeHolderExampleFloatItem, ..} ) <$> f typeHolderExampleFloatItem
+{-# INLINE typeHolderExampleFloatItemL #-}
+
-- | 'typeHolderExampleIntegerItem' Lens
typeHolderExampleIntegerItemL :: Lens_' TypeHolderExample (Int)
typeHolderExampleIntegerItemL f TypeHolderExample{..} = (\typeHolderExampleIntegerItem -> TypeHolderExample { typeHolderExampleIntegerItem, ..} ) <$> f typeHolderExampleIntegerItem
diff --git a/samples/client/petstore/haskell-http-client/openapi.yaml b/samples/client/petstore/haskell-http-client/openapi.yaml
index 0a1559e1c4b7..37a46abf4feb 100644
--- a/samples/client/petstore/haskell-http-client/openapi.yaml
+++ b/samples/client/petstore/haskell-http-client/openapi.yaml
@@ -1869,6 +1869,10 @@ components:
number_item:
example: 1.234
type: number
+ float_item:
+ example: 1.234
+ format: float
+ type: number
integer_item:
example: -2
type: integer
@@ -1887,6 +1891,7 @@ components:
required:
- array_item
- bool_item
+ - float_item
- integer_item
- number_item
- string_item
diff --git a/samples/client/petstore/haskell-http-client/tests/Instances.hs b/samples/client/petstore/haskell-http-client/tests/Instances.hs
index 8926e3e4ed71..c4b9395d4b6e 100644
--- a/samples/client/petstore/haskell-http-client/tests/Instances.hs
+++ b/samples/client/petstore/haskell-http-client/tests/Instances.hs
@@ -511,6 +511,7 @@ genTypeHolderExample n =
TypeHolderExample
<$> arbitrary -- typeHolderExampleStringItem :: Text
<*> arbitrary -- typeHolderExampleNumberItem :: Double
+ <*> arbitrary -- typeHolderExampleFloatItem :: Float
<*> arbitrary -- typeHolderExampleIntegerItem :: Int
<*> arbitrary -- typeHolderExampleBoolItem :: Bool
<*> arbitrary -- typeHolderExampleArrayItem :: [Int]
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
index 98336e8e0744..0e96a6db8cc8 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
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
index 98336e8e0744..0e96a6db8cc8 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/google-api-client/docs/TypeHolderExample.md b/samples/client/petstore/java/google-api-client/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/google-api-client/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/google-api-client/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index 19b9a8e930f4..32a4d8bb6e4a 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/jersey1/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey1/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/jersey1/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/jersey1/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index 19b9a8e930f4..32a4d8bb6e4a 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/jersey2-java6/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey2-java6/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/jersey2-java6/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/jersey2-java6/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index ef4b92c7ccf1..e4973ba1f49b 100644
--- 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
@@ -31,6 +31,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -43,6 +44,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -103,6 +107,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -194,6 +223,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return ObjectUtils.equals(this.stringItem, typeHolderExample.stringItem) &&
ObjectUtils.equals(this.numberItem, typeHolderExample.numberItem) &&
+ ObjectUtils.equals(this.floatItem, typeHolderExample.floatItem) &&
ObjectUtils.equals(this.integerItem, typeHolderExample.integerItem) &&
ObjectUtils.equals(this.boolItem, typeHolderExample.boolItem) &&
ObjectUtils.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -201,7 +231,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return ObjectUtils.hashCodeMulti(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return ObjectUtils.hashCodeMulti(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -211,6 +241,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/jersey2-java8/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index 594fd6c03e9d..158636a401fe 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/jersey2/docs/TypeHolderExample.md b/samples/client/petstore/java/jersey2/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/jersey2/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/jersey2/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index 19b9a8e930f4..32a4d8bb6e4a 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/native/docs/TypeHolderExample.md b/samples/client/petstore/java/native/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/native/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/native/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java
index 594fd6c03e9d..158636a401fe 100644
--- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java
+++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/TypeHolderExample.java
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderExample.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java
index 654d93654b72..caa59c3a6eab 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java
@@ -74,7 +74,7 @@ public void write(final JsonWriter jsonWriter, final JustSymbolEnum enumeration)
@Override
public JustSymbolEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return JustSymbolEnum.fromValue(value);
}
}
@@ -125,7 +125,7 @@ public void write(final JsonWriter jsonWriter, final ArrayEnumEnum enumeration)
@Override
public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return ArrayEnumEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java
index af2575a01706..383b85c790b7 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java
@@ -75,7 +75,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringEnum enumeration)
@Override
public EnumStringEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringEnum.fromValue(value);
}
}
@@ -128,7 +128,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringRequiredEnum enum
@Override
public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringRequiredEnum.fromValue(value);
}
}
@@ -179,7 +179,7 @@ public void write(final JsonWriter jsonWriter, final EnumIntegerEnum enumeration
@Override
public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException {
- Integer value = jsonReader.nextInt();
+ Integer value = jsonReader.nextInt();
return EnumIntegerEnum.fromValue(value);
}
}
@@ -230,7 +230,7 @@ public void write(final JsonWriter jsonWriter, final EnumNumberEnum enumeration)
@Override
public EnumNumberEnum read(final JsonReader jsonReader) throws IOException {
- Double value = jsonReader.nextDouble();
+ Double value = jsonReader.nextDouble();
return EnumNumberEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java
index f01dd58b56c8..aaf07f81ced4 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java
@@ -79,7 +79,7 @@ public void write(final JsonWriter jsonWriter, final InnerEnum enumeration) thro
@Override
public InnerEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return InnerEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java
index 18ee018f9957..2e1e19683404 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java
@@ -91,7 +91,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java
index 5946772dd1cf..f6fc8415a72c 100644
--- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java
+++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java
@@ -98,7 +98,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
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
index 092229cc9e56..a1c16610d3f9 100644
--- 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
@@ -42,6 +42,10 @@ public class TypeHolderExample implements Parcelable {
@SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item";
+ @SerializedName(SERIALIZED_NAME_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
@SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
private Integer integerItem;
@@ -103,6 +107,29 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -188,6 +215,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -195,7 +223,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -205,6 +233,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
@@ -227,6 +256,7 @@ private String toIndentedString(java.lang.Object o) {
public void writeToParcel(Parcel out, int flags) {
out.writeValue(stringItem);
out.writeValue(numberItem);
+ out.writeValue(floatItem);
out.writeValue(integerItem);
out.writeValue(boolItem);
out.writeValue(arrayItem);
@@ -235,6 +265,7 @@ public void writeToParcel(Parcel out, int flags) {
TypeHolderExample(Parcel in) {
stringItem = (String)in.readValue(null);
numberItem = (BigDecimal)in.readValue(BigDecimal.class.getClassLoader());
+ floatItem = (Float)in.readValue(null);
integerItem = (Integer)in.readValue(null);
boolItem = (Boolean)in.readValue(null);
arrayItem = (List)in.readValue(null);
diff --git a/samples/client/petstore/java/okhttp-gson/docs/TypeHolderExample.md b/samples/client/petstore/java/okhttp-gson/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/okhttp-gson/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/okhttp-gson/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java
index 4587357d5b05..bbb97598ea37 100644
--- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java
@@ -72,7 +72,7 @@ public void write(final JsonWriter jsonWriter, final JustSymbolEnum enumeration)
@Override
public JustSymbolEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return JustSymbolEnum.fromValue(value);
}
}
@@ -123,7 +123,7 @@ public void write(final JsonWriter jsonWriter, final ArrayEnumEnum enumeration)
@Override
public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return ArrayEnumEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java
index 34f8781e089f..c08e4f6239de 100644
--- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java
+++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java
@@ -73,7 +73,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringEnum enumeration)
@Override
public EnumStringEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringEnum.fromValue(value);
}
}
@@ -126,7 +126,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringRequiredEnum enum
@Override
public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringRequiredEnum.fromValue(value);
}
}
@@ -177,7 +177,7 @@ public void write(final JsonWriter jsonWriter, final EnumIntegerEnum enumeration
@Override
public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException {
- Integer value = jsonReader.nextInt();
+ Integer value = jsonReader.nextInt();
return EnumIntegerEnum.fromValue(value);
}
}
@@ -228,7 +228,7 @@ public void write(final JsonWriter jsonWriter, final EnumNumberEnum enumeration)
@Override
public EnumNumberEnum read(final JsonReader jsonReader) throws IOException {
- Double value = jsonReader.nextDouble();
+ Double value = jsonReader.nextDouble();
return EnumNumberEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java
index 609587e370f0..b19863fb9931 100644
--- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java
+++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java
@@ -77,7 +77,7 @@ public void write(final JsonWriter jsonWriter, final InnerEnum enumeration) thro
@Override
public InnerEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return InnerEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java
index fe6a60098bf5..8b4c1c910b72 100644
--- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java
+++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java
@@ -89,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java
index 943b3103f03e..643184ae4fc1 100644
--- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java
+++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java
@@ -96,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
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
index a0691d38a54d..bf0f4550ccbf 100644
--- 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
@@ -40,6 +40,10 @@ public class TypeHolderExample {
@SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item";
+ @SerializedName(SERIALIZED_NAME_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
@SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
private Integer integerItem;
@@ -99,6 +103,29 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -184,6 +211,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -191,7 +219,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -201,6 +229,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/rest-assured/docs/TypeHolderExample.md b/samples/client/petstore/java/rest-assured/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/rest-assured/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/rest-assured/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java
index 4587357d5b05..bbb97598ea37 100644
--- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumArrays.java
@@ -72,7 +72,7 @@ public void write(final JsonWriter jsonWriter, final JustSymbolEnum enumeration)
@Override
public JustSymbolEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return JustSymbolEnum.fromValue(value);
}
}
@@ -123,7 +123,7 @@ public void write(final JsonWriter jsonWriter, final ArrayEnumEnum enumeration)
@Override
public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return ArrayEnumEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java
index 34f8781e089f..c08e4f6239de 100644
--- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java
+++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/EnumTest.java
@@ -73,7 +73,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringEnum enumeration)
@Override
public EnumStringEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringEnum.fromValue(value);
}
}
@@ -126,7 +126,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringRequiredEnum enum
@Override
public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringRequiredEnum.fromValue(value);
}
}
@@ -177,7 +177,7 @@ public void write(final JsonWriter jsonWriter, final EnumIntegerEnum enumeration
@Override
public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException {
- Integer value = jsonReader.nextInt();
+ Integer value = jsonReader.nextInt();
return EnumIntegerEnum.fromValue(value);
}
}
@@ -228,7 +228,7 @@ public void write(final JsonWriter jsonWriter, final EnumNumberEnum enumeration)
@Override
public EnumNumberEnum read(final JsonReader jsonReader) throws IOException {
- Double value = jsonReader.nextDouble();
+ Double value = jsonReader.nextDouble();
return EnumNumberEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java
index 609587e370f0..b19863fb9931 100644
--- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java
+++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MapTest.java
@@ -77,7 +77,7 @@ public void write(final JsonWriter jsonWriter, final InnerEnum enumeration) thro
@Override
public InnerEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return InnerEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java
index ed6de56bce11..550086024f52 100644
--- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java
+++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Order.java
@@ -89,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java
index 943b3103f03e..643184ae4fc1 100644
--- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java
+++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Pet.java
@@ -96,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
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
index f01043e7876b..9c981c42ea22 100644
--- 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
@@ -40,6 +40,10 @@ public class TypeHolderExample {
@SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item";
+ @SerializedName(SERIALIZED_NAME_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
@SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
private Integer integerItem;
@@ -99,6 +103,29 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -184,6 +211,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -191,7 +219,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -201,6 +229,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/resteasy/docs/TypeHolderExample.md b/samples/client/petstore/java/resteasy/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/resteasy/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/resteasy/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index 19b9a8e930f4..32a4d8bb6e4a 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderExample.md b/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/resttemplate-withXml/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index 4d5da0082056..7508b3fe96ad 100644
--- 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
@@ -34,6 +34,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -51,6 +52,10 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ @XmlElement(name = "float_item")
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
@XmlElement(name = "integer_item")
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -119,6 +124,32 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+ @JacksonXmlProperty(localName = "float_item")
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -212,6 +243,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -219,7 +251,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -229,6 +261,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/resttemplate/docs/TypeHolderExample.md b/samples/client/petstore/java/resttemplate/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/resttemplate/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/resttemplate/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index 19b9a8e930f4..32a4d8bb6e4a 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java
index 4587357d5b05..bbb97598ea37 100644
--- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java
@@ -72,7 +72,7 @@ public void write(final JsonWriter jsonWriter, final JustSymbolEnum enumeration)
@Override
public JustSymbolEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return JustSymbolEnum.fromValue(value);
}
}
@@ -123,7 +123,7 @@ public void write(final JsonWriter jsonWriter, final ArrayEnumEnum enumeration)
@Override
public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return ArrayEnumEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java
index 34f8781e089f..c08e4f6239de 100644
--- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java
+++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java
@@ -73,7 +73,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringEnum enumeration)
@Override
public EnumStringEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringEnum.fromValue(value);
}
}
@@ -126,7 +126,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringRequiredEnum enum
@Override
public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringRequiredEnum.fromValue(value);
}
}
@@ -177,7 +177,7 @@ public void write(final JsonWriter jsonWriter, final EnumIntegerEnum enumeration
@Override
public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException {
- Integer value = jsonReader.nextInt();
+ Integer value = jsonReader.nextInt();
return EnumIntegerEnum.fromValue(value);
}
}
@@ -228,7 +228,7 @@ public void write(final JsonWriter jsonWriter, final EnumNumberEnum enumeration)
@Override
public EnumNumberEnum read(final JsonReader jsonReader) throws IOException {
- Double value = jsonReader.nextDouble();
+ Double value = jsonReader.nextDouble();
return EnumNumberEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java
index 609587e370f0..b19863fb9931 100644
--- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java
+++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java
@@ -77,7 +77,7 @@ public void write(final JsonWriter jsonWriter, final InnerEnum enumeration) thro
@Override
public InnerEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return InnerEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java
index c23900aa91ef..dd421bef11d7 100644
--- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java
+++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java
@@ -89,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java
index 943b3103f03e..643184ae4fc1 100644
--- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java
+++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java
@@ -96,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
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
index a0691d38a54d..bf0f4550ccbf 100644
--- 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
@@ -40,6 +40,10 @@ public class TypeHolderExample {
@SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item";
+ @SerializedName(SERIALIZED_NAME_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
@SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
private Integer integerItem;
@@ -99,6 +103,29 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -184,6 +211,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -191,7 +219,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -201,6 +229,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/retrofit2-play24/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index c6629abd1ea9..dba5a5d25aa1 100644
--- 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
@@ -34,6 +34,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -46,6 +47,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -109,6 +113,32 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -203,6 +233,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -210,7 +241,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -220,6 +251,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/retrofit2-play25/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index c6629abd1ea9..dba5a5d25aa1 100644
--- 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
@@ -34,6 +34,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -46,6 +47,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -109,6 +113,32 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -203,6 +233,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -210,7 +241,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -220,6 +251,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/retrofit2-play26/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index c6629abd1ea9..dba5a5d25aa1 100644
--- 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
@@ -34,6 +34,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -46,6 +47,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -109,6 +113,32 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @NotNull
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -203,6 +233,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -210,7 +241,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -220,6 +251,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/retrofit2/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/retrofit2/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/retrofit2/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java
index 4587357d5b05..bbb97598ea37 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumArrays.java
@@ -72,7 +72,7 @@ public void write(final JsonWriter jsonWriter, final JustSymbolEnum enumeration)
@Override
public JustSymbolEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return JustSymbolEnum.fromValue(value);
}
}
@@ -123,7 +123,7 @@ public void write(final JsonWriter jsonWriter, final ArrayEnumEnum enumeration)
@Override
public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return ArrayEnumEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java
index 34f8781e089f..c08e4f6239de 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/EnumTest.java
@@ -73,7 +73,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringEnum enumeration)
@Override
public EnumStringEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringEnum.fromValue(value);
}
}
@@ -126,7 +126,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringRequiredEnum enum
@Override
public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringRequiredEnum.fromValue(value);
}
}
@@ -177,7 +177,7 @@ public void write(final JsonWriter jsonWriter, final EnumIntegerEnum enumeration
@Override
public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException {
- Integer value = jsonReader.nextInt();
+ Integer value = jsonReader.nextInt();
return EnumIntegerEnum.fromValue(value);
}
}
@@ -228,7 +228,7 @@ public void write(final JsonWriter jsonWriter, final EnumNumberEnum enumeration)
@Override
public EnumNumberEnum read(final JsonReader jsonReader) throws IOException {
- Double value = jsonReader.nextDouble();
+ Double value = jsonReader.nextDouble();
return EnumNumberEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java
index 609587e370f0..b19863fb9931 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MapTest.java
@@ -77,7 +77,7 @@ public void write(final JsonWriter jsonWriter, final InnerEnum enumeration) thro
@Override
public InnerEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return InnerEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java
index fe6a60098bf5..8b4c1c910b72 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Order.java
@@ -89,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java
index 943b3103f03e..643184ae4fc1 100644
--- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java
+++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Pet.java
@@ -96,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
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
index a0691d38a54d..bf0f4550ccbf 100644
--- 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
@@ -40,6 +40,10 @@ public class TypeHolderExample {
@SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item";
+ @SerializedName(SERIALIZED_NAME_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
@SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
private Integer integerItem;
@@ -99,6 +103,29 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -184,6 +211,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -191,7 +219,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -201,6 +229,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/retrofit2rx/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2rx/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/retrofit2rx/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/retrofit2rx/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java
index 4587357d5b05..bbb97598ea37 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java
@@ -72,7 +72,7 @@ public void write(final JsonWriter jsonWriter, final JustSymbolEnum enumeration)
@Override
public JustSymbolEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return JustSymbolEnum.fromValue(value);
}
}
@@ -123,7 +123,7 @@ public void write(final JsonWriter jsonWriter, final ArrayEnumEnum enumeration)
@Override
public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return ArrayEnumEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java
index 34f8781e089f..c08e4f6239de 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java
@@ -73,7 +73,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringEnum enumeration)
@Override
public EnumStringEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringEnum.fromValue(value);
}
}
@@ -126,7 +126,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringRequiredEnum enum
@Override
public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringRequiredEnum.fromValue(value);
}
}
@@ -177,7 +177,7 @@ public void write(final JsonWriter jsonWriter, final EnumIntegerEnum enumeration
@Override
public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException {
- Integer value = jsonReader.nextInt();
+ Integer value = jsonReader.nextInt();
return EnumIntegerEnum.fromValue(value);
}
}
@@ -228,7 +228,7 @@ public void write(final JsonWriter jsonWriter, final EnumNumberEnum enumeration)
@Override
public EnumNumberEnum read(final JsonReader jsonReader) throws IOException {
- Double value = jsonReader.nextDouble();
+ Double value = jsonReader.nextDouble();
return EnumNumberEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java
index 609587e370f0..b19863fb9931 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java
@@ -77,7 +77,7 @@ public void write(final JsonWriter jsonWriter, final InnerEnum enumeration) thro
@Override
public InnerEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return InnerEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java
index fe6a60098bf5..8b4c1c910b72 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java
@@ -89,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java
index 943b3103f03e..643184ae4fc1 100644
--- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java
+++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java
@@ -96,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
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
index a0691d38a54d..bf0f4550ccbf 100644
--- 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
@@ -40,6 +40,10 @@ public class TypeHolderExample {
@SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item";
+ @SerializedName(SERIALIZED_NAME_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
@SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
private Integer integerItem;
@@ -99,6 +103,29 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -184,6 +211,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -191,7 +219,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -201,6 +229,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderExample.md b/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/retrofit2rx2/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java
index 4587357d5b05..bbb97598ea37 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumArrays.java
@@ -72,7 +72,7 @@ public void write(final JsonWriter jsonWriter, final JustSymbolEnum enumeration)
@Override
public JustSymbolEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return JustSymbolEnum.fromValue(value);
}
}
@@ -123,7 +123,7 @@ public void write(final JsonWriter jsonWriter, final ArrayEnumEnum enumeration)
@Override
public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return ArrayEnumEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java
index 34f8781e089f..c08e4f6239de 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/EnumTest.java
@@ -73,7 +73,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringEnum enumeration)
@Override
public EnumStringEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringEnum.fromValue(value);
}
}
@@ -126,7 +126,7 @@ public void write(final JsonWriter jsonWriter, final EnumStringRequiredEnum enum
@Override
public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return EnumStringRequiredEnum.fromValue(value);
}
}
@@ -177,7 +177,7 @@ public void write(final JsonWriter jsonWriter, final EnumIntegerEnum enumeration
@Override
public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException {
- Integer value = jsonReader.nextInt();
+ Integer value = jsonReader.nextInt();
return EnumIntegerEnum.fromValue(value);
}
}
@@ -228,7 +228,7 @@ public void write(final JsonWriter jsonWriter, final EnumNumberEnum enumeration)
@Override
public EnumNumberEnum read(final JsonReader jsonReader) throws IOException {
- Double value = jsonReader.nextDouble();
+ Double value = jsonReader.nextDouble();
return EnumNumberEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java
index 609587e370f0..b19863fb9931 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MapTest.java
@@ -77,7 +77,7 @@ public void write(final JsonWriter jsonWriter, final InnerEnum enumeration) thro
@Override
public InnerEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return InnerEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java
index fe6a60098bf5..8b4c1c910b72 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Order.java
@@ -89,7 +89,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java
index 943b3103f03e..643184ae4fc1 100644
--- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java
+++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Pet.java
@@ -96,7 +96,7 @@ public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) thr
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
- String value = jsonReader.nextString();
+ String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
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
index a0691d38a54d..bf0f4550ccbf 100644
--- 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
@@ -40,6 +40,10 @@ public class TypeHolderExample {
@SerializedName(SERIALIZED_NAME_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String SERIALIZED_NAME_FLOAT_ITEM = "float_item";
+ @SerializedName(SERIALIZED_NAME_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String SERIALIZED_NAME_INTEGER_ITEM = "integer_item";
@SerializedName(SERIALIZED_NAME_INTEGER_ITEM)
private Integer integerItem;
@@ -99,6 +103,29 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -184,6 +211,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -191,7 +219,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -201,6 +229,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/vertx/docs/TypeHolderExample.md b/samples/client/petstore/java/vertx/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/vertx/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/vertx/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index 594fd6c03e9d..158636a401fe 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/java/webclient/docs/TypeHolderExample.md b/samples/client/petstore/java/webclient/docs/TypeHolderExample.md
index 16b91b0152f2..f8858da60664 100644
--- a/samples/client/petstore/java/webclient/docs/TypeHolderExample.md
+++ b/samples/client/petstore/java/webclient/docs/TypeHolderExample.md
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | [**BigDecimal**](BigDecimal.md) | |
+**floatItem** | **Float** | |
**integerItem** | **Integer** | |
**boolItem** | **Boolean** | |
**arrayItem** | **List<Integer>** | |
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
index 594fd6c03e9d..158636a401fe 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -44,6 +45,9 @@ public class TypeHolderExample {
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
private Integer integerItem;
@@ -104,6 +108,31 @@ public void setNumberItem(BigDecimal numberItem) {
}
+ public TypeHolderExample floatItem(Float floatItem) {
+
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ @JsonInclude(value = JsonInclude.Include.ALWAYS)
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
@@ -195,6 +224,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -202,7 +232,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -212,6 +242,7 @@ public String toString() {
sb.append("class TypeHolderExample {\n");
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/client/petstore/javascript-es6/docs/TypeHolderExample.md b/samples/client/petstore/javascript-es6/docs/TypeHolderExample.md
index 142d4268b574..44ba1e3aef7f 100644
--- a/samples/client/petstore/javascript-es6/docs/TypeHolderExample.md
+++ b/samples/client/petstore/javascript-es6/docs/TypeHolderExample.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | **Number** | |
+**floatItem** | **Number** | |
**integerItem** | **Number** | |
**boolItem** | **Boolean** | |
**arrayItem** | **[Number]** | |
diff --git a/samples/client/petstore/javascript-es6/src/model/TypeHolderExample.js b/samples/client/petstore/javascript-es6/src/model/TypeHolderExample.js
index 523f16e45391..fa969870f8fa 100644
--- a/samples/client/petstore/javascript-es6/src/model/TypeHolderExample.js
+++ b/samples/client/petstore/javascript-es6/src/model/TypeHolderExample.js
@@ -24,13 +24,14 @@ class TypeHolderExample {
* @alias module:model/TypeHolderExample
* @param stringItem {String}
* @param numberItem {Number}
+ * @param floatItem {Number}
* @param integerItem {Number}
* @param boolItem {Boolean}
* @param arrayItem {Array.}
*/
- constructor(stringItem, numberItem, integerItem, boolItem, arrayItem) {
+ constructor(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) {
- TypeHolderExample.initialize(this, stringItem, numberItem, integerItem, boolItem, arrayItem);
+ TypeHolderExample.initialize(this, stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
/**
@@ -38,9 +39,10 @@ class TypeHolderExample {
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
- static initialize(obj, stringItem, numberItem, integerItem, boolItem, arrayItem) {
+ static initialize(obj, stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) {
obj['string_item'] = stringItem;
obj['number_item'] = numberItem;
+ obj['float_item'] = floatItem;
obj['integer_item'] = integerItem;
obj['bool_item'] = boolItem;
obj['array_item'] = arrayItem;
@@ -63,6 +65,9 @@ class TypeHolderExample {
if (data.hasOwnProperty('number_item')) {
obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number');
}
+ if (data.hasOwnProperty('float_item')) {
+ obj['float_item'] = ApiClient.convertToType(data['float_item'], 'Number');
+ }
if (data.hasOwnProperty('integer_item')) {
obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number');
}
@@ -89,6 +94,11 @@ TypeHolderExample.prototype['string_item'] = undefined;
*/
TypeHolderExample.prototype['number_item'] = undefined;
+/**
+ * @member {Number} float_item
+ */
+TypeHolderExample.prototype['float_item'] = undefined;
+
/**
* @member {Number} integer_item
*/
diff --git a/samples/client/petstore/javascript-promise-es6/docs/TypeHolderExample.md b/samples/client/petstore/javascript-promise-es6/docs/TypeHolderExample.md
index 142d4268b574..44ba1e3aef7f 100644
--- a/samples/client/petstore/javascript-promise-es6/docs/TypeHolderExample.md
+++ b/samples/client/petstore/javascript-promise-es6/docs/TypeHolderExample.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | **Number** | |
+**floatItem** | **Number** | |
**integerItem** | **Number** | |
**boolItem** | **Boolean** | |
**arrayItem** | **[Number]** | |
diff --git a/samples/client/petstore/javascript-promise-es6/src/model/TypeHolderExample.js b/samples/client/petstore/javascript-promise-es6/src/model/TypeHolderExample.js
index 523f16e45391..fa969870f8fa 100644
--- a/samples/client/petstore/javascript-promise-es6/src/model/TypeHolderExample.js
+++ b/samples/client/petstore/javascript-promise-es6/src/model/TypeHolderExample.js
@@ -24,13 +24,14 @@ class TypeHolderExample {
* @alias module:model/TypeHolderExample
* @param stringItem {String}
* @param numberItem {Number}
+ * @param floatItem {Number}
* @param integerItem {Number}
* @param boolItem {Boolean}
* @param arrayItem {Array.}
*/
- constructor(stringItem, numberItem, integerItem, boolItem, arrayItem) {
+ constructor(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) {
- TypeHolderExample.initialize(this, stringItem, numberItem, integerItem, boolItem, arrayItem);
+ TypeHolderExample.initialize(this, stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
/**
@@ -38,9 +39,10 @@ class TypeHolderExample {
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
* Only for internal use.
*/
- static initialize(obj, stringItem, numberItem, integerItem, boolItem, arrayItem) {
+ static initialize(obj, stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) {
obj['string_item'] = stringItem;
obj['number_item'] = numberItem;
+ obj['float_item'] = floatItem;
obj['integer_item'] = integerItem;
obj['bool_item'] = boolItem;
obj['array_item'] = arrayItem;
@@ -63,6 +65,9 @@ class TypeHolderExample {
if (data.hasOwnProperty('number_item')) {
obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number');
}
+ if (data.hasOwnProperty('float_item')) {
+ obj['float_item'] = ApiClient.convertToType(data['float_item'], 'Number');
+ }
if (data.hasOwnProperty('integer_item')) {
obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number');
}
@@ -89,6 +94,11 @@ TypeHolderExample.prototype['string_item'] = undefined;
*/
TypeHolderExample.prototype['number_item'] = undefined;
+/**
+ * @member {Number} float_item
+ */
+TypeHolderExample.prototype['float_item'] = undefined;
+
/**
* @member {Number} integer_item
*/
diff --git a/samples/client/petstore/javascript-promise/docs/TypeHolderExample.md b/samples/client/petstore/javascript-promise/docs/TypeHolderExample.md
index 142d4268b574..44ba1e3aef7f 100644
--- a/samples/client/petstore/javascript-promise/docs/TypeHolderExample.md
+++ b/samples/client/petstore/javascript-promise/docs/TypeHolderExample.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | **Number** | |
+**floatItem** | **Number** | |
**integerItem** | **Number** | |
**boolItem** | **Boolean** | |
**arrayItem** | **[Number]** | |
diff --git a/samples/client/petstore/javascript-promise/src/model/TypeHolderExample.js b/samples/client/petstore/javascript-promise/src/model/TypeHolderExample.js
index aa03546c3f3c..e4d75d9e3ff0 100644
--- a/samples/client/petstore/javascript-promise/src/model/TypeHolderExample.js
+++ b/samples/client/petstore/javascript-promise/src/model/TypeHolderExample.js
@@ -44,15 +44,17 @@
* @class
* @param stringItem {String}
* @param numberItem {Number}
+ * @param floatItem {Number}
* @param integerItem {Number}
* @param boolItem {Boolean}
* @param arrayItem {Array.}
*/
- var exports = function(stringItem, numberItem, integerItem, boolItem, arrayItem) {
+ var exports = function(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) {
var _this = this;
_this['string_item'] = stringItem;
_this['number_item'] = numberItem;
+ _this['float_item'] = floatItem;
_this['integer_item'] = integerItem;
_this['bool_item'] = boolItem;
_this['array_item'] = arrayItem;
@@ -74,6 +76,9 @@
if (data.hasOwnProperty('number_item')) {
obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number');
}
+ if (data.hasOwnProperty('float_item')) {
+ obj['float_item'] = ApiClient.convertToType(data['float_item'], 'Number');
+ }
if (data.hasOwnProperty('integer_item')) {
obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number');
}
@@ -95,6 +100,10 @@
* @member {Number} number_item
*/
exports.prototype['number_item'] = undefined;
+ /**
+ * @member {Number} float_item
+ */
+ exports.prototype['float_item'] = undefined;
/**
* @member {Number} integer_item
*/
diff --git a/samples/client/petstore/javascript/docs/TypeHolderExample.md b/samples/client/petstore/javascript/docs/TypeHolderExample.md
index 142d4268b574..44ba1e3aef7f 100644
--- a/samples/client/petstore/javascript/docs/TypeHolderExample.md
+++ b/samples/client/petstore/javascript/docs/TypeHolderExample.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**stringItem** | **String** | |
**numberItem** | **Number** | |
+**floatItem** | **Number** | |
**integerItem** | **Number** | |
**boolItem** | **Boolean** | |
**arrayItem** | **[Number]** | |
diff --git a/samples/client/petstore/javascript/src/model/TypeHolderExample.js b/samples/client/petstore/javascript/src/model/TypeHolderExample.js
index aa03546c3f3c..e4d75d9e3ff0 100644
--- a/samples/client/petstore/javascript/src/model/TypeHolderExample.js
+++ b/samples/client/petstore/javascript/src/model/TypeHolderExample.js
@@ -44,15 +44,17 @@
* @class
* @param stringItem {String}
* @param numberItem {Number}
+ * @param floatItem {Number}
* @param integerItem {Number}
* @param boolItem {Boolean}
* @param arrayItem {Array.}
*/
- var exports = function(stringItem, numberItem, integerItem, boolItem, arrayItem) {
+ var exports = function(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem) {
var _this = this;
_this['string_item'] = stringItem;
_this['number_item'] = numberItem;
+ _this['float_item'] = floatItem;
_this['integer_item'] = integerItem;
_this['bool_item'] = boolItem;
_this['array_item'] = arrayItem;
@@ -74,6 +76,9 @@
if (data.hasOwnProperty('number_item')) {
obj['number_item'] = ApiClient.convertToType(data['number_item'], 'Number');
}
+ if (data.hasOwnProperty('float_item')) {
+ obj['float_item'] = ApiClient.convertToType(data['float_item'], 'Number');
+ }
if (data.hasOwnProperty('integer_item')) {
obj['integer_item'] = ApiClient.convertToType(data['integer_item'], 'Number');
}
@@ -95,6 +100,10 @@
* @member {Number} number_item
*/
exports.prototype['number_item'] = undefined;
+ /**
+ * @member {Number} float_item
+ */
+ exports.prototype['float_item'] = undefined;
/**
* @member {Number} integer_item
*/
diff --git a/samples/client/petstore/perl/docs/TypeHolderExample.md b/samples/client/petstore/perl/docs/TypeHolderExample.md
index 2f83a6109199..563163afdf8e 100644
--- a/samples/client/petstore/perl/docs/TypeHolderExample.md
+++ b/samples/client/petstore/perl/docs/TypeHolderExample.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**string_item** | **string** | |
**number_item** | **double** | |
+**float_item** | **double** | |
**integer_item** | **int** | |
**bool_item** | **boolean** | |
**array_item** | **ARRAY[int]** | |
diff --git a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/TypeHolderExample.pm b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/TypeHolderExample.pm
index 84e327b91413..4376ad54954a 100644
--- a/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/TypeHolderExample.pm
+++ b/samples/client/petstore/perl/lib/WWW/OpenAPIClient/Object/TypeHolderExample.pm
@@ -175,6 +175,13 @@ __PACKAGE__->method_documentation({
format => '',
read_only => '',
},
+ 'float_item' => {
+ datatype => 'double',
+ base_name => 'float_item',
+ description => '',
+ format => '',
+ read_only => '',
+ },
'integer_item' => {
datatype => 'int',
base_name => 'integer_item',
@@ -201,6 +208,7 @@ __PACKAGE__->method_documentation({
__PACKAGE__->openapi_types( {
'string_item' => 'string',
'number_item' => 'double',
+ 'float_item' => 'double',
'integer_item' => 'int',
'bool_item' => 'boolean',
'array_item' => 'ARRAY[int]'
@@ -209,6 +217,7 @@ __PACKAGE__->openapi_types( {
__PACKAGE__->attribute_map( {
'string_item' => 'string_item',
'number_item' => 'number_item',
+ 'float_item' => 'float_item',
'integer_item' => 'integer_item',
'bool_item' => 'bool_item',
'array_item' => 'array_item'
diff --git a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md
index b3bcd15377a8..bafe6adae497 100644
--- a/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md
+++ b/samples/client/petstore/php/OpenAPIClient-php/docs/Model/TypeHolderExample.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**string_item** | **string** | |
**number_item** | **float** | |
+**float_item** | **float** | |
**integer_item** | **int** | |
**bool_item** | **bool** | |
**array_item** | **int[]** | |
diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php
index 4f93ee51eac6..3f610bc24510 100644
--- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php
+++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TypeHolderExample.php
@@ -59,6 +59,7 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
protected static $openAPITypes = [
'string_item' => 'string',
'number_item' => 'float',
+ 'float_item' => 'float',
'integer_item' => 'int',
'bool_item' => 'bool',
'array_item' => 'int[]'
@@ -72,6 +73,7 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
protected static $openAPIFormats = [
'string_item' => null,
'number_item' => null,
+ 'float_item' => 'float',
'integer_item' => null,
'bool_item' => null,
'array_item' => null
@@ -106,6 +108,7 @@ public static function openAPIFormats()
protected static $attributeMap = [
'string_item' => 'string_item',
'number_item' => 'number_item',
+ 'float_item' => 'float_item',
'integer_item' => 'integer_item',
'bool_item' => 'bool_item',
'array_item' => 'array_item'
@@ -119,6 +122,7 @@ public static function openAPIFormats()
protected static $setters = [
'string_item' => 'setStringItem',
'number_item' => 'setNumberItem',
+ 'float_item' => 'setFloatItem',
'integer_item' => 'setIntegerItem',
'bool_item' => 'setBoolItem',
'array_item' => 'setArrayItem'
@@ -132,6 +136,7 @@ public static function openAPIFormats()
protected static $getters = [
'string_item' => 'getStringItem',
'number_item' => 'getNumberItem',
+ 'float_item' => 'getFloatItem',
'integer_item' => 'getIntegerItem',
'bool_item' => 'getBoolItem',
'array_item' => 'getArrayItem'
@@ -199,6 +204,7 @@ 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['float_item'] = isset($data['float_item']) ? $data['float_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;
@@ -219,6 +225,9 @@ public function listInvalidProperties()
if ($this->container['number_item'] === null) {
$invalidProperties[] = "'number_item' can't be null";
}
+ if ($this->container['float_item'] === null) {
+ $invalidProperties[] = "'float_item' can't be null";
+ }
if ($this->container['integer_item'] === null) {
$invalidProperties[] = "'integer_item' can't be null";
}
@@ -291,6 +300,30 @@ public function setNumberItem($number_item)
return $this;
}
+ /**
+ * Gets float_item
+ *
+ * @return float
+ */
+ public function getFloatItem()
+ {
+ return $this->container['float_item'];
+ }
+
+ /**
+ * Sets float_item
+ *
+ * @param float $float_item float_item
+ *
+ * @return $this
+ */
+ public function setFloatItem($float_item)
+ {
+ $this->container['float_item'] = $float_item;
+
+ return $this;
+ }
+
/**
* Gets integer_item
*
diff --git a/samples/client/petstore/php/OpenAPIClient-php/test/Model/TypeHolderExampleTest.php b/samples/client/petstore/php/OpenAPIClient-php/test/Model/TypeHolderExampleTest.php
index 6ee4e245fe3f..836ac488980c 100644
--- a/samples/client/petstore/php/OpenAPIClient-php/test/Model/TypeHolderExampleTest.php
+++ b/samples/client/petstore/php/OpenAPIClient-php/test/Model/TypeHolderExampleTest.php
@@ -92,6 +92,13 @@ public function testPropertyNumberItem()
{
}
+ /**
+ * Test attribute "float_item"
+ */
+ public function testPropertyFloatItem()
+ {
+ }
+
/**
* Test attribute "integer_item"
*/
diff --git a/samples/client/petstore/python-asyncio/docs/TypeHolderExample.md b/samples/client/petstore/python-asyncio/docs/TypeHolderExample.md
index d59718cdcb16..2a410ded8e35 100644
--- a/samples/client/petstore/python-asyncio/docs/TypeHolderExample.md
+++ b/samples/client/petstore/python-asyncio/docs/TypeHolderExample.md
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**string_item** | **str** | |
**number_item** | **float** | |
+**float_item** | **float** | |
**integer_item** | **int** | |
**bool_item** | **bool** | |
**array_item** | **list[int]** | |
diff --git a/samples/client/petstore/python-asyncio/petstore_api/models/type_holder_example.py b/samples/client/petstore/python-asyncio/petstore_api/models/type_holder_example.py
index 8f2b5d6b7d3b..745fe95da2c0 100644
--- a/samples/client/petstore/python-asyncio/petstore_api/models/type_holder_example.py
+++ b/samples/client/petstore/python-asyncio/petstore_api/models/type_holder_example.py
@@ -33,6 +33,7 @@ class TypeHolderExample(object):
openapi_types = {
'string_item': 'str',
'number_item': 'float',
+ 'float_item': 'float',
'integer_item': 'int',
'bool_item': 'bool',
'array_item': 'list[int]'
@@ -41,16 +42,18 @@ class TypeHolderExample(object):
attribute_map = {
'string_item': 'string_item',
'number_item': 'number_item',
+ 'float_item': 'float_item',
'integer_item': 'integer_item',
'bool_item': 'bool_item',
'array_item': 'array_item'
}
- def __init__(self, string_item=None, number_item=None, integer_item=None, bool_item=None, array_item=None): # noqa: E501
+ def __init__(self, string_item=None, number_item=None, float_item=None, integer_item=None, bool_item=None, array_item=None): # noqa: E501
"""TypeHolderExample - a model defined in OpenAPI""" # noqa: E501
self._string_item = None
self._number_item = None
+ self._float_item = None
self._integer_item = None
self._bool_item = None
self._array_item = None
@@ -58,6 +61,7 @@ def __init__(self, string_item=None, number_item=None, integer_item=None, bool_i
self.string_item = string_item
self.number_item = number_item
+ self.float_item = float_item
self.integer_item = integer_item
self.bool_item = bool_item
self.array_item = array_item
@@ -108,6 +112,29 @@ def number_item(self, number_item):
self._number_item = number_item
+ @property
+ def float_item(self):
+ """Gets the float_item of this TypeHolderExample. # noqa: E501
+
+
+ :return: The float_item of this TypeHolderExample. # noqa: E501
+ :rtype: float
+ """
+ return self._float_item
+
+ @float_item.setter
+ def float_item(self, float_item):
+ """Sets the float_item of this TypeHolderExample.
+
+
+ :param float_item: The float_item of this TypeHolderExample. # noqa: E501
+ :type: float
+ """
+ if float_item is None:
+ raise ValueError("Invalid value for `float_item`, must not be `None`") # noqa: E501
+
+ self._float_item = float_item
+
@property
def integer_item(self):
"""Gets the integer_item of this TypeHolderExample. # noqa: E501
diff --git a/samples/client/petstore/python-tornado/docs/TypeHolderExample.md b/samples/client/petstore/python-tornado/docs/TypeHolderExample.md
index d59718cdcb16..2a410ded8e35 100644
--- a/samples/client/petstore/python-tornado/docs/TypeHolderExample.md
+++ b/samples/client/petstore/python-tornado/docs/TypeHolderExample.md
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**string_item** | **str** | |
**number_item** | **float** | |
+**float_item** | **float** | |
**integer_item** | **int** | |
**bool_item** | **bool** | |
**array_item** | **list[int]** | |
diff --git a/samples/client/petstore/python-tornado/petstore_api/models/type_holder_example.py b/samples/client/petstore/python-tornado/petstore_api/models/type_holder_example.py
index 8f2b5d6b7d3b..745fe95da2c0 100644
--- a/samples/client/petstore/python-tornado/petstore_api/models/type_holder_example.py
+++ b/samples/client/petstore/python-tornado/petstore_api/models/type_holder_example.py
@@ -33,6 +33,7 @@ class TypeHolderExample(object):
openapi_types = {
'string_item': 'str',
'number_item': 'float',
+ 'float_item': 'float',
'integer_item': 'int',
'bool_item': 'bool',
'array_item': 'list[int]'
@@ -41,16 +42,18 @@ class TypeHolderExample(object):
attribute_map = {
'string_item': 'string_item',
'number_item': 'number_item',
+ 'float_item': 'float_item',
'integer_item': 'integer_item',
'bool_item': 'bool_item',
'array_item': 'array_item'
}
- def __init__(self, string_item=None, number_item=None, integer_item=None, bool_item=None, array_item=None): # noqa: E501
+ def __init__(self, string_item=None, number_item=None, float_item=None, integer_item=None, bool_item=None, array_item=None): # noqa: E501
"""TypeHolderExample - a model defined in OpenAPI""" # noqa: E501
self._string_item = None
self._number_item = None
+ self._float_item = None
self._integer_item = None
self._bool_item = None
self._array_item = None
@@ -58,6 +61,7 @@ def __init__(self, string_item=None, number_item=None, integer_item=None, bool_i
self.string_item = string_item
self.number_item = number_item
+ self.float_item = float_item
self.integer_item = integer_item
self.bool_item = bool_item
self.array_item = array_item
@@ -108,6 +112,29 @@ def number_item(self, number_item):
self._number_item = number_item
+ @property
+ def float_item(self):
+ """Gets the float_item of this TypeHolderExample. # noqa: E501
+
+
+ :return: The float_item of this TypeHolderExample. # noqa: E501
+ :rtype: float
+ """
+ return self._float_item
+
+ @float_item.setter
+ def float_item(self, float_item):
+ """Sets the float_item of this TypeHolderExample.
+
+
+ :param float_item: The float_item of this TypeHolderExample. # noqa: E501
+ :type: float
+ """
+ if float_item is None:
+ raise ValueError("Invalid value for `float_item`, must not be `None`") # noqa: E501
+
+ self._float_item = float_item
+
@property
def integer_item(self):
"""Gets the integer_item of this TypeHolderExample. # noqa: E501
diff --git a/samples/client/petstore/python/docs/TypeHolderExample.md b/samples/client/petstore/python/docs/TypeHolderExample.md
index d59718cdcb16..2a410ded8e35 100644
--- a/samples/client/petstore/python/docs/TypeHolderExample.md
+++ b/samples/client/petstore/python/docs/TypeHolderExample.md
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**string_item** | **str** | |
**number_item** | **float** | |
+**float_item** | **float** | |
**integer_item** | **int** | |
**bool_item** | **bool** | |
**array_item** | **list[int]** | |
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
index 8f2b5d6b7d3b..745fe95da2c0 100644
--- a/samples/client/petstore/python/petstore_api/models/type_holder_example.py
+++ b/samples/client/petstore/python/petstore_api/models/type_holder_example.py
@@ -33,6 +33,7 @@ class TypeHolderExample(object):
openapi_types = {
'string_item': 'str',
'number_item': 'float',
+ 'float_item': 'float',
'integer_item': 'int',
'bool_item': 'bool',
'array_item': 'list[int]'
@@ -41,16 +42,18 @@ class TypeHolderExample(object):
attribute_map = {
'string_item': 'string_item',
'number_item': 'number_item',
+ 'float_item': 'float_item',
'integer_item': 'integer_item',
'bool_item': 'bool_item',
'array_item': 'array_item'
}
- def __init__(self, string_item=None, number_item=None, integer_item=None, bool_item=None, array_item=None): # noqa: E501
+ def __init__(self, string_item=None, number_item=None, float_item=None, integer_item=None, bool_item=None, array_item=None): # noqa: E501
"""TypeHolderExample - a model defined in OpenAPI""" # noqa: E501
self._string_item = None
self._number_item = None
+ self._float_item = None
self._integer_item = None
self._bool_item = None
self._array_item = None
@@ -58,6 +61,7 @@ def __init__(self, string_item=None, number_item=None, integer_item=None, bool_i
self.string_item = string_item
self.number_item = number_item
+ self.float_item = float_item
self.integer_item = integer_item
self.bool_item = bool_item
self.array_item = array_item
@@ -108,6 +112,29 @@ def number_item(self, number_item):
self._number_item = number_item
+ @property
+ def float_item(self):
+ """Gets the float_item of this TypeHolderExample. # noqa: E501
+
+
+ :return: The float_item of this TypeHolderExample. # noqa: E501
+ :rtype: float
+ """
+ return self._float_item
+
+ @float_item.setter
+ def float_item(self, float_item):
+ """Sets the float_item of this TypeHolderExample.
+
+
+ :param float_item: The float_item of this TypeHolderExample. # noqa: E501
+ :type: float
+ """
+ if float_item is None:
+ raise ValueError("Invalid value for `float_item`, must not be `None`") # noqa: E501
+
+ self._float_item = float_item
+
@property
def integer_item(self):
"""Gets the integer_item of this TypeHolderExample. # noqa: E501
diff --git a/samples/client/petstore/ruby/docs/TypeHolderExample.md b/samples/client/petstore/ruby/docs/TypeHolderExample.md
index 92dfed0300c1..2cab99f9bb7f 100644
--- a/samples/client/petstore/ruby/docs/TypeHolderExample.md
+++ b/samples/client/petstore/ruby/docs/TypeHolderExample.md
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**string_item** | **String** | |
**number_item** | **Float** | |
+**float_item** | **Float** | |
**integer_item** | **Integer** | |
**bool_item** | **Boolean** | |
**array_item** | **Array<Integer>** | |
@@ -17,6 +18,7 @@ require 'Petstore'
instance = Petstore::TypeHolderExample.new(string_item: what,
number_item: 1.234,
+ float_item: 1.234,
integer_item: -2,
bool_item: true,
array_item: [0, 1, 2, 3])
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
index 59c941b544dd..518005e5be63 100644
--- a/samples/client/petstore/ruby/lib/petstore/models/type_holder_example.rb
+++ b/samples/client/petstore/ruby/lib/petstore/models/type_holder_example.rb
@@ -18,6 +18,8 @@ class TypeHolderExample
attr_accessor :number_item
+ attr_accessor :float_item
+
attr_accessor :integer_item
attr_accessor :bool_item
@@ -29,6 +31,7 @@ def self.attribute_map
{
:'string_item' => :'string_item',
:'number_item' => :'number_item',
+ :'float_item' => :'float_item',
:'integer_item' => :'integer_item',
:'bool_item' => :'bool_item',
:'array_item' => :'array_item'
@@ -40,6 +43,7 @@ def self.openapi_types
{
:'string_item' => :'String',
:'number_item' => :'Float',
+ :'float_item' => :'Float',
:'integer_item' => :'Integer',
:'bool_item' => :'Boolean',
:'array_item' => :'Array'
@@ -69,6 +73,10 @@ def initialize(attributes = {})
self.number_item = attributes[:'number_item']
end
+ if attributes.key?(:'float_item')
+ self.float_item = attributes[:'float_item']
+ end
+
if attributes.key?(:'integer_item')
self.integer_item = attributes[:'integer_item']
end
@@ -96,6 +104,10 @@ def list_invalid_properties
invalid_properties.push('invalid value for "number_item", number_item cannot be nil.')
end
+ if @float_item.nil?
+ invalid_properties.push('invalid value for "float_item", float_item cannot be nil.')
+ end
+
if @integer_item.nil?
invalid_properties.push('invalid value for "integer_item", integer_item cannot be nil.')
end
@@ -116,6 +128,7 @@ def list_invalid_properties
def valid?
return false if @string_item.nil?
return false if @number_item.nil?
+ return false if @float_item.nil?
return false if @integer_item.nil?
return false if @bool_item.nil?
return false if @array_item.nil?
@@ -129,6 +142,7 @@ def ==(o)
self.class == o.class &&
string_item == o.string_item &&
number_item == o.number_item &&
+ float_item == o.float_item &&
integer_item == o.integer_item &&
bool_item == o.bool_item &&
array_item == o.array_item
@@ -143,7 +157,7 @@ def eql?(o)
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [string_item, number_item, integer_item, bool_item, array_item].hash
+ [string_item, number_item, float_item, integer_item, bool_item, array_item].hash
end
# Builds the object from hash
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
index 56ff32965a93..ee1ee4ecec7f 100644
--- a/samples/client/petstore/ruby/spec/models/type_holder_example_spec.rb
+++ b/samples/client/petstore/ruby/spec/models/type_holder_example_spec.rb
@@ -44,6 +44,12 @@
end
end
+ describe 'test attribute "float_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
diff --git a/samples/schema/petstore/mysql/mysql_schema.sql b/samples/schema/petstore/mysql/mysql_schema.sql
index 5d43f6145404..c5b0f75fb074 100644
--- a/samples/schema/petstore/mysql/mysql_schema.sql
+++ b/samples/schema/petstore/mysql/mysql_schema.sql
@@ -416,6 +416,7 @@ CREATE TABLE IF NOT EXISTS `TypeHolderDefault` (
CREATE TABLE IF NOT EXISTS `TypeHolderExample` (
`string_item` TEXT NOT NULL,
`number_item` DECIMAL(20, 9) NOT NULL,
+ `float_item` DECIMAL(20, 9) NOT NULL,
`integer_item` INT NOT NULL,
`bool_item` TINYINT(1) NOT NULL,
`array_item` JSON NOT NULL
diff --git a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/TypeHolderExample.java
index 361e34961a09..11b068f543a2 100644
--- a/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/java-msf4j/src/gen/java/org/openapitools/model/TypeHolderExample.java
@@ -20,6 +20,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -65,6 +68,24 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -136,6 +157,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -143,7 +165,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -153,6 +175,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/app/apimodels/TypeHolderExample.java b/samples/server/petstore/java-play-framework-fake-endpoints/app/apimodels/TypeHolderExample.java
index 3165a322afac..4d636ea7fbcc 100644
--- a/samples/server/petstore/java-play-framework-fake-endpoints/app/apimodels/TypeHolderExample.java
+++ b/samples/server/petstore/java-play-framework-fake-endpoints/app/apimodels/TypeHolderExample.java
@@ -20,6 +20,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -66,6 +69,24 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @NotNull
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -137,6 +158,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(stringItem, typeHolderExample.stringItem) &&
Objects.equals(numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(floatItem, typeHolderExample.floatItem) &&
Objects.equals(integerItem, typeHolderExample.integerItem) &&
Objects.equals(boolItem, typeHolderExample.boolItem) &&
Objects.equals(arrayItem, typeHolderExample.arrayItem);
@@ -144,7 +166,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@SuppressWarnings("StringBufferReplaceableByString")
@@ -155,6 +177,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json b/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json
index 6b960fe5db4f..4c4f6b24a6fb 100644
--- a/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json
+++ b/samples/server/petstore/java-play-framework-fake-endpoints/public/openapi.json
@@ -2534,6 +2534,11 @@
"example" : 1.234,
"type" : "number"
},
+ "float_item" : {
+ "example" : 1.234,
+ "format" : "float",
+ "type" : "number"
+ },
"integer_item" : {
"example" : -2,
"type" : "integer"
@@ -2550,7 +2555,7 @@
"type" : "array"
}
},
- "required" : [ "array_item", "bool_item", "integer_item", "number_item", "string_item" ],
+ "required" : [ "array_item", "bool_item", "float_item", "integer_item", "number_item", "string_item" ],
"type" : "object"
},
"XmlItem" : {
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
index 9d82e8ca2f0e..04715a41c388 100644
--- 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
@@ -25,6 +25,9 @@ public class TypeHolderExample {
@Valid
private BigDecimal numberItem;
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ private Float floatItem;
+
@ApiModelProperty(example = "-2", required = true, value = "")
private Integer integerItem;
@@ -71,6 +74,25 @@ public TypeHolderExample numberItem(BigDecimal numberItem) {
return this;
}
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @JsonProperty("float_item")
+ @NotNull
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
/**
* Get integerItem
* @return integerItem
@@ -141,6 +163,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
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
index e27a50a5f199..e829f9544261 100644
--- 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
@@ -32,6 +32,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -46,6 +47,10 @@ public class TypeHolderExample implements Serializable {
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
private Integer integerItem;
@@ -98,6 +103,26 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @JsonProperty("float_item")
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -175,6 +200,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -182,7 +208,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -193,6 +219,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java
index c97a19122069..d7c9125b74fa 100644
--- a/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/jaxrs-spec-interface/src/gen/java/org/openapitools/model/TypeHolderExample.java
@@ -21,6 +21,7 @@ public class TypeHolderExample implements Serializable {
private @Valid String stringItem;
private @Valid BigDecimal numberItem;
+ private @Valid Float floatItem;
private @Valid Integer integerItem;
private @Valid Boolean boolItem;
private @Valid List arrayItem = new ArrayList();
@@ -61,6 +62,24 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ /**
+ **/
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty("float_item")
+ @NotNull
+ public Float getFloatItem() {
+ return floatItem;
+ }
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
/**
**/
public TypeHolderExample integerItem(Integer integerItem) {
@@ -127,6 +146,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -134,7 +154,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -144,6 +164,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml
index 52fbbbdafff6..4482ec16b70b 100644
--- a/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml
+++ b/samples/server/petstore/jaxrs-spec-interface/src/main/openapi/openapi.yaml
@@ -2004,6 +2004,10 @@ components:
number_item:
example: 1.234
type: number
+ float_item:
+ example: 1.234
+ format: float
+ type: number
integer_item:
example: -2
type: integer
@@ -2022,6 +2026,7 @@ components:
required:
- array_item
- bool_item
+ - float_item
- integer_item
- number_item
- string_item
diff --git a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java
index c97a19122069..d7c9125b74fa 100644
--- a/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/jaxrs-spec/src/gen/java/org/openapitools/model/TypeHolderExample.java
@@ -21,6 +21,7 @@ public class TypeHolderExample implements Serializable {
private @Valid String stringItem;
private @Valid BigDecimal numberItem;
+ private @Valid Float floatItem;
private @Valid Integer integerItem;
private @Valid Boolean boolItem;
private @Valid List arrayItem = new ArrayList();
@@ -61,6 +62,24 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ /**
+ **/
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @JsonProperty("float_item")
+ @NotNull
+ public Float getFloatItem() {
+ return floatItem;
+ }
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
/**
**/
public TypeHolderExample integerItem(Integer integerItem) {
@@ -127,6 +146,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -134,7 +154,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -144,6 +164,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml
index 52fbbbdafff6..4482ec16b70b 100644
--- a/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml
+++ b/samples/server/petstore/jaxrs-spec/src/main/openapi/openapi.yaml
@@ -2004,6 +2004,10 @@ components:
number_item:
example: 1.234
type: number
+ float_item:
+ example: 1.234
+ format: float
+ type: number
integer_item:
example: -2
type: integer
@@ -2022,6 +2026,7 @@ components:
required:
- array_item
- bool_item
+ - float_item
- integer_item
- number_item
- string_item
diff --git a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java
index 909452a3bf91..2f29a40a22b7 100644
--- a/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/jaxrs/jersey1-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java
@@ -31,6 +31,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -45,6 +46,10 @@ public class TypeHolderExample {
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
private Integer integerItem;
@@ -97,6 +102,26 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @JsonProperty("float_item")
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -174,6 +199,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -181,7 +207,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -192,6 +218,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/TypeHolderExample.java
index 909452a3bf91..2f29a40a22b7 100644
--- a/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/jaxrs/jersey1/src/gen/java/org/openapitools/model/TypeHolderExample.java
@@ -31,6 +31,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -45,6 +46,10 @@ public class TypeHolderExample {
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
private Integer integerItem;
@@ -97,6 +102,26 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @JsonProperty("float_item")
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -174,6 +199,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -181,7 +207,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -192,6 +218,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java
index 909452a3bf91..2f29a40a22b7 100644
--- a/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/jaxrs/jersey2-useTags/src/gen/java/org/openapitools/model/TypeHolderExample.java
@@ -31,6 +31,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -45,6 +46,10 @@ public class TypeHolderExample {
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
private Integer integerItem;
@@ -97,6 +102,26 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @JsonProperty("float_item")
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -174,6 +199,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -181,7 +207,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -192,6 +218,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java
index 909452a3bf91..2f29a40a22b7 100644
--- a/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/jaxrs/jersey2/src/gen/java/org/openapitools/model/TypeHolderExample.java
@@ -31,6 +31,7 @@
@JsonPropertyOrder({
TypeHolderExample.JSON_PROPERTY_STRING_ITEM,
TypeHolderExample.JSON_PROPERTY_NUMBER_ITEM,
+ TypeHolderExample.JSON_PROPERTY_FLOAT_ITEM,
TypeHolderExample.JSON_PROPERTY_INTEGER_ITEM,
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
@@ -45,6 +46,10 @@ public class TypeHolderExample {
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
private BigDecimal numberItem;
+ public static final String JSON_PROPERTY_FLOAT_ITEM = "float_item";
+ @JsonProperty(JSON_PROPERTY_FLOAT_ITEM)
+ private Float floatItem;
+
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
private Integer integerItem;
@@ -97,6 +102,26 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ **/
+ @JsonProperty("float_item")
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -174,6 +199,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -181,7 +207,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@@ -192,6 +218,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/php-slim/lib/Model/TypeHolderExample.php b/samples/server/petstore/php-slim/lib/Model/TypeHolderExample.php
index 21456e3d2985..cee3f04691da 100644
--- a/samples/server/petstore/php-slim/lib/Model/TypeHolderExample.php
+++ b/samples/server/petstore/php-slim/lib/Model/TypeHolderExample.php
@@ -31,6 +31,9 @@ class TypeHolderExample
/** @var float $numberItem */
private $numberItem;
+ /** @var float $floatItem */
+ private $floatItem;
+
/** @var int $integerItem */
private $integerItem;
diff --git a/samples/server/petstore/php-ze-ph/src/App/DTO/TypeHolderExample.php b/samples/server/petstore/php-ze-ph/src/App/DTO/TypeHolderExample.php
index 610a83421a75..3b400acfabd6 100644
--- a/samples/server/petstore/php-ze-ph/src/App/DTO/TypeHolderExample.php
+++ b/samples/server/petstore/php-ze-ph/src/App/DTO/TypeHolderExample.php
@@ -21,6 +21,12 @@ class TypeHolderExample
* @var float
*/
public $number_item;
+ /**
+ * @DTA\Data(field="float_item")
+ * @DTA\Validator(name="Type", options={"type":"float"})
+ * @var float
+ */
+ public $float_item;
/**
* @DTA\Data(field="integer_item")
* @DTA\Validator(name="Type", options={"type":"int"})
diff --git a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java
index 01d66d0242d1..c1f4cbd00a72 100644
--- a/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/spring-mvc-j8-async/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java
index 01d66d0242d1..c1f4cbd00a72 100644
--- a/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/spring-mvc-j8-localdatetime/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java
index 90886467ceb8..85694fed2185 100644
--- a/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/spring-mvc/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java
index 90886467ceb8..85694fed2185 100644
--- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java
index 01d66d0242d1..c1f4cbd00a72 100644
--- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java
index 90886467ceb8..85694fed2185 100644
--- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java
index 01d66d0242d1..c1f4cbd00a72 100644
--- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java
index 01d66d0242d1..c1f4cbd00a72 100644
--- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml
index 52fbbbdafff6..4482ec16b70b 100644
--- a/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml
+++ b/samples/server/petstore/springboot-reactive/src/main/resources/openapi.yaml
@@ -2004,6 +2004,10 @@ components:
number_item:
example: 1.234
type: number
+ float_item:
+ example: 1.234
+ format: float
+ type: number
integer_item:
example: -2
type: integer
@@ -2022,6 +2026,7 @@ components:
required:
- array_item
- bool_item
+ - float_item
- integer_item
- number_item
- string_item
diff --git a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java
index 01d66d0242d1..c1f4cbd00a72 100644
--- a/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/springboot-useoptional/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java
index 4ab72c740079..484e8f018b95 100644
--- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java
+++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");
diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java
index 01d66d0242d1..c1f4cbd00a72 100644
--- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java
+++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/TypeHolderExample.java
@@ -23,6 +23,9 @@ public class TypeHolderExample {
@JsonProperty("number_item")
private BigDecimal numberItem;
+ @JsonProperty("float_item")
+ private Float floatItem;
+
@JsonProperty("integer_item")
private Integer integerItem;
@@ -76,6 +79,27 @@ public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem;
}
+ public TypeHolderExample floatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ return this;
+ }
+
+ /**
+ * Get floatItem
+ * @return floatItem
+ */
+ @ApiModelProperty(example = "1.234", required = true, value = "")
+ @NotNull
+
+
+ public Float getFloatItem() {
+ return floatItem;
+ }
+
+ public void setFloatItem(Float floatItem) {
+ this.floatItem = floatItem;
+ }
+
public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem;
return this;
@@ -156,6 +180,7 @@ public boolean equals(java.lang.Object o) {
TypeHolderExample typeHolderExample = (TypeHolderExample) o;
return Objects.equals(this.stringItem, typeHolderExample.stringItem) &&
Objects.equals(this.numberItem, typeHolderExample.numberItem) &&
+ Objects.equals(this.floatItem, typeHolderExample.floatItem) &&
Objects.equals(this.integerItem, typeHolderExample.integerItem) &&
Objects.equals(this.boolItem, typeHolderExample.boolItem) &&
Objects.equals(this.arrayItem, typeHolderExample.arrayItem);
@@ -163,7 +188,7 @@ public boolean equals(java.lang.Object o) {
@Override
public int hashCode() {
- return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
+ return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
}
@Override
@@ -173,6 +198,7 @@ public String toString() {
sb.append(" stringItem: ").append(toIndentedString(stringItem)).append("\n");
sb.append(" numberItem: ").append(toIndentedString(numberItem)).append("\n");
+ sb.append(" floatItem: ").append(toIndentedString(floatItem)).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");