From 34d4e8e4d1cb86a14e831eb8377ae38e58d6fc38 Mon Sep 17 00:00:00 2001 From: Martin <2026226+martin-mfg@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:00:32 +0200 Subject: [PATCH] improve java enums --- .../resources/Java/modelInnerEnum.mustache | 2 +- .../client/model/DefaultValue.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Query.java | 6 ++--- .../client/model/DefaultValue.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Query.java | 6 ++--- .../client/model/DefaultValue.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Query.java | 6 ++--- .../client/model/DefaultValue.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Query.java | 6 ++--- .../client/model/DefaultValue.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Query.java | 6 ++--- .../client/model/DefaultValue.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Query.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 24 +++++++++---------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Zebra.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 24 +++++++++---------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Zebra.java | 6 ++--- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 24 +++++++++---------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Zebra.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/BigCat.java | 8 +++---- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 20 ++++++++-------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../client/model/ParentWithNullable.java | 2 +- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../openapitools/client/model/EnumArrays.java | 8 +++---- .../openapitools/client/model/EnumTest.java | 24 +++++++++---------- .../openapitools/client/model/MapTest.java | 4 ++-- .../org/openapitools/client/model/Order.java | 6 ++--- .../org/openapitools/client/model/Pet.java | 6 ++--- .../org/openapitools/client/model/Zebra.java | 6 ++--- 193 files changed, 761 insertions(+), 761 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/modelInnerEnum.mustache b/modules/openapi-generator/src/main/resources/Java/modelInnerEnum.mustache index 0096d840710f..f875240996b3 100644 --- a/modules/openapi-generator/src/main/resources/Java/modelInnerEnum.mustache +++ b/modules/openapi-generator/src/main/resources/Java/modelInnerEnum.mustache @@ -23,7 +23,7 @@ {{#withXml}} @XmlEnumValue({{#isInteger}}"{{/isInteger}}{{#isDouble}}"{{/isDouble}}{{#isLong}}"{{/isLong}}{{#isFloat}}"{{/isFloat}}{{{value}}}{{#isInteger}}"{{/isInteger}}{{#isDouble}}"{{/isDouble}}{{#isLong}}"{{/isLong}}{{#isFloat}}"{{/isFloat}}) {{/withXml}} - {{{name}}}({{{value}}}){{^-last}}, + {{{name}}}({{^isUri}}{{dataType}}.valueOf({{/isUri}}{{{value}}}{{^isUri}}){{/isUri}}){{^-last}}, {{/-last}}{{#-last}};{{/-last}} {{/enumVars}} {{/allowableValues}} diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java index 238c05cae822..5404ec17a0cb 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -56,11 +56,11 @@ public class DefaultValue { * Gets or Sets arrayStringEnumDefault */ public enum ArrayStringEnumDefaultEnum { - SUCCESS("success"), + SUCCESS(String.valueOf("success")), - FAILURE("failure"), + FAILURE(String.valueOf("failure")), - UNCLASSIFIED("unclassified"); + UNCLASSIFIED(String.valueOf("unclassified")); private String value; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java index 548384c35a4e..c9c1bc672b0d 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java index 38f8919799dc..9b4fa96b58a7 100644 --- a/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/apache-httpclient/src/main/java/org/openapitools/client/model/Query.java @@ -45,11 +45,11 @@ public class Query { * Gets or Sets outcomes */ public enum OutcomesEnum { - SUCCESS("SUCCESS"), + SUCCESS(String.valueOf("SUCCESS")), - FAILURE("FAILURE"), + FAILURE(String.valueOf("FAILURE")), - SKIPPED("SKIPPED"); + SKIPPED(String.valueOf("SKIPPED")); private String value; diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java index fd6cd0ef8839..996b08a283a3 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -41,11 +41,11 @@ public class DefaultValue { */ @JsonAdapter(ArrayStringEnumDefaultEnum.Adapter.class) public enum ArrayStringEnumDefaultEnum { - SUCCESS("success"), + SUCCESS(String.valueOf("success")), - FAILURE("failure"), + FAILURE(String.valueOf("failure")), - UNCLASSIFIED("unclassified"); + UNCLASSIFIED(String.valueOf("unclassified")); private String value; diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java index ea24f1dde653..9d2f1a835c0f 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -57,11 +57,11 @@ public class Pet { */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java index 0a4ffb2419fe..9ce3bb14ccb2 100644 --- a/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/feign-gson/src/main/java/org/openapitools/client/model/Query.java @@ -39,11 +39,11 @@ public class Query { */ @JsonAdapter(OutcomesEnum.Adapter.class) public enum OutcomesEnum { - SUCCESS("SUCCESS"), + SUCCESS(String.valueOf("SUCCESS")), - FAILURE("FAILURE"), + FAILURE(String.valueOf("FAILURE")), - SKIPPED("SKIPPED"); + SKIPPED(String.valueOf("SKIPPED")); private String value; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java index 7317bcf2b988..f10f03706472 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -58,11 +58,11 @@ public class DefaultValue { * Gets or Sets arrayStringEnumDefault */ public enum ArrayStringEnumDefaultEnum { - SUCCESS("success"), + SUCCESS(String.valueOf("success")), - FAILURE("failure"), + FAILURE(String.valueOf("failure")), - UNCLASSIFIED("unclassified"); + UNCLASSIFIED(String.valueOf("unclassified")); private String value; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java index 78a98ee0bb74..3d1adf11c9c4 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -65,11 +65,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java index de92f1ad3417..ff948f358c85 100644 --- a/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/native/src/main/java/org/openapitools/client/model/Query.java @@ -47,11 +47,11 @@ public class Query { * Gets or Sets outcomes */ public enum OutcomesEnum { - SUCCESS("SUCCESS"), + SUCCESS(String.valueOf("SUCCESS")), - FAILURE("FAILURE"), + FAILURE(String.valueOf("FAILURE")), - SKIPPED("SKIPPED"); + SKIPPED(String.valueOf("SKIPPED")); private String value; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java index b656923f00e7..a74c0b5e454c 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -53,11 +53,11 @@ public class DefaultValue { * Gets or Sets arrayStringEnumDefault */ public enum ArrayStringEnumDefaultEnum { - SUCCESS("success"), + SUCCESS(String.valueOf("success")), - FAILURE("failure"), + FAILURE(String.valueOf("failure")), - UNCLASSIFIED("unclassified"); + UNCLASSIFIED(String.valueOf("unclassified")); private String value; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java index 277c0c2175d3..3b806289566c 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Pet.java @@ -60,11 +60,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java index 563e3c587f73..4b5097859469 100644 --- a/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/restclient/src/main/java/org/openapitools/client/model/Query.java @@ -42,11 +42,11 @@ public class Query { * Gets or Sets outcomes */ public enum OutcomesEnum { - SUCCESS("SUCCESS"), + SUCCESS(String.valueOf("SUCCESS")), - FAILURE("FAILURE"), + FAILURE(String.valueOf("FAILURE")), - SKIPPED("SKIPPED"); + SKIPPED(String.valueOf("SKIPPED")); private String value; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java index ecdd490bb753..fe7f235db250 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -53,11 +53,11 @@ public class DefaultValue { * Gets or Sets arrayStringEnumDefault */ public enum ArrayStringEnumDefaultEnum { - SUCCESS("success"), + SUCCESS(String.valueOf("success")), - FAILURE("failure"), + FAILURE(String.valueOf("failure")), - UNCLASSIFIED("unclassified"); + UNCLASSIFIED(String.valueOf("unclassified")); private String value; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java index e82f063d249c..acb1b0d879c7 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java @@ -60,11 +60,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java index 339bc1b76a9e..0aa2cf36c141 100644 --- a/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/resteasy/src/main/java/org/openapitools/client/model/Query.java @@ -42,11 +42,11 @@ public class Query { * Gets or Sets outcomes */ public enum OutcomesEnum { - SUCCESS("SUCCESS"), + SUCCESS(String.valueOf("SUCCESS")), - FAILURE("FAILURE"), + FAILURE(String.valueOf("FAILURE")), - SKIPPED("SKIPPED"); + SKIPPED(String.valueOf("SKIPPED")); private String value; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java index 1029fd39a93a..a6a1f7d94737 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/DefaultValue.java @@ -53,11 +53,11 @@ public class DefaultValue { * Gets or Sets arrayStringEnumDefault */ public enum ArrayStringEnumDefaultEnum { - SUCCESS("success"), + SUCCESS(String.valueOf("success")), - FAILURE("failure"), + FAILURE(String.valueOf("failure")), - UNCLASSIFIED("unclassified"); + UNCLASSIFIED(String.valueOf("unclassified")); private String value; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java index 2d1b9cda8c01..efd6664e47f3 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java @@ -60,11 +60,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java index 339bc1b76a9e..0aa2cf36c141 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/model/Query.java @@ -42,11 +42,11 @@ public class Query { * Gets or Sets outcomes */ public enum OutcomesEnum { - SUCCESS("SUCCESS"), + SUCCESS(String.valueOf("SUCCESS")), - FAILURE("FAILURE"), + FAILURE(String.valueOf("FAILURE")), - SKIPPED("SKIPPED"); + SKIPPED(String.valueOf("SKIPPED")); private String value; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java index 4968949312db..6ad1c4255d9e 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -42,9 +42,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -80,9 +80,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java index 5fe70b9e5c67..c668f68d4057 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -54,11 +54,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -94,11 +94,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -134,9 +134,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -172,9 +172,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java index a9e8a960a621..aaedf34b55de 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -46,9 +46,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java index 7a62711ddb25..41c0c666e5dd 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Order.java @@ -56,11 +56,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 9b5bc4a04c6a..f21700e480cf 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -55,7 +55,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java index 94e0b2dcfd2f..50fead4c43ad 100644 --- a/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/apache-httpclient/src/main/java/org/openapitools/client/model/Pet.java @@ -66,11 +66,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java index 4ec7b6e5f836..d1a04d405677 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java @@ -46,13 +46,13 @@ public class BigCat extends Cat { * Gets or Sets kind */ public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java index ed346979789c..de52f5e4267c 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -40,9 +40,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -78,9 +78,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index 31e3f8199f3e..01b053b3b19e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -42,11 +42,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -82,11 +82,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -122,9 +122,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -160,9 +160,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index 96b9b3e920f8..58ad5f6ce4d4 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -44,9 +44,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java index 382b00aeff78..2722503d756e 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -54,11 +54,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index ad4ee909ee4f..1e9876a6d583 100644 --- a/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -64,11 +64,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java index 9dacd14d7e2b..ffc39bfa15b4 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java index 6636e85935ae..e160b753f435 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/EnumTest.java @@ -51,11 +51,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -91,11 +91,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -131,9 +131,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -169,9 +169,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java index 2da180eee2e9..7a9142483b30 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java index 669f1525aef3..e4ac27c14098 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java index f981bc803c99..d9124b8c8bc3 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -52,7 +52,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java index 034c5d9ffd2a..f2e27eca95a5 100644 --- a/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/feign/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java index 2de9987aacb5..dd9a7c9e597e 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/BigCat.java @@ -45,13 +45,13 @@ public class BigCat extends Cat { * Gets or Sets kind */ public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java index ed3d3768e625..9ad70bdf43a7 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java index 726fcf37f13d..4743e33f7bc7 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/EnumTest.java @@ -41,11 +41,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -81,11 +81,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -121,9 +121,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -159,9 +159,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java index 1ae40680e29e..860b5ecc6b4c 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..94317fa0d8f6 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java index 70732aa1ce55..50d91b700ef5 100644 --- a/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/google-api-client/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java index 9b6e21630669..f16c0f8e452b 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/BigCat.java @@ -48,13 +48,13 @@ public class BigCat extends Cat { * Gets or Sets kind */ public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java index 4945e0476b52..a80caeefb7be 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -41,9 +41,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -79,9 +79,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java index f25d2337822c..8aaad1e4c9a9 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/EnumTest.java @@ -44,11 +44,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -84,11 +84,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -124,9 +124,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -162,9 +162,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java index 845b86c22c34..f742ce085642 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/MapTest.java @@ -46,9 +46,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java index 4a4175095131..084912796a54 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Order.java @@ -56,11 +56,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java index c5d8b6caa05a..0bd60d8c9393 100644 --- a/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/model/Pet.java @@ -65,11 +65,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java index 9b6e21630669..f16c0f8e452b 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/BigCat.java @@ -48,13 +48,13 @@ public class BigCat extends Cat { * Gets or Sets kind */ public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java index 4945e0476b52..a80caeefb7be 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -41,9 +41,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -79,9 +79,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java index f25d2337822c..8aaad1e4c9a9 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java @@ -44,11 +44,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -84,11 +84,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -124,9 +124,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -162,9 +162,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java index 845b86c22c34..f742ce085642 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java @@ -46,9 +46,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java index 038b1f9c67a9..ab6bd338a49d 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java @@ -56,11 +56,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java index c5d8b6caa05a..0bd60d8c9393 100644 --- a/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java @@ -65,11 +65,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java index b22b41248f27..7b1529dafbb7 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -43,9 +43,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -81,9 +81,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java index 61987d6cb72a..cfd73f5e3497 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/EnumTest.java @@ -57,11 +57,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -97,11 +97,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -137,9 +137,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -175,9 +175,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumIntegerOnly */ public enum EnumIntegerOnlyEnum { - NUMBER_2(2), + NUMBER_2(Integer.valueOf(2)), - NUMBER_MINUS_2(-2); + NUMBER_MINUS_2(Integer.valueOf(-2)); private Integer value; @@ -213,9 +213,9 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java index c2991fbe6b89..4d1208e4b690 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/MapTest.java @@ -48,9 +48,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java index bbc05fd396b9..f86db1184100 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Order.java @@ -58,11 +58,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java index bd16328a5774..ff170f0f3d78 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Pet.java @@ -64,11 +64,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java index aa390ffcd2cf..4323384ab30a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Zebra.java @@ -46,11 +46,11 @@ public class Zebra { * Gets or Sets type */ public enum TypeEnum { - PLAINS("plains"), + PLAINS(String.valueOf("plains")), - MOUNTAIN("mountain"), + MOUNTAIN(String.valueOf("mountain")), - GREVYS("grevys"); + GREVYS(String.valueOf("grevys")); private String value; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java index dab1aca38763..0a77ab933d06 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -44,9 +44,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -82,9 +82,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java index f317018d0fd0..1464b39f6f75 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/EnumTest.java @@ -57,11 +57,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -97,11 +97,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -137,9 +137,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -175,9 +175,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumIntegerOnly */ public enum EnumIntegerOnlyEnum { - NUMBER_2(2), + NUMBER_2(Integer.valueOf(2)), - NUMBER_MINUS_2(-2); + NUMBER_MINUS_2(Integer.valueOf(-2)); private Integer value; @@ -213,9 +213,9 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java index e21c6c592213..10da12df6fac 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/MapTest.java @@ -49,9 +49,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java index 50d849a4dbe3..f6045f540085 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Order.java @@ -59,11 +59,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java index 43a3002eb0c1..da3b27a409f2 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Pet.java @@ -65,11 +65,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java index 677c4a1461b7..0efe6dfe62f3 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Zebra.java @@ -48,11 +48,11 @@ public class Zebra extends HashMap { * Gets or Sets type */ public enum TypeEnum { - PLAINS("plains"), + PLAINS(String.valueOf("plains")), - MOUNTAIN("mountain"), + MOUNTAIN(String.valueOf("mountain")), - GREVYS("grevys"); + GREVYS(String.valueOf("grevys")); private String value; diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java index 5e7e0778960a..b0928a12b091 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -59,11 +59,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java index 36b109f2786c..16cb99cb07a7 100644 --- a/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -65,11 +65,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java index c713d8ae40de..82ca7664656d 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -44,9 +44,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -82,9 +82,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java index cdb411064b3e..b1dcc4ec14a4 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/EnumTest.java @@ -57,11 +57,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -97,11 +97,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -137,9 +137,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -175,9 +175,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumIntegerOnly */ public enum EnumIntegerOnlyEnum { - NUMBER_2(2), + NUMBER_2(Integer.valueOf(2)), - NUMBER_MINUS_2(-2); + NUMBER_MINUS_2(Integer.valueOf(-2)); private Integer value; @@ -213,9 +213,9 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java index c4a6b2dcb374..2c2e8155eb8a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/MapTest.java @@ -49,9 +49,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java index a3ded57ab34d..2d9dc950164a 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Order.java @@ -59,11 +59,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java index 49c7f7622ef5..13aab7d727a3 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Pet.java @@ -65,11 +65,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java index ce4a58c4682f..b8cdbc74aa99 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Zebra.java @@ -48,11 +48,11 @@ public class Zebra extends HashMap { * Gets or Sets type */ public enum TypeEnum { - PLAINS("plains"), + PLAINS(String.valueOf("plains")), - MOUNTAIN("mountain"), + MOUNTAIN(String.valueOf("mountain")), - GREVYS("grevys"); + GREVYS(String.valueOf("grevys")); private String value; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java index 8d1b6e7f3863..52888dbff7e7 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/BigCat.java @@ -48,13 +48,13 @@ public class BigCat extends Cat { * Gets or Sets kind */ public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java index 331482175a29..05a91f6876a9 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -42,9 +42,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -80,9 +80,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java index 8f076161581f..57756f28e4ef 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -44,11 +44,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -84,11 +84,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -124,9 +124,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -162,9 +162,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java index b66ea41f50f1..f4d10fa5162d 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/MapTest.java @@ -46,9 +46,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java index 1ddaad6851b5..89365e87ab7c 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Order.java @@ -56,11 +56,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java index 2edc2d4c6eb2..b8f34366e8ef 100644 --- a/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/rest-assured-jackson/src/main/java/org/openapitools/client/model/Pet.java @@ -66,11 +66,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java index 219ff4705ce4..2828660abcbe 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/BigCat.java @@ -36,13 +36,13 @@ public class BigCat extends Cat { */ @JsonAdapter(KindEnum.Adapter.class) public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; 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 c914ff478c0b..bfb6673f5e8e 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 @@ -38,9 +38,9 @@ public class EnumArrays { */ @JsonAdapter(JustSymbolEnum.Adapter.class) public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -89,9 +89,9 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(ArrayEnumEnum.Adapter.class) public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String 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 1a526187b592..2dd815675989 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 @@ -36,11 +36,11 @@ public class EnumTest { */ @JsonAdapter(EnumStringEnum.Adapter.class) public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -89,11 +89,11 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(EnumStringRequiredEnum.Adapter.class) public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -142,9 +142,9 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti */ @JsonAdapter(EnumIntegerEnum.Adapter.class) public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -193,9 +193,9 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(EnumNumberEnum.Adapter.class) public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double 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 07e23a4fadbd..ee3b965075e1 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 @@ -41,9 +41,9 @@ public class MapTest { */ @JsonAdapter(InnerEnum.Adapter.class) public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String 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 9ab705ddab24..c9f784092359 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 @@ -52,11 +52,11 @@ public class Order { */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String 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 8943a77dfa8f..9f925f71a6d2 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 @@ -62,11 +62,11 @@ public class Pet { */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java index 27fe1094b318..87cd4db4386f 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -40,9 +40,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -78,9 +78,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java index bbbeefaba142..48b630f9f535 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -52,11 +52,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -92,11 +92,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -132,9 +132,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -170,9 +170,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java index a0ffe52c634a..5c248ef0183e 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java @@ -44,9 +44,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java index 4dcda7a6edc1..a5dffee06b2e 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -54,11 +54,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 5a51466a755c..82f7537c8831 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -53,7 +53,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 4ac18a8d00fe..065cbe52495b 100644 --- a/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -64,11 +64,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java index 94c188945a97..5098705afa0d 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java index 42f9f8e206a7..58bd1bd421d0 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/EnumTest.java @@ -51,11 +51,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -91,11 +91,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -131,9 +131,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -169,9 +169,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java index c709be9aa0c9..a4216280d603 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java index 413c1643238f..9c868f4377ad 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 15c420ba0e16..6d31b258680f 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -52,7 +52,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java index c45ddadd4ab3..5c2bee6ba259 100644 --- a/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java index cc8047fa41ac..3051aac0a54e 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java index 42f9f8e206a7..58bd1bd421d0 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -51,11 +51,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -91,11 +91,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -131,9 +131,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -169,9 +169,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java index cab7d80c6b3d..184294c203c7 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java index 413c1643238f..9c868f4377ad 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 15c420ba0e16..6d31b258680f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -52,7 +52,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java index 7c0cb532da78..3fdd03cefb6f 100644 --- a/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/restclient/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java index ed3d3768e625..9ad70bdf43a7 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java index c84f2fa3fc8d..e55dfcaf110d 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/EnumTest.java @@ -51,11 +51,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -91,11 +91,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -131,9 +131,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -169,9 +169,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java index 1ae40680e29e..860b5ecc6b4c 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..94317fa0d8f6 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 6bf509ced477..eb2254175989 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -52,7 +52,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java index 70732aa1ce55..50d91b700ef5 100644 --- a/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resteasy/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java index 7f30b5a338c8..35d2d1dedd8c 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java index d0ffd0c62f7c..f079e295becf 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -60,11 +60,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java index 2e4fc3409956..8ab7720a381b 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -56,11 +56,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java index 6e58e1dbf2f9..b9fa01eabff1 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java index a5b1998d21b0..0eafb249c92a 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -55,11 +55,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 8bae552528c8..8bfccdf3e2cc 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -62,11 +62,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java index 95a0a1e4e39c..84889f928b02 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -49,10 +49,10 @@ public class EnumArrays { @XmlEnum(String.class) public enum JustSymbolEnum { @XmlEnumValue(">=") - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), @XmlEnumValue("$") - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -92,10 +92,10 @@ public static JustSymbolEnum fromValue(String value) { @XmlEnum(String.class) public enum ArrayEnumEnum { @XmlEnumValue("fish") - FISH("fish"), + FISH(String.valueOf("fish")), @XmlEnumValue("crab") - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java index 92d2f1eee1f3..00a33721266b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/EnumTest.java @@ -61,13 +61,13 @@ public class EnumTest { @XmlEnum(String.class) public enum EnumStringEnum { @XmlEnumValue("UPPER") - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), @XmlEnumValue("lower") - LOWER("lower"), + LOWER(String.valueOf("lower")), @XmlEnumValue("") - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -107,13 +107,13 @@ public static EnumStringEnum fromValue(String value) { @XmlEnum(String.class) public enum EnumStringRequiredEnum { @XmlEnumValue("UPPER") - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), @XmlEnumValue("lower") - LOWER("lower"), + LOWER(String.valueOf("lower")), @XmlEnumValue("") - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -153,10 +153,10 @@ public static EnumStringRequiredEnum fromValue(String value) { @XmlEnum(Integer.class) public enum EnumIntegerEnum { @XmlEnumValue("1") - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), @XmlEnumValue("-1") - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -196,10 +196,10 @@ public static EnumIntegerEnum fromValue(Integer value) { @XmlEnum(Double.class) public enum EnumNumberEnum { @XmlEnumValue("1.1") - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), @XmlEnumValue("-1.2") - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java index ad8aaa9a108f..8215cf7f59ec 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/MapTest.java @@ -54,10 +54,10 @@ public class MapTest { @XmlEnum(String.class) public enum InnerEnum { @XmlEnumValue("UPPER") - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), @XmlEnumValue("lower") - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java index 21168ec94d1f..a603725e8639 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Order.java @@ -68,13 +68,13 @@ public class Order { @XmlEnum(String.class) public enum StatusEnum { @XmlEnumValue("placed") - PLACED("placed"), + PLACED(String.valueOf("placed")), @XmlEnumValue("approved") - APPROVED("approved"), + APPROVED(String.valueOf("approved")), @XmlEnumValue("delivered") - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 7d7fa9971ffe..6ef7f0e09d79 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -62,7 +62,7 @@ public class ParentWithNullable { @XmlEnum(String.class) public enum TypeEnum { @XmlEnumValue("ChildWithNullable") - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java index de96c1578516..d33d734bcc93 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/model/Pet.java @@ -80,13 +80,13 @@ public class Pet { @XmlEnum(String.class) public enum StatusEnum { @XmlEnumValue("available") - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), @XmlEnumValue("pending") - PENDING("pending"), + PENDING(String.valueOf("pending")), @XmlEnumValue("sold") - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java index a7de4d14f760..1aafeae838ae 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java index 836b9fc93fbb..72c4bb8c9809 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/EnumTest.java @@ -51,11 +51,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -91,11 +91,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -131,9 +131,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -169,9 +169,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java index 5e47cf69f7fb..bb3ee630a0e6 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java index e6f4cc9017ca..22085e9309d2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java index deb1c378819f..3f4b9a4f0a44 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -52,7 +52,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java index a136dae000fc..067c57f535ac 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java index 00cece6c6da9..80406baf2eab 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/BigCat.java @@ -47,13 +47,13 @@ public class BigCat extends Cat { * Gets or Sets kind */ public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java index cf019befcfa8..6cfb6868c557 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -41,9 +41,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -79,9 +79,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java index 268c45b7a657..bc29748afc0f 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/EnumTest.java @@ -43,11 +43,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -83,11 +83,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -123,9 +123,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -161,9 +161,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java index 8bb9dacc9d12..c0b7dbd813ed 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/MapTest.java @@ -45,9 +45,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java index 1e69466a1e3b..4863c783ba44 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Order.java @@ -55,11 +55,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java index cc075ad35ab5..74718516c05a 100644 --- a/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2-play26/src/main/java/org/openapitools/client/model/Pet.java @@ -65,11 +65,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java index e6a37254cdd7..30870ae9aa54 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/BigCat.java @@ -33,13 +33,13 @@ public class BigCat extends Cat { */ @JsonAdapter(KindEnum.Adapter.class) public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; 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 ea03fa8eb58e..4398ae691997 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 @@ -35,9 +35,9 @@ public class EnumArrays { */ @JsonAdapter(JustSymbolEnum.Adapter.class) public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -86,9 +86,9 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(ArrayEnumEnum.Adapter.class) public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String 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 7ae5e0b170b9..80da5d0b6c59 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 @@ -33,11 +33,11 @@ public class EnumTest { */ @JsonAdapter(EnumStringEnum.Adapter.class) public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -86,11 +86,11 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(EnumStringRequiredEnum.Adapter.class) public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -139,9 +139,9 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti */ @JsonAdapter(EnumIntegerEnum.Adapter.class) public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -190,9 +190,9 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(EnumNumberEnum.Adapter.class) public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double 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 b87cc29d24fd..60c7b8e194c6 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 @@ -38,9 +38,9 @@ public class MapTest { */ @JsonAdapter(InnerEnum.Adapter.class) public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String 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 001e4761b279..950888e591d6 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 @@ -49,11 +49,11 @@ public class Order { */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String 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 3deb8b3fe8ec..0e4a64a4dc23 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 @@ -59,11 +59,11 @@ public class Pet { */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java index e6a37254cdd7..30870ae9aa54 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/BigCat.java @@ -33,13 +33,13 @@ public class BigCat extends Cat { */ @JsonAdapter(KindEnum.Adapter.class) public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; 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 ea03fa8eb58e..4398ae691997 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 @@ -35,9 +35,9 @@ public class EnumArrays { */ @JsonAdapter(JustSymbolEnum.Adapter.class) public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -86,9 +86,9 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(ArrayEnumEnum.Adapter.class) public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String 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 7ae5e0b170b9..80da5d0b6c59 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 @@ -33,11 +33,11 @@ public class EnumTest { */ @JsonAdapter(EnumStringEnum.Adapter.class) public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -86,11 +86,11 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(EnumStringRequiredEnum.Adapter.class) public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -139,9 +139,9 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti */ @JsonAdapter(EnumIntegerEnum.Adapter.class) public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -190,9 +190,9 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(EnumNumberEnum.Adapter.class) public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double 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 b87cc29d24fd..60c7b8e194c6 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 @@ -38,9 +38,9 @@ public class MapTest { */ @JsonAdapter(InnerEnum.Adapter.class) public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String 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 001e4761b279..950888e591d6 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 @@ -49,11 +49,11 @@ public class Order { */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String 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 3deb8b3fe8ec..0e4a64a4dc23 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 @@ -59,11 +59,11 @@ public class Pet { */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java index e6a37254cdd7..30870ae9aa54 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/BigCat.java @@ -33,13 +33,13 @@ public class BigCat extends Cat { */ @JsonAdapter(KindEnum.Adapter.class) public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java index ea03fa8eb58e..4398ae691997 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -35,9 +35,9 @@ public class EnumArrays { */ @JsonAdapter(JustSymbolEnum.Adapter.class) public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -86,9 +86,9 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(ArrayEnumEnum.Adapter.class) public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java index 7ae5e0b170b9..80da5d0b6c59 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/EnumTest.java @@ -33,11 +33,11 @@ public class EnumTest { */ @JsonAdapter(EnumStringEnum.Adapter.class) public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -86,11 +86,11 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(EnumStringRequiredEnum.Adapter.class) public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -139,9 +139,9 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti */ @JsonAdapter(EnumIntegerEnum.Adapter.class) public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -190,9 +190,9 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { */ @JsonAdapter(EnumNumberEnum.Adapter.class) public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java index b87cc29d24fd..60c7b8e194c6 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/MapTest.java @@ -38,9 +38,9 @@ public class MapTest { */ @JsonAdapter(InnerEnum.Adapter.class) public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java index 001e4761b279..950888e591d6 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Order.java @@ -49,11 +49,11 @@ public class Order { */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java index 3deb8b3fe8ec..0e4a64a4dc23 100644 --- a/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2rx3/src/main/java/org/openapitools/client/model/Pet.java @@ -59,11 +59,11 @@ public class Pet { */ @JsonAdapter(StatusEnum.Adapter.class) public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java index 2de9987aacb5..dd9a7c9e597e 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/BigCat.java @@ -45,13 +45,13 @@ public class BigCat extends Cat { * Gets or Sets kind */ public enum KindEnum { - LIONS("lions"), + LIONS(String.valueOf("lions")), - TIGERS("tigers"), + TIGERS(String.valueOf("tigers")), - LEOPARDS("leopards"), + LEOPARDS(String.valueOf("leopards")), - JAGUARS("jaguars"); + JAGUARS(String.valueOf("jaguars")); private String value; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java index ed3d3768e625..9ad70bdf43a7 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java index 726fcf37f13d..4743e33f7bc7 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/EnumTest.java @@ -41,11 +41,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -81,11 +81,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -121,9 +121,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -159,9 +159,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java index 1ae40680e29e..860b5ecc6b4c 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..94317fa0d8f6 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java index 70732aa1ce55..50d91b700ef5 100644 --- a/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx-no-nullable/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java index ed3d3768e625..9ad70bdf43a7 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java index c84f2fa3fc8d..e55dfcaf110d 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/EnumTest.java @@ -51,11 +51,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -91,11 +91,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -131,9 +131,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -169,9 +169,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java index 1ae40680e29e..860b5ecc6b4c 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..94317fa0d8f6 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 6bf509ced477..eb2254175989 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -52,7 +52,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java index 70732aa1ce55..50d91b700ef5 100644 --- a/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/vertx/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java index 94c188945a97..5098705afa0d 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java index 42f9f8e206a7..58bd1bd421d0 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/EnumTest.java @@ -51,11 +51,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -91,11 +91,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -131,9 +131,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -169,9 +169,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java index c709be9aa0c9..a4216280d603 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java index 413c1643238f..9c868f4377ad 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 15c420ba0e16..6d31b258680f 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -52,7 +52,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java index c45ddadd4ab3..5c2bee6ba259 100644 --- a/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient-jakarta/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java index 03fca804ae95..7e8c7c89c6b6 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -40,9 +40,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -78,9 +78,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java index 6761607407da..b28ecf66ef53 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/EnumTest.java @@ -52,11 +52,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -92,11 +92,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -132,9 +132,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -170,9 +170,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java index 52714210d13a..8205bad190c3 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/MapTest.java @@ -44,9 +44,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java index a1a542ba620b..f7c9a3bf49d8 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -54,11 +54,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 04befcc92910..68a86f3c00ac 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -53,7 +53,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 7c84c3f22724..b42a694a4924 100644 --- a/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -64,11 +64,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java index b7a769d48ac1..0f82d7562bd5 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -39,9 +39,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -77,9 +77,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java index c84f2fa3fc8d..e55dfcaf110d 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/EnumTest.java @@ -51,11 +51,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -91,11 +91,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -131,9 +131,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -169,9 +169,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java index ca983868458a..dcaa54f241e6 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/MapTest.java @@ -43,9 +43,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java index 31a2cd4aada5..94317fa0d8f6 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Order.java @@ -53,11 +53,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java index 6bf509ced477..eb2254175989 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/ParentWithNullable.java @@ -52,7 +52,7 @@ public class ParentWithNullable { * Gets or Sets type */ public enum TypeEnum { - CHILD_WITH_NULLABLE("ChildWithNullable"); + CHILD_WITH_NULLABLE(String.valueOf("ChildWithNullable")); private String value; diff --git a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java index bfa8973e6404..e6edc5586525 100644 --- a/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/webclient/src/main/java/org/openapitools/client/model/Pet.java @@ -63,11 +63,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java index 6a93895caf43..9b2d190ae41c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Order.java @@ -59,11 +59,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java index c724e458a105..2bccc08b7ec6 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger1/src/main/java/org/openapitools/client/model/Pet.java @@ -65,11 +65,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java index 5bbc016ade7d..95c5d7b36a9e 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Order.java @@ -58,11 +58,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java index 611c0fdf6e20..2344a007e917 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8-swagger2/src/main/java/org/openapitools/client/model/Pet.java @@ -64,11 +64,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java index 4945e0476b52..a80caeefb7be 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -41,9 +41,9 @@ public class EnumArrays { * Gets or Sets justSymbol */ public enum JustSymbolEnum { - GREATER_THAN_OR_EQUAL_TO(">="), + GREATER_THAN_OR_EQUAL_TO(String.valueOf(">=")), - DOLLAR("$"); + DOLLAR(String.valueOf("$")); private String value; @@ -79,9 +79,9 @@ public static JustSymbolEnum fromValue(String value) { * Gets or Sets arrayEnum */ public enum ArrayEnumEnum { - FISH("fish"), + FISH(String.valueOf("fish")), - CRAB("crab"); + CRAB(String.valueOf("crab")); private String value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java index 210b4f21aaa4..78869209dcb7 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/EnumTest.java @@ -55,11 +55,11 @@ public class EnumTest { * Gets or Sets enumString */ public enum EnumStringEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -95,11 +95,11 @@ public static EnumStringEnum fromValue(String value) { * Gets or Sets enumStringRequired */ public enum EnumStringRequiredEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"), + LOWER(String.valueOf("lower")), - EMPTY(""); + EMPTY(String.valueOf("")); private String value; @@ -135,9 +135,9 @@ public static EnumStringRequiredEnum fromValue(String value) { * Gets or Sets enumInteger */ public enum EnumIntegerEnum { - NUMBER_1(1), + NUMBER_1(Integer.valueOf(1)), - NUMBER_MINUS_1(-1); + NUMBER_MINUS_1(Integer.valueOf(-1)); private Integer value; @@ -173,9 +173,9 @@ public static EnumIntegerEnum fromValue(Integer value) { * Gets or Sets enumIntegerOnly */ public enum EnumIntegerOnlyEnum { - NUMBER_2(2), + NUMBER_2(Integer.valueOf(2)), - NUMBER_MINUS_2(-2); + NUMBER_MINUS_2(Integer.valueOf(-2)); private Integer value; @@ -211,9 +211,9 @@ public static EnumIntegerOnlyEnum fromValue(Integer value) { * Gets or Sets enumNumber */ public enum EnumNumberEnum { - NUMBER_1_DOT_1(1.1), + NUMBER_1_DOT_1(Double.valueOf(1.1)), - NUMBER_MINUS_1_DOT_2(-1.2); + NUMBER_MINUS_1_DOT_2(Double.valueOf(-1.2)); private Double value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java index 845b86c22c34..f742ce085642 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/MapTest.java @@ -46,9 +46,9 @@ public class MapTest { * Gets or Sets inner */ public enum InnerEnum { - UPPER("UPPER"), + UPPER(String.valueOf("UPPER")), - LOWER("lower"); + LOWER(String.valueOf("lower")); private String value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java index 038b1f9c67a9..ab6bd338a49d 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Order.java @@ -56,11 +56,11 @@ public class Order { * Order Status */ public enum StatusEnum { - PLACED("placed"), + PLACED(String.valueOf("placed")), - APPROVED("approved"), + APPROVED(String.valueOf("approved")), - DELIVERED("delivered"); + DELIVERED(String.valueOf("delivered")); private String value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java index b89189426e16..530fc1e67bc3 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Pet.java @@ -62,11 +62,11 @@ public class Pet { * pet status in the store */ public enum StatusEnum { - AVAILABLE("available"), + AVAILABLE(String.valueOf("available")), - PENDING("pending"), + PENDING(String.valueOf("pending")), - SOLD("sold"); + SOLD(String.valueOf("sold")); private String value; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java index 2c2cf86fc8ac..277d0bb4a463 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Zebra.java @@ -44,11 +44,11 @@ public class Zebra { * Gets or Sets type */ public enum TypeEnum { - PLAINS("plains"), + PLAINS(String.valueOf("plains")), - MOUNTAIN("mountain"), + MOUNTAIN(String.valueOf("mountain")), - GREVYS("grevys"); + GREVYS(String.valueOf("grevys")); private String value;