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 3eb53ff806c0..1a4fbefa3777 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 ca2c9f882e9e..72630c5ea618 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 4b7eeeead964..ef6ef084bae5 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 f25287790278..6658259201a5 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 371011ecfbcc..3a4f8e816c61 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 46da5145487d..d5433e88791f 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 a0038ec431bb..34743a420e57 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 fb80f69be5c0..2d11f96672ba 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 0240ca66c457..d2d5b5103f9a 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 f5160b21df5d..2e46e02ce5f5 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 f2f72388eb96..c4c73d689ebd 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 0fe52b0e44d9..3f25a7bb1e99 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 7f772e895858..e60637ea2ff0 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 c2374b8c3dc6..eb6b6c329527 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 b67629411841..568fabc676e3 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 9724c05fb1e5..eda0b41990fa 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 2b993fda376f..97118a2d27e7 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 b67629411841..568fabc676e3 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 3253206acc47..57e314fbb755 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 6e675023d7d2..2471ef228a43 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 3502a9a68320..19002b8733ae 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 855da0ace98b..5d749fbf8694 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 1fef0c5a85a2..ff310607ae5e 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 f8d97f13eb2a..609de6f2685b 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 f3ce0faa9f5d..6b5068aad55a 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 fd5ae55daf02..405353054d07 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 265776592ec7..76e09c2b7eb9 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 1a565780103d..32992cce1027 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 66226e79e90c..d456f0d5fef6 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 c20fc4c5a366..18a005c51702 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 6e1b45d58aa5..8951c35e88e4 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 6a9a4d39ee22..852e570a6012 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 cf3882371111..643457c38398 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 703186c3c7af..fa4449e94ba6 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 acc1be004595..8402222f5a51 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 b3a30b739d41..76ab55b3da59 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 3b5c785bc479..41fb5315e7ec 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 476fef574677..cad068cf3b6a 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 4d7e58f76144..6c2217c0daff 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 ea0031cae3a4..166a1d2e8fdf 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 15ae0d52dc80..59ef01bcb365 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 1587c29ec9d0..2ddb87f6a010 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 589a91b6562e..87ad15708157 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 4ef0e9bace78..e59c65214541 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 fb7d22f6823a..7ce242e7d135 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 5d0b0cfaad78..dd6910a09b08 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 487fb43b5bed..4e98b5a404c6 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 336d97beea81..418f74f2d4f8 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 589a91b6562e..87ad15708157 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 4ef0e9bace78..e59c65214541 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 fb7d22f6823a..7ce242e7d135 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 5d0b0cfaad78..dd6910a09b08 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 ef034876cec0..8a8e6e651298 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 336d97beea81..418f74f2d4f8 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 e77cfd0d5f81..8828a9dae5f6 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 88e6ad64535d..5c283ac44c7b 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 39418ca0bb2a..c838f4c5360f 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 0b357d1c2af3..cd9a2432530c 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 f4df39291c09..9d3221deced8 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 070d6e5d6429..33fcc7ae0be1 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 31d54e770642..f7892d083505 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 7eef743f4311..cfbcda342a6e 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 4329b72bc53b..3add757c9d7c 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 4c833c52e81d..d5e4d4a531a6 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 fb4f626ff9f2..5ac8a595153a 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 46b98c108443..69a2c2d5e9b1 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 01dc5789c6a4..7cfbe14bb74d 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 05e3ae97c73d..dc5aea379153 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 e34a652b3e4e..63f0ca90aa5c 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 ff74f3bbfe5b..d5c1384b37c1 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 cf9823dcf0e8..e310cefaee6e 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 b83962ce1a4a..5e240462a159 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 9c8b7dc8edd8..72069ff0fe2a 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 3975ec84fb15..234c1e4718d5 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 33eb3e24cadf..dd518e39548b 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 44cd35f77d49..84d4daeef28b 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 072e75b1cce2..350addeaaadc 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 a45c4710df20..699cefe023a5 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 6707f811a043..a189ec53ddd3 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 0d2ef425d25d..eaebc52d510a 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 08cfcd350c75..3a1a711212a0 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 d60d6865571c..972043c9e66c 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 9e2ffdbe3806..b500657eb761 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 94b7dde03fbf..c18e8a0d2ebe 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 f7f3c421abd9..50237b778504 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 f480120d89c4..c8fe5c9aea25 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 a7ca58ed66f4..015f0793f2c7 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 519d9314d4f0..53d35b1f7850 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 5fd948df718e..2b025d331d45 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 7e3113083bc1..cb31f00aecbc 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 1c5ed817db6d..413f04ad3d17 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 9bf14d728565..2002352d296c 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 06b45fc37c76..5854a5e7e1f0 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 fe0921f47cee..36ac6c705c68 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 12390462c9ca..130b2f2c72ec 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 c3359fb43c8b..dd1d51cce1cb 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 914e0912652a..38c70b580a1e 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 7d50edc5090b..d00626a0146d 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 0ad5a1a3c65b..fe7b67934c2c 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 fe0921f47cee..36ac6c705c68 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 2c100c483986..4b1aaeeaebec 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 c3359fb43c8b..dd1d51cce1cb 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 914e0912652a..38c70b580a1e 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 3a764c7c1cc3..45f080fd8534 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 476fef574677..cad068cf3b6a 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 19b0ce626fc0..ffcec49f58d8 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 ea0031cae3a4..166a1d2e8fdf 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 15ae0d52dc80..59ef01bcb365 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 86f34fdf4dc5..b08e28c101bd 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 1587c29ec9d0..2ddb87f6a010 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 cf0196c855d0..14ad2ae56740 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 a79ba40e7c01..e315bec7e3b1 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 8f31292bf9a1..d8f63e772cec 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 f54d73518408..84b613c90318 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 8354c0958e45..25803cc27365 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 712d398aa7cd..bba657efb0e3 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 651e2da46a3e..aa44f6649775 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 d18a976ae633..65dbb1ad349b 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 0bce27928884..210b681951b0 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 156950d02df4..d6d3db372249 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 03ee68994bca..6ed104e13169 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 1342c5c0d663..6c1a7ac3e8ae 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 e90c061536bf..4cdeffea1e06 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 f07628f66d19..a9d3a815151d 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 be576d26536c..ce5a79813a8d 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 85d433a30d51..4ef340f337b7 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 aa53476447c8..09a088e10e6f 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 ec56889729f7..3ed911744dbf 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 339ebad31007..980bfaa3df6c 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 5f3ab8771db4..dd0360794646 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 cd1576b57d37..60490f8f45d8 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 5fabf3eb7031..f4baa60281e0 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 57b7e517c0e2..13a07ac93745 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 a110481b5f36..e19e099a279d 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 e590840bb059..f86d35bb39a3 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 bcc322ecffad..94d1e5946b91 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 ab0330d419ea..3edb69025231 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 d70f65febeaf..ad82b8c1afaf 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 68f85aea2bed..86bedc54e42c 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 c0d399037384..f58d038d298c 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 e590840bb059..f86d35bb39a3 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 bcc322ecffad..94d1e5946b91 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 ab0330d419ea..3edb69025231 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 d70f65febeaf..ad82b8c1afaf 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 68f85aea2bed..86bedc54e42c 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 c0d399037384..f58d038d298c 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 e590840bb059..f86d35bb39a3 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 bcc322ecffad..94d1e5946b91 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 ab0330d419ea..3edb69025231 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 d70f65febeaf..ad82b8c1afaf 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 68f85aea2bed..86bedc54e42c 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 c0d399037384..f58d038d298c 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 3b5c785bc479..41fb5315e7ec 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 476fef574677..cad068cf3b6a 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 4d7e58f76144..6c2217c0daff 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 ea0031cae3a4..166a1d2e8fdf 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 15ae0d52dc80..59ef01bcb365 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 1587c29ec9d0..2ddb87f6a010 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 476fef574677..cad068cf3b6a 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 19b0ce626fc0..ffcec49f58d8 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 ea0031cae3a4..166a1d2e8fdf 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 15ae0d52dc80..59ef01bcb365 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 86f34fdf4dc5..b08e28c101bd 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 1587c29ec9d0..2ddb87f6a010 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 06b45fc37c76..5854a5e7e1f0 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 fe0921f47cee..36ac6c705c68 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 12390462c9ca..130b2f2c72ec 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 c3359fb43c8b..dd1d51cce1cb 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 914e0912652a..38c70b580a1e 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 7d50edc5090b..d00626a0146d 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 e7d2419a8116..bc593d083fab 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 6ed6e611d0a7..6150c3578c12 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 c06643e9d061..6bce51c1c1db 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 286281001e3e..e7c8f1e13a06 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 2f110e7e5bf2..ca06cbd65ffa 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 5963bb3dbb09..65efa4eae073 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 79b849ac5d69..c08e641e1c48 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 19b0ce626fc0..ffcec49f58d8 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 f75fd0738e05..7832bc9aa353 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 15ae0d52dc80..59ef01bcb365 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 86f34fdf4dc5..b08e28c101bd 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 eda3acfdf3cf..ac3173a7e15c 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 7172fee2b7ba..abb307941cd5 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 3867b6db8d62..bc2481223a1c 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 b5ab646e102f..876775327521 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 2889bce6a4ce..80e4c199e7f7 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 4ef0e9bace78..e59c65214541 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 0cdf54a68090..3a793413436b 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 5d0b0cfaad78..dd6910a09b08 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 ef034876cec0..8a8e6e651298 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 949113f1e324..96f0cdfc6104 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 c9c3aa073228..df15190f2ead 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;