diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenProperty.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenProperty.java index 121fd58a69bf..5a8ae9a1ee89 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenProperty.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenProperty.java @@ -68,6 +68,7 @@ public class CodegenProperty implements Cloneable { public boolean isInherited; public String discriminatorValue; public String nameInCamelCase; // property name in camel case + public String nameInSnakeCase; // property name in upper snake case // enum name based on the property name, usually use as a prefix (e.g. VAR_NAME) for enum name (e.g. VAR_NAME_VALUE1) public String enumName; public Integer maxItems; @@ -344,6 +345,10 @@ public void setNameInCamelCase(String nameInCamelCase) { this.nameInCamelCase = nameInCamelCase; } + public String getNameInSnakeCase() { + return nameInSnakeCase; + } + public String getEnumName() { return enumName; } @@ -456,6 +461,7 @@ public int hashCode() result = prime * result + Objects.hashCode(isInherited); result = prime * result + Objects.hashCode(discriminatorValue); result = prime * result + Objects.hashCode(nameInCamelCase); + result = prime * result + Objects.hashCode(nameInSnakeCase); result = prime * result + Objects.hashCode(enumName); result = prime * result + ((maxItems == null) ? 0 : maxItems.hashCode()); result = prime * result + ((minItems == null) ? 0 : minItems.hashCode()); @@ -642,6 +648,9 @@ public boolean equals(Object obj) { if (!Objects.equals(this.nameInCamelCase, other.nameInCamelCase)) { return false; } + if (!Objects.equals(this.nameInSnakeCase, other.nameInSnakeCase)) { + return false; + } if (!Objects.equals(this.enumName, other.enumName)) { return false; } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index 9f68e72f3fd3..79cd8db2780e 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -18,6 +18,7 @@ package org.openapitools.codegen; import com.fasterxml.jackson.core.JsonProcessingException; +import com.google.common.base.CaseFormat; import com.samskivert.mustache.Mustache.Compiler; import io.swagger.v3.core.util.Json; @@ -1636,6 +1637,7 @@ public CodegenProperty fromProperty(String name, Schema p) { property.name = toVarName(name); property.baseName = name; property.nameInCamelCase = camelize(property.name, false); + property.nameInSnakeCase = CaseFormat.UPPER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, property.nameInCamelCase); property.description = escapeText(p.getDescription()); property.unescapedDescription = p.getDescription(); property.title = p.getTitle(); diff --git a/modules/openapi-generator/src/main/resources/Java/pojo.mustache b/modules/openapi-generator/src/main/resources/Java/pojo.mustache index 52dccb3c0951..3329e8f98b70 100644 --- a/modules/openapi-generator/src/main/resources/Java/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/Java/pojo.mustache @@ -57,8 +57,8 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela {{/isXmlAttribute}} {{/withXml}} {{#gson}} - public static final String SERIALIZED_NAME_{{nameInCamelCase}} = "{{baseName}}"; - @SerializedName(SERIALIZED_NAME_{{nameInCamelCase}}) + public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}"; + @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) {{/gson}} {{#isContainer}} private {{{datatypeWithEnum}}} {{name}}{{#required}} = {{{defaultValue}}}{{/required}}{{^required}} = null{{/required}}; diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaModelTest.java index 86d8a18b433e..957efb3739ae 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaModelTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaModelTest.java @@ -86,6 +86,8 @@ public void simpleModelTest() { final CodegenProperty property1 = vars.get(0); Assert.assertEquals(property1.baseName, "id"); + Assert.assertEquals(property1.nameInCamelCase, "Id"); + Assert.assertEquals(property1.nameInSnakeCase, "ID"); Assert.assertEquals(property1.getter, "getId"); Assert.assertEquals(property1.setter, "setId"); Assert.assertEquals(property1.datatype, "Long"); @@ -98,6 +100,8 @@ public void simpleModelTest() { final CodegenProperty property2 = vars.get(1); Assert.assertEquals(property2.baseName, "name"); + Assert.assertEquals(property2.nameInCamelCase, "Name"); + Assert.assertEquals(property2.nameInSnakeCase, "NAME"); Assert.assertEquals(property2.getter, "getName"); Assert.assertEquals(property2.setter, "setName"); Assert.assertEquals(property2.datatype, "String"); @@ -111,6 +115,8 @@ public void simpleModelTest() { final CodegenProperty property3 = vars.get(2); Assert.assertEquals(property3.baseName, "createdAt"); + Assert.assertEquals(property3.nameInCamelCase, "CreatedAt"); + Assert.assertEquals(property3.nameInSnakeCase, "CREATED_AT"); Assert.assertEquals(property3.getter, "getCreatedAt"); Assert.assertEquals(property3.setter, "setCreatedAt"); Assert.assertEquals(property3.datatype, "Date"); @@ -790,6 +796,8 @@ public void longPropertyTest() { final CodegenProperty cp = codegen.fromProperty("property", property); Assert.assertEquals(cp.baseName, "property"); + Assert.assertEquals(cp.nameInCamelCase, "Property"); + Assert.assertEquals(cp.nameInSnakeCase, "PROPERTY"); Assert.assertEquals(cp.datatype, "Long"); Assert.assertEquals(cp.name, "property"); Assert.assertEquals(cp.baseType, "Long"); @@ -813,6 +821,8 @@ public void integerPropertyInReferencedSchemaTest() { CodegenProperty cp1 = cm.vars.get(0); Assert.assertEquals(cp1.baseName, "Integer1"); + Assert.assertEquals(cp1.nameInCamelCase, "Integer1"); + Assert.assertEquals(cp1.nameInSnakeCase, "INTEGER1"); Assert.assertEquals(cp1.datatype, "Integer"); Assert.assertEquals(cp1.name, "integer1"); Assert.assertEquals(cp1.baseType, "Integer"); @@ -820,6 +830,8 @@ public void integerPropertyInReferencedSchemaTest() { CodegenProperty cp2 = cm.vars.get(1); Assert.assertEquals(cp2.baseName, "Integer2"); + Assert.assertEquals(cp2.nameInCamelCase, "Integer2"); + Assert.assertEquals(cp2.nameInSnakeCase, "INTEGER2"); Assert.assertEquals(cp2.datatype, "Integer"); Assert.assertEquals(cp2.name, "integer2"); Assert.assertEquals(cp2.baseType, "Integer"); diff --git a/samples/client/petstore/java/google-api-client/docs/FakeApi.md b/samples/client/petstore/java/google-api-client/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/google-api-client/docs/FakeApi.md +++ b/samples/client/petstore/java/google-api-client/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/jersey1/docs/FakeApi.md b/samples/client/petstore/java/jersey1/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/jersey1/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey1/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java6/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2-java8/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/jersey2/docs/FakeApi.md b/samples/client/petstore/java/jersey2/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/jersey2/docs/FakeApi.md +++ b/samples/client/petstore/java/jersey2/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index ecd8740f7a8f..37497ede5f81 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -34,12 +34,12 @@ */ public class AdditionalPropertiesClass implements Parcelable { - public static final String SERIALIZED_NAME_MapProperty = "map_property"; - @SerializedName(SERIALIZED_NAME_MapProperty) + public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property"; + @SerializedName(SERIALIZED_NAME_MAP_PROPERTY) private Map mapProperty = null; - public static final String SERIALIZED_NAME_MapOfMapProperty = "map_of_map_property"; - @SerializedName(SERIALIZED_NAME_MapOfMapProperty) + public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY) private Map> mapOfMapProperty = null; public AdditionalPropertiesClass() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java index 4e4e71c7efcb..650963fbe3e5 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Animal.java @@ -32,12 +32,12 @@ public class Animal implements Parcelable { - public static final String SERIALIZED_NAME_ClassName = "className"; - @SerializedName(SERIALIZED_NAME_ClassName) + public static final String SERIALIZED_NAME_CLASS_NAME = "className"; + @SerializedName(SERIALIZED_NAME_CLASS_NAME) private String className = null; - public static final String SERIALIZED_NAME_Color = "color"; - @SerializedName(SERIALIZED_NAME_Color) + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) private String color = "red"; public Animal() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 4239586bdd0f..5eadbd116332 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -34,8 +34,8 @@ */ public class ArrayOfArrayOfNumberOnly implements Parcelable { - public static final String SERIALIZED_NAME_ArrayArrayNumber = "ArrayArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; public ArrayOfArrayOfNumberOnly() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index fe22d975e866..e461548720ee 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -34,8 +34,8 @@ */ public class ArrayOfNumberOnly implements Parcelable { - public static final String SERIALIZED_NAME_ArrayNumber = "ArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; public ArrayOfNumberOnly() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java index 198ccfdced5c..09a246124543 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -34,16 +34,16 @@ */ public class ArrayTest implements Parcelable { - public static final String SERIALIZED_NAME_ArrayOfString = "array_of_string"; - @SerializedName(SERIALIZED_NAME_ArrayOfString) + public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; + @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) private List arrayOfString = null; - public static final String SERIALIZED_NAME_ArrayArrayOfInteger = "array_array_of_integer"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfInteger) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; - public static final String SERIALIZED_NAME_ArrayArrayOfModel = "array_array_of_model"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfModel) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; public ArrayTest() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Capitalization.java index 039295595f10..3ead5f54a91d 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Capitalization.java @@ -31,28 +31,28 @@ */ public class Capitalization implements Parcelable { - public static final String SERIALIZED_NAME_SmallCamel = "smallCamel"; - @SerializedName(SERIALIZED_NAME_SmallCamel) + public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; + @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) private String smallCamel = null; - public static final String SERIALIZED_NAME_CapitalCamel = "CapitalCamel"; - @SerializedName(SERIALIZED_NAME_CapitalCamel) + public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; + @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) private String capitalCamel = null; - public static final String SERIALIZED_NAME_SmallSnake = "small_Snake"; - @SerializedName(SERIALIZED_NAME_SmallSnake) + public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; + @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) private String smallSnake = null; - public static final String SERIALIZED_NAME_CapitalSnake = "Capital_Snake"; - @SerializedName(SERIALIZED_NAME_CapitalSnake) + public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; + @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) private String capitalSnake = null; - public static final String SERIALIZED_NAME_ScAETHFlowPoints = "SCA_ETH_Flow_Points"; - @SerializedName(SERIALIZED_NAME_ScAETHFlowPoints) + public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints = null; - public static final String SERIALIZED_NAME_ATTNAME = "ATT_NAME"; - @SerializedName(SERIALIZED_NAME_ATTNAME) + public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; + @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME = null; public Capitalization() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Cat.java index 7646d3633179..3a78e65332cb 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Cat.java @@ -32,8 +32,8 @@ */ public class Cat extends Animal implements Parcelable { - public static final String SERIALIZED_NAME_Declawed = "declawed"; - @SerializedName(SERIALIZED_NAME_Declawed) + public static final String SERIALIZED_NAME_DECLAWED = "declawed"; + @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed = null; public Cat() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Category.java index e56a24b31e81..2c7ac3802a53 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Category.java @@ -31,12 +31,12 @@ */ public class Category implements Parcelable { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Category() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ClassModel.java index 5530626fcf50..0a9ed5857c55 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ClassModel.java @@ -32,8 +32,8 @@ @ApiModel(description = "Model for testing model with \"_class\" property") public class ClassModel implements Parcelable { - public static final String SERIALIZED_NAME_PropertyClass = "_class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public ClassModel() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Client.java index 551d2e405143..4f685e64bf0e 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Client.java @@ -31,8 +31,8 @@ */ public class Client implements Parcelable { - public static final String SERIALIZED_NAME_Client = "client"; - @SerializedName(SERIALIZED_NAME_Client) + public static final String SERIALIZED_NAME_CLIENT = "client"; + @SerializedName(SERIALIZED_NAME_CLIENT) private String client = null; public Client() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Dog.java index 6761f9b195ba..417e979efc08 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Dog.java @@ -32,8 +32,8 @@ */ public class Dog extends Animal implements Parcelable { - public static final String SERIALIZED_NAME_Breed = "breed"; - @SerializedName(SERIALIZED_NAME_Breed) + public static final String SERIALIZED_NAME_BREED = "breed"; + @SerializedName(SERIALIZED_NAME_BREED) private String breed = null; public Dog() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java index acfb063c1ca3..05df76be8b8c 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -80,8 +80,8 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_JustSymbol = "just_symbol"; - @SerializedName(SERIALIZED_NAME_JustSymbol) + public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; + @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) private JustSymbolEnum justSymbol = null; /** @@ -131,8 +131,8 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_ArrayEnum = "array_enum"; - @SerializedName(SERIALIZED_NAME_ArrayEnum) + public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; + @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; public EnumArrays() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java index 1f429a645195..be2e29700e3c 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/EnumTest.java @@ -81,8 +81,8 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumString = "enum_string"; - @SerializedName(SERIALIZED_NAME_EnumString) + public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING) private EnumStringEnum enumString = null; /** @@ -134,8 +134,8 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } - public static final String SERIALIZED_NAME_EnumStringRequired = "enum_string_required"; - @SerializedName(SERIALIZED_NAME_EnumStringRequired) + public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired = null; /** @@ -185,8 +185,8 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumInteger = "enum_integer"; - @SerializedName(SERIALIZED_NAME_EnumInteger) + public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; + @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) private EnumIntegerEnum enumInteger = null; /** @@ -236,12 +236,12 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumNumber = "enum_number"; - @SerializedName(SERIALIZED_NAME_EnumNumber) + public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; + @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) private EnumNumberEnum enumNumber = null; - public static final String SERIALIZED_NAME_OuterEnum = "outerEnum"; - @SerializedName(SERIALIZED_NAME_OuterEnum) + public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; + @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum = null; public EnumTest() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java index 9a43acb6b44c..cb4f6d6675c9 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/FormatTest.java @@ -36,56 +36,56 @@ */ public class FormatTest implements Parcelable { - public static final String SERIALIZED_NAME_Integer = "integer"; - @SerializedName(SERIALIZED_NAME_Integer) + public static final String SERIALIZED_NAME_INTEGER = "integer"; + @SerializedName(SERIALIZED_NAME_INTEGER) private Integer integer = null; - public static final String SERIALIZED_NAME_Int32 = "int32"; - @SerializedName(SERIALIZED_NAME_Int32) + public static final String SERIALIZED_NAME_INT32 = "int32"; + @SerializedName(SERIALIZED_NAME_INT32) private Integer int32 = null; - public static final String SERIALIZED_NAME_Int64 = "int64"; - @SerializedName(SERIALIZED_NAME_Int64) + public static final String SERIALIZED_NAME_INT64 = "int64"; + @SerializedName(SERIALIZED_NAME_INT64) private Long int64 = null; - public static final String SERIALIZED_NAME_Number = "number"; - @SerializedName(SERIALIZED_NAME_Number) + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) private BigDecimal number = null; - public static final String SERIALIZED_NAME_Float = "float"; - @SerializedName(SERIALIZED_NAME_Float) + public static final String SERIALIZED_NAME_FLOAT = "float"; + @SerializedName(SERIALIZED_NAME_FLOAT) private Float _float = null; - public static final String SERIALIZED_NAME_Double = "double"; - @SerializedName(SERIALIZED_NAME_Double) + public static final String SERIALIZED_NAME_DOUBLE = "double"; + @SerializedName(SERIALIZED_NAME_DOUBLE) private Double _double = null; - public static final String SERIALIZED_NAME_String = "string"; - @SerializedName(SERIALIZED_NAME_String) + public static final String SERIALIZED_NAME_STRING = "string"; + @SerializedName(SERIALIZED_NAME_STRING) private String string = null; - public static final String SERIALIZED_NAME_Byte = "byte"; - @SerializedName(SERIALIZED_NAME_Byte) + public static final String SERIALIZED_NAME_BYTE = "byte"; + @SerializedName(SERIALIZED_NAME_BYTE) private byte[] _byte = null; - public static final String SERIALIZED_NAME_Binary = "binary"; - @SerializedName(SERIALIZED_NAME_Binary) + public static final String SERIALIZED_NAME_BINARY = "binary"; + @SerializedName(SERIALIZED_NAME_BINARY) private File binary = null; - public static final String SERIALIZED_NAME_Date = "date"; - @SerializedName(SERIALIZED_NAME_Date) + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) private LocalDate date = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; public FormatTest() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index c4ec66086144..e135a3074e6a 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -31,12 +31,12 @@ */ public class HasOnlyReadOnly implements Parcelable { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Foo = "foo"; - @SerializedName(SERIALIZED_NAME_Foo) + public static final String SERIALIZED_NAME_FOO = "foo"; + @SerializedName(SERIALIZED_NAME_FOO) private String foo = null; public HasOnlyReadOnly() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java index ea1665f91b3c..a7028c27763f 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MapTest.java @@ -34,8 +34,8 @@ */ public class MapTest implements Parcelable { - public static final String SERIALIZED_NAME_MapMapOfString = "map_map_of_string"; - @SerializedName(SERIALIZED_NAME_MapMapOfString) + public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; + @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -85,8 +85,8 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_MapOfEnumString = "map_of_enum_string"; - @SerializedName(SERIALIZED_NAME_MapOfEnumString) + public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public MapTest() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 25b348b1ff17..42b7097ee10c 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -37,16 +37,16 @@ */ public class MixedPropertiesAndAdditionalPropertiesClass implements Parcelable { - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Map = "map"; - @SerializedName(SERIALIZED_NAME_Map) + public static final String SERIALIZED_NAME_MAP = "map"; + @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; public MixedPropertiesAndAdditionalPropertiesClass() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java index cca7330cbb60..5d1a97443b57 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Model200Response.java @@ -32,12 +32,12 @@ @ApiModel(description = "Model for testing model name starting with number") public class Model200Response implements Parcelable { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_PropertyClass = "class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public Model200Response() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java index be6e137551a9..314dd8319ba4 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -31,16 +31,16 @@ */ public class ModelApiResponse implements Parcelable { - public static final String SERIALIZED_NAME_Code = "code"; - @SerializedName(SERIALIZED_NAME_Code) + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) private Integer code = null; - public static final String SERIALIZED_NAME_Type = "type"; - @SerializedName(SERIALIZED_NAME_Type) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) private String type = null; - public static final String SERIALIZED_NAME_Message = "message"; - @SerializedName(SERIALIZED_NAME_Message) + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) private String message = null; public ModelApiResponse() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java index 4d165ac25109..3b0fd84eaef8 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -32,8 +32,8 @@ @ApiModel(description = "Model for testing reserved words") public class ModelReturn implements Parcelable { - public static final String SERIALIZED_NAME_Return = "return"; - @SerializedName(SERIALIZED_NAME_Return) + public static final String SERIALIZED_NAME_RETURN = "return"; + @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return = null; public ModelReturn() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java index 814c4c9a34b1..827e1cb62a92 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Name.java @@ -32,20 +32,20 @@ @ApiModel(description = "Model for testing model name same as property name") public class Name implements Parcelable { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_SnakeCase = "snake_case"; - @SerializedName(SERIALIZED_NAME_SnakeCase) + public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; + @SerializedName(SERIALIZED_NAME_SNAKE_CASE) private Integer snakeCase = null; - public static final String SERIALIZED_NAME_Property = "property"; - @SerializedName(SERIALIZED_NAME_Property) + public static final String SERIALIZED_NAME_PROPERTY = "property"; + @SerializedName(SERIALIZED_NAME_PROPERTY) private String property = null; - public static final String SERIALIZED_NAME_123number = "123Number"; - @SerializedName(SERIALIZED_NAME_123number) + public static final String SERIALIZED_NAME_123NUMBER = "123Number"; + @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number = null; public Name() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java index e0f21f2f1c40..e5c563ba0bcb 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -32,8 +32,8 @@ */ public class NumberOnly implements Parcelable { - public static final String SERIALIZED_NAME_JustNumber = "JustNumber"; - @SerializedName(SERIALIZED_NAME_JustNumber) + public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; + @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber = null; public NumberOnly() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java index 9b6fefbce89e..a407e60408f2 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Order.java @@ -32,20 +32,20 @@ */ public class Order implements Parcelable { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_PetId = "petId"; - @SerializedName(SERIALIZED_NAME_PetId) + public static final String SERIALIZED_NAME_PET_ID = "petId"; + @SerializedName(SERIALIZED_NAME_PET_ID) private Long petId = null; - public static final String SERIALIZED_NAME_Quantity = "quantity"; - @SerializedName(SERIALIZED_NAME_Quantity) + public static final String SERIALIZED_NAME_QUANTITY = "quantity"; + @SerializedName(SERIALIZED_NAME_QUANTITY) private Integer quantity = null; - public static final String SERIALIZED_NAME_ShipDate = "shipDate"; - @SerializedName(SERIALIZED_NAME_ShipDate) + public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; + @SerializedName(SERIALIZED_NAME_SHIP_DATE) private OffsetDateTime shipDate = null; /** @@ -97,12 +97,12 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; - public static final String SERIALIZED_NAME_Complete = "complete"; - @SerializedName(SERIALIZED_NAME_Complete) + public static final String SERIALIZED_NAME_COMPLETE = "complete"; + @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; public Order() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java index 589176b758f1..eca5cc502141 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -32,16 +32,16 @@ */ public class OuterComposite implements Parcelable { - public static final String SERIALIZED_NAME_MyNumber = "my_number"; - @SerializedName(SERIALIZED_NAME_MyNumber) + public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; + @SerializedName(SERIALIZED_NAME_MY_NUMBER) private BigDecimal myNumber = null; - public static final String SERIALIZED_NAME_MyString = "my_string"; - @SerializedName(SERIALIZED_NAME_MyString) + public static final String SERIALIZED_NAME_MY_STRING = "my_string"; + @SerializedName(SERIALIZED_NAME_MY_STRING) private String myString = null; - public static final String SERIALIZED_NAME_MyBoolean = "my_boolean"; - @SerializedName(SERIALIZED_NAME_MyBoolean) + public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; + @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean = null; public OuterComposite() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java index 2feb5837e461..068d55117ddd 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Pet.java @@ -35,24 +35,24 @@ */ public class Pet implements Parcelable { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Category = "category"; - @SerializedName(SERIALIZED_NAME_Category) + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) private Category category = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; - public static final String SERIALIZED_NAME_PhotoUrls = "photoUrls"; - @SerializedName(SERIALIZED_NAME_PhotoUrls) + public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; + @SerializedName(SERIALIZED_NAME_PHOTO_URLS) private List photoUrls = new ArrayList(); - public static final String SERIALIZED_NAME_Tags = "tags"; - @SerializedName(SERIALIZED_NAME_Tags) + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) private List tags = null; /** @@ -104,8 +104,8 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; public Pet() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index 9a51d319c04c..84284f744130 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -31,12 +31,12 @@ */ public class ReadOnlyFirst implements Parcelable { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Baz = "baz"; - @SerializedName(SERIALIZED_NAME_Baz) + public static final String SERIALIZED_NAME_BAZ = "baz"; + @SerializedName(SERIALIZED_NAME_BAZ) private String baz = null; public ReadOnlyFirst() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java index 6ccdf655a0cd..e04c5f7d15bf 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -31,8 +31,8 @@ */ public class SpecialModelName implements Parcelable { - public static final String SERIALIZED_NAME_$SpecialPropertyName = "$special[property.name]"; - @SerializedName(SERIALIZED_NAME_$SpecialPropertyName) + public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName = null; public SpecialModelName() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java index 5b993f72c899..83a028db28ed 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/Tag.java @@ -31,12 +31,12 @@ */ public class Tag implements Parcelable { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Tag() { diff --git a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java index e2758ecff677..bb4edb60e849 100644 --- a/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson-parcelableModel/src/main/java/org/openapitools/client/model/User.java @@ -31,36 +31,36 @@ */ public class User implements Parcelable { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Username = "username"; - @SerializedName(SERIALIZED_NAME_Username) + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) private String username = null; - public static final String SERIALIZED_NAME_FirstName = "firstName"; - @SerializedName(SERIALIZED_NAME_FirstName) + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) private String firstName = null; - public static final String SERIALIZED_NAME_LastName = "lastName"; - @SerializedName(SERIALIZED_NAME_LastName) + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) private String lastName = null; - public static final String SERIALIZED_NAME_Email = "email"; - @SerializedName(SERIALIZED_NAME_Email) + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) private String email = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; - public static final String SERIALIZED_NAME_Phone = "phone"; - @SerializedName(SERIALIZED_NAME_Phone) + public static final String SERIALIZED_NAME_PHONE = "phone"; + @SerializedName(SERIALIZED_NAME_PHONE) private String phone = null; - public static final String SERIALIZED_NAME_UserStatus = "userStatus"; - @SerializedName(SERIALIZED_NAME_UserStatus) + public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; + @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus = null; public User() { diff --git a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md +++ b/samples/client/petstore/java/okhttp-gson/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index c3ee6d14e6b9..af119dbf386d 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -32,12 +32,12 @@ */ public class AdditionalPropertiesClass { - public static final String SERIALIZED_NAME_MapProperty = "map_property"; - @SerializedName(SERIALIZED_NAME_MapProperty) + public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property"; + @SerializedName(SERIALIZED_NAME_MAP_PROPERTY) private Map mapProperty = null; - public static final String SERIALIZED_NAME_MapOfMapProperty = "map_of_map_property"; - @SerializedName(SERIALIZED_NAME_MapOfMapProperty) + public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY) private Map> mapOfMapProperty = null; public AdditionalPropertiesClass mapProperty(Map mapProperty) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java index 921305a27856..02469e22e51b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Animal.java @@ -30,12 +30,12 @@ public class Animal { - public static final String SERIALIZED_NAME_ClassName = "className"; - @SerializedName(SERIALIZED_NAME_ClassName) + public static final String SERIALIZED_NAME_CLASS_NAME = "className"; + @SerializedName(SERIALIZED_NAME_CLASS_NAME) private String className = null; - public static final String SERIALIZED_NAME_Color = "color"; - @SerializedName(SERIALIZED_NAME_Color) + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) private String color = "red"; public Animal() { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 231b2332ba3f..fad705e0858b 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayArrayNumber = "ArrayArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 87446e7ce5b7..e48ac7c7afa7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayNumber = "ArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; public ArrayOfNumberOnly arrayNumber(List arrayNumber) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java index 39d2bce3d8b2..f0b9ec4f4532 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -32,16 +32,16 @@ */ public class ArrayTest { - public static final String SERIALIZED_NAME_ArrayOfString = "array_of_string"; - @SerializedName(SERIALIZED_NAME_ArrayOfString) + public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; + @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) private List arrayOfString = null; - public static final String SERIALIZED_NAME_ArrayArrayOfInteger = "array_array_of_integer"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfInteger) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; - public static final String SERIALIZED_NAME_ArrayArrayOfModel = "array_array_of_model"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfModel) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; public ArrayTest arrayOfString(List arrayOfString) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java index 4158d604a1db..bd3be0876f61 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,28 +29,28 @@ */ public class Capitalization { - public static final String SERIALIZED_NAME_SmallCamel = "smallCamel"; - @SerializedName(SERIALIZED_NAME_SmallCamel) + public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; + @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) private String smallCamel = null; - public static final String SERIALIZED_NAME_CapitalCamel = "CapitalCamel"; - @SerializedName(SERIALIZED_NAME_CapitalCamel) + public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; + @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) private String capitalCamel = null; - public static final String SERIALIZED_NAME_SmallSnake = "small_Snake"; - @SerializedName(SERIALIZED_NAME_SmallSnake) + public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; + @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) private String smallSnake = null; - public static final String SERIALIZED_NAME_CapitalSnake = "Capital_Snake"; - @SerializedName(SERIALIZED_NAME_CapitalSnake) + public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; + @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) private String capitalSnake = null; - public static final String SERIALIZED_NAME_ScAETHFlowPoints = "SCA_ETH_Flow_Points"; - @SerializedName(SERIALIZED_NAME_ScAETHFlowPoints) + public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints = null; - public static final String SERIALIZED_NAME_ATTNAME = "ATT_NAME"; - @SerializedName(SERIALIZED_NAME_ATTNAME) + public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; + @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME = null; public Capitalization smallCamel(String smallCamel) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java index 504fab5f20e7..834be67f34f7 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Cat.java @@ -30,8 +30,8 @@ */ public class Cat extends Animal { - public static final String SERIALIZED_NAME_Declawed = "declawed"; - @SerializedName(SERIALIZED_NAME_Declawed) + public static final String SERIALIZED_NAME_DECLAWED = "declawed"; + @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed = null; public Cat declawed(Boolean declawed) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java index 063c56fda010..7223fd282798 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Category.java @@ -29,12 +29,12 @@ */ public class Category { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Category id(Long id) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java index 0f1b83287839..3150b5919b09 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing model with \"_class\" property") public class ClassModel { - public static final String SERIALIZED_NAME_PropertyClass = "_class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public ClassModel propertyClass(String propertyClass) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java index 3084f329a469..219520a7ab1c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Client.java @@ -29,8 +29,8 @@ */ public class Client { - public static final String SERIALIZED_NAME_Client = "client"; - @SerializedName(SERIALIZED_NAME_Client) + public static final String SERIALIZED_NAME_CLIENT = "client"; + @SerializedName(SERIALIZED_NAME_CLIENT) private String client = null; public Client client(String client) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java index 0610e11ea035..3c86defe3c87 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Dog.java @@ -30,8 +30,8 @@ */ public class Dog extends Animal { - public static final String SERIALIZED_NAME_Breed = "breed"; - @SerializedName(SERIALIZED_NAME_Breed) + public static final String SERIALIZED_NAME_BREED = "breed"; + @SerializedName(SERIALIZED_NAME_BREED) private String breed = null; public Dog breed(String breed) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java index a6c2db762bc3..e19123875058 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -78,8 +78,8 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_JustSymbol = "just_symbol"; - @SerializedName(SERIALIZED_NAME_JustSymbol) + public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; + @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) private JustSymbolEnum justSymbol = null; /** @@ -129,8 +129,8 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_ArrayEnum = "array_enum"; - @SerializedName(SERIALIZED_NAME_ArrayEnum) + public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; + @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; public EnumArrays justSymbol(JustSymbolEnum justSymbol) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java index 21f8bc13eb16..4205836fa81a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/EnumTest.java @@ -79,8 +79,8 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumString = "enum_string"; - @SerializedName(SERIALIZED_NAME_EnumString) + public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING) private EnumStringEnum enumString = null; /** @@ -132,8 +132,8 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } - public static final String SERIALIZED_NAME_EnumStringRequired = "enum_string_required"; - @SerializedName(SERIALIZED_NAME_EnumStringRequired) + public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired = null; /** @@ -183,8 +183,8 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumInteger = "enum_integer"; - @SerializedName(SERIALIZED_NAME_EnumInteger) + public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; + @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) private EnumIntegerEnum enumInteger = null; /** @@ -234,12 +234,12 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumNumber = "enum_number"; - @SerializedName(SERIALIZED_NAME_EnumNumber) + public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; + @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) private EnumNumberEnum enumNumber = null; - public static final String SERIALIZED_NAME_OuterEnum = "outerEnum"; - @SerializedName(SERIALIZED_NAME_OuterEnum) + public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; + @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum = null; public EnumTest enumString(EnumStringEnum enumString) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java index 5a6709bd4f19..528a49bac3fc 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,56 +34,56 @@ */ public class FormatTest { - public static final String SERIALIZED_NAME_Integer = "integer"; - @SerializedName(SERIALIZED_NAME_Integer) + public static final String SERIALIZED_NAME_INTEGER = "integer"; + @SerializedName(SERIALIZED_NAME_INTEGER) private Integer integer = null; - public static final String SERIALIZED_NAME_Int32 = "int32"; - @SerializedName(SERIALIZED_NAME_Int32) + public static final String SERIALIZED_NAME_INT32 = "int32"; + @SerializedName(SERIALIZED_NAME_INT32) private Integer int32 = null; - public static final String SERIALIZED_NAME_Int64 = "int64"; - @SerializedName(SERIALIZED_NAME_Int64) + public static final String SERIALIZED_NAME_INT64 = "int64"; + @SerializedName(SERIALIZED_NAME_INT64) private Long int64 = null; - public static final String SERIALIZED_NAME_Number = "number"; - @SerializedName(SERIALIZED_NAME_Number) + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) private BigDecimal number = null; - public static final String SERIALIZED_NAME_Float = "float"; - @SerializedName(SERIALIZED_NAME_Float) + public static final String SERIALIZED_NAME_FLOAT = "float"; + @SerializedName(SERIALIZED_NAME_FLOAT) private Float _float = null; - public static final String SERIALIZED_NAME_Double = "double"; - @SerializedName(SERIALIZED_NAME_Double) + public static final String SERIALIZED_NAME_DOUBLE = "double"; + @SerializedName(SERIALIZED_NAME_DOUBLE) private Double _double = null; - public static final String SERIALIZED_NAME_String = "string"; - @SerializedName(SERIALIZED_NAME_String) + public static final String SERIALIZED_NAME_STRING = "string"; + @SerializedName(SERIALIZED_NAME_STRING) private String string = null; - public static final String SERIALIZED_NAME_Byte = "byte"; - @SerializedName(SERIALIZED_NAME_Byte) + public static final String SERIALIZED_NAME_BYTE = "byte"; + @SerializedName(SERIALIZED_NAME_BYTE) private byte[] _byte = null; - public static final String SERIALIZED_NAME_Binary = "binary"; - @SerializedName(SERIALIZED_NAME_Binary) + public static final String SERIALIZED_NAME_BINARY = "binary"; + @SerializedName(SERIALIZED_NAME_BINARY) private File binary = null; - public static final String SERIALIZED_NAME_Date = "date"; - @SerializedName(SERIALIZED_NAME_Date) + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) private LocalDate date = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; public FormatTest integer(Integer integer) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 479456ef4601..602ff3afb430 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,12 +29,12 @@ */ public class HasOnlyReadOnly { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Foo = "foo"; - @SerializedName(SERIALIZED_NAME_Foo) + public static final String SERIALIZED_NAME_FOO = "foo"; + @SerializedName(SERIALIZED_NAME_FOO) private String foo = null; /** diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java index 30c1847f9e17..66a646f87738 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MapTest.java @@ -32,8 +32,8 @@ */ public class MapTest { - public static final String SERIALIZED_NAME_MapMapOfString = "map_map_of_string"; - @SerializedName(SERIALIZED_NAME_MapMapOfString) + public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; + @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -83,8 +83,8 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_MapOfEnumString = "map_of_enum_string"; - @SerializedName(SERIALIZED_NAME_MapOfEnumString) + public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public MapTest mapMapOfString(Map> mapMapOfString) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0d81089435bb..96a6bc245036 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -35,16 +35,16 @@ */ public class MixedPropertiesAndAdditionalPropertiesClass { - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Map = "map"; - @SerializedName(SERIALIZED_NAME_Map) + public static final String SERIALIZED_NAME_MAP = "map"; + @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java index d84e624a363b..fdc7ed42acb2 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Model200Response.java @@ -30,12 +30,12 @@ @ApiModel(description = "Model for testing model name starting with number") public class Model200Response { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_PropertyClass = "class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public Model200Response name(Integer name) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f328296e9486..1a871eeb59f6 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,16 +29,16 @@ */ public class ModelApiResponse { - public static final String SERIALIZED_NAME_Code = "code"; - @SerializedName(SERIALIZED_NAME_Code) + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) private Integer code = null; - public static final String SERIALIZED_NAME_Type = "type"; - @SerializedName(SERIALIZED_NAME_Type) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) private String type = null; - public static final String SERIALIZED_NAME_Message = "message"; - @SerializedName(SERIALIZED_NAME_Message) + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) private String message = null; public ModelApiResponse code(Integer code) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java index 876b7099e56e..83e7b1c601b4 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing reserved words") public class ModelReturn { - public static final String SERIALIZED_NAME_Return = "return"; - @SerializedName(SERIALIZED_NAME_Return) + public static final String SERIALIZED_NAME_RETURN = "return"; + @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return = null; public ModelReturn _return(Integer _return) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java index 5035d8d618cb..e88b3009cd64 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Name.java @@ -30,20 +30,20 @@ @ApiModel(description = "Model for testing model name same as property name") public class Name { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_SnakeCase = "snake_case"; - @SerializedName(SERIALIZED_NAME_SnakeCase) + public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; + @SerializedName(SERIALIZED_NAME_SNAKE_CASE) private Integer snakeCase = null; - public static final String SERIALIZED_NAME_Property = "property"; - @SerializedName(SERIALIZED_NAME_Property) + public static final String SERIALIZED_NAME_PROPERTY = "property"; + @SerializedName(SERIALIZED_NAME_PROPERTY) private String property = null; - public static final String SERIALIZED_NAME_123number = "123Number"; - @SerializedName(SERIALIZED_NAME_123number) + public static final String SERIALIZED_NAME_123NUMBER = "123Number"; + @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number = null; public Name name(Integer name) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java index b2507f5469f8..81cb0ece54da 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,8 +30,8 @@ */ public class NumberOnly { - public static final String SERIALIZED_NAME_JustNumber = "JustNumber"; - @SerializedName(SERIALIZED_NAME_JustNumber) + public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; + @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber = null; public NumberOnly justNumber(BigDecimal justNumber) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java index 324382429d95..1b39885d8e6e 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Order.java @@ -30,20 +30,20 @@ */ public class Order { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_PetId = "petId"; - @SerializedName(SERIALIZED_NAME_PetId) + public static final String SERIALIZED_NAME_PET_ID = "petId"; + @SerializedName(SERIALIZED_NAME_PET_ID) private Long petId = null; - public static final String SERIALIZED_NAME_Quantity = "quantity"; - @SerializedName(SERIALIZED_NAME_Quantity) + public static final String SERIALIZED_NAME_QUANTITY = "quantity"; + @SerializedName(SERIALIZED_NAME_QUANTITY) private Integer quantity = null; - public static final String SERIALIZED_NAME_ShipDate = "shipDate"; - @SerializedName(SERIALIZED_NAME_ShipDate) + public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; + @SerializedName(SERIALIZED_NAME_SHIP_DATE) private OffsetDateTime shipDate = null; /** @@ -95,12 +95,12 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; - public static final String SERIALIZED_NAME_Complete = "complete"; - @SerializedName(SERIALIZED_NAME_Complete) + public static final String SERIALIZED_NAME_COMPLETE = "complete"; + @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; public Order id(Long id) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java index 25489f4ce420..63b156072872 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,16 +30,16 @@ */ public class OuterComposite { - public static final String SERIALIZED_NAME_MyNumber = "my_number"; - @SerializedName(SERIALIZED_NAME_MyNumber) + public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; + @SerializedName(SERIALIZED_NAME_MY_NUMBER) private BigDecimal myNumber = null; - public static final String SERIALIZED_NAME_MyString = "my_string"; - @SerializedName(SERIALIZED_NAME_MyString) + public static final String SERIALIZED_NAME_MY_STRING = "my_string"; + @SerializedName(SERIALIZED_NAME_MY_STRING) private String myString = null; - public static final String SERIALIZED_NAME_MyBoolean = "my_boolean"; - @SerializedName(SERIALIZED_NAME_MyBoolean) + public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; + @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean = null; public OuterComposite myNumber(BigDecimal myNumber) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java index 29d941716368..4a7d067f0196 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Pet.java @@ -33,24 +33,24 @@ */ public class Pet { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Category = "category"; - @SerializedName(SERIALIZED_NAME_Category) + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) private Category category = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; - public static final String SERIALIZED_NAME_PhotoUrls = "photoUrls"; - @SerializedName(SERIALIZED_NAME_PhotoUrls) + public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; + @SerializedName(SERIALIZED_NAME_PHOTO_URLS) private List photoUrls = new ArrayList(); - public static final String SERIALIZED_NAME_Tags = "tags"; - @SerializedName(SERIALIZED_NAME_Tags) + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) private List tags = null; /** @@ -102,8 +102,8 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; public Pet id(Long id) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index cfde51d8a9d7..c25d42c27242 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,12 +29,12 @@ */ public class ReadOnlyFirst { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Baz = "baz"; - @SerializedName(SERIALIZED_NAME_Baz) + public static final String SERIALIZED_NAME_BAZ = "baz"; + @SerializedName(SERIALIZED_NAME_BAZ) private String baz = null; /** diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java index 78be75ca241b..db6241ec143a 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,8 +29,8 @@ */ public class SpecialModelName { - public static final String SERIALIZED_NAME_$SpecialPropertyName = "$special[property.name]"; - @SerializedName(SERIALIZED_NAME_$SpecialPropertyName) + public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName = null; public SpecialModelName $specialPropertyName(Long $specialPropertyName) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java index dd24b1895555..c80a102aef4c 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Tag.java @@ -29,12 +29,12 @@ */ public class Tag { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Tag id(Long id) { diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java index 1cb4b8a89a80..bcc3e9164dbf 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/User.java @@ -29,36 +29,36 @@ */ public class User { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Username = "username"; - @SerializedName(SERIALIZED_NAME_Username) + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) private String username = null; - public static final String SERIALIZED_NAME_FirstName = "firstName"; - @SerializedName(SERIALIZED_NAME_FirstName) + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) private String firstName = null; - public static final String SERIALIZED_NAME_LastName = "lastName"; - @SerializedName(SERIALIZED_NAME_LastName) + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) private String lastName = null; - public static final String SERIALIZED_NAME_Email = "email"; - @SerializedName(SERIALIZED_NAME_Email) + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) private String email = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; - public static final String SERIALIZED_NAME_Phone = "phone"; - @SerializedName(SERIALIZED_NAME_Phone) + public static final String SERIALIZED_NAME_PHONE = "phone"; + @SerializedName(SERIALIZED_NAME_PHONE) private String phone = null; - public static final String SERIALIZED_NAME_UserStatus = "userStatus"; - @SerializedName(SERIALIZED_NAME_UserStatus) + public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; + @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus = null; public User id(Long id) { diff --git a/samples/client/petstore/java/rest-assured/docs/FakeApi.md b/samples/client/petstore/java/rest-assured/docs/FakeApi.md index 69f5a8e67a96..dc45a4f2e0da 100644 --- a/samples/client/petstore/java/rest-assured/docs/FakeApi.md +++ b/samples/client/petstore/java/rest-assured/docs/FakeApi.md @@ -354,7 +354,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index c3ee6d14e6b9..af119dbf386d 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -32,12 +32,12 @@ */ public class AdditionalPropertiesClass { - public static final String SERIALIZED_NAME_MapProperty = "map_property"; - @SerializedName(SERIALIZED_NAME_MapProperty) + public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property"; + @SerializedName(SERIALIZED_NAME_MAP_PROPERTY) private Map mapProperty = null; - public static final String SERIALIZED_NAME_MapOfMapProperty = "map_of_map_property"; - @SerializedName(SERIALIZED_NAME_MapOfMapProperty) + public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY) private Map> mapOfMapProperty = null; public AdditionalPropertiesClass mapProperty(Map mapProperty) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java index 921305a27856..02469e22e51b 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Animal.java @@ -30,12 +30,12 @@ public class Animal { - public static final String SERIALIZED_NAME_ClassName = "className"; - @SerializedName(SERIALIZED_NAME_ClassName) + public static final String SERIALIZED_NAME_CLASS_NAME = "className"; + @SerializedName(SERIALIZED_NAME_CLASS_NAME) private String className = null; - public static final String SERIALIZED_NAME_Color = "color"; - @SerializedName(SERIALIZED_NAME_Color) + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) private String color = "red"; public Animal() { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 231b2332ba3f..fad705e0858b 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayArrayNumber = "ArrayArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 87446e7ce5b7..e48ac7c7afa7 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayNumber = "ArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; public ArrayOfNumberOnly arrayNumber(List arrayNumber) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java index 39d2bce3d8b2..f0b9ec4f4532 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -32,16 +32,16 @@ */ public class ArrayTest { - public static final String SERIALIZED_NAME_ArrayOfString = "array_of_string"; - @SerializedName(SERIALIZED_NAME_ArrayOfString) + public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; + @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) private List arrayOfString = null; - public static final String SERIALIZED_NAME_ArrayArrayOfInteger = "array_array_of_integer"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfInteger) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; - public static final String SERIALIZED_NAME_ArrayArrayOfModel = "array_array_of_model"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfModel) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; public ArrayTest arrayOfString(List arrayOfString) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java index 4158d604a1db..bd3be0876f61 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,28 +29,28 @@ */ public class Capitalization { - public static final String SERIALIZED_NAME_SmallCamel = "smallCamel"; - @SerializedName(SERIALIZED_NAME_SmallCamel) + public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; + @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) private String smallCamel = null; - public static final String SERIALIZED_NAME_CapitalCamel = "CapitalCamel"; - @SerializedName(SERIALIZED_NAME_CapitalCamel) + public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; + @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) private String capitalCamel = null; - public static final String SERIALIZED_NAME_SmallSnake = "small_Snake"; - @SerializedName(SERIALIZED_NAME_SmallSnake) + public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; + @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) private String smallSnake = null; - public static final String SERIALIZED_NAME_CapitalSnake = "Capital_Snake"; - @SerializedName(SERIALIZED_NAME_CapitalSnake) + public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; + @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) private String capitalSnake = null; - public static final String SERIALIZED_NAME_ScAETHFlowPoints = "SCA_ETH_Flow_Points"; - @SerializedName(SERIALIZED_NAME_ScAETHFlowPoints) + public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints = null; - public static final String SERIALIZED_NAME_ATTNAME = "ATT_NAME"; - @SerializedName(SERIALIZED_NAME_ATTNAME) + public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; + @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME = null; public Capitalization smallCamel(String smallCamel) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java index 504fab5f20e7..834be67f34f7 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Cat.java @@ -30,8 +30,8 @@ */ public class Cat extends Animal { - public static final String SERIALIZED_NAME_Declawed = "declawed"; - @SerializedName(SERIALIZED_NAME_Declawed) + public static final String SERIALIZED_NAME_DECLAWED = "declawed"; + @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed = null; public Cat declawed(Boolean declawed) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java index 063c56fda010..7223fd282798 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Category.java @@ -29,12 +29,12 @@ */ public class Category { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Category id(Long id) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java index 0f1b83287839..3150b5919b09 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing model with \"_class\" property") public class ClassModel { - public static final String SERIALIZED_NAME_PropertyClass = "_class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public ClassModel propertyClass(String propertyClass) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java index 3084f329a469..219520a7ab1c 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Client.java @@ -29,8 +29,8 @@ */ public class Client { - public static final String SERIALIZED_NAME_Client = "client"; - @SerializedName(SERIALIZED_NAME_Client) + public static final String SERIALIZED_NAME_CLIENT = "client"; + @SerializedName(SERIALIZED_NAME_CLIENT) private String client = null; public Client client(String client) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java index 0610e11ea035..3c86defe3c87 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Dog.java @@ -30,8 +30,8 @@ */ public class Dog extends Animal { - public static final String SERIALIZED_NAME_Breed = "breed"; - @SerializedName(SERIALIZED_NAME_Breed) + public static final String SERIALIZED_NAME_BREED = "breed"; + @SerializedName(SERIALIZED_NAME_BREED) private String breed = null; public Dog breed(String breed) { 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 a6c2db762bc3..e19123875058 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 @@ -78,8 +78,8 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_JustSymbol = "just_symbol"; - @SerializedName(SERIALIZED_NAME_JustSymbol) + public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; + @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) private JustSymbolEnum justSymbol = null; /** @@ -129,8 +129,8 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_ArrayEnum = "array_enum"; - @SerializedName(SERIALIZED_NAME_ArrayEnum) + public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; + @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; public EnumArrays justSymbol(JustSymbolEnum justSymbol) { 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 21f8bc13eb16..4205836fa81a 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 @@ -79,8 +79,8 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumString = "enum_string"; - @SerializedName(SERIALIZED_NAME_EnumString) + public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING) private EnumStringEnum enumString = null; /** @@ -132,8 +132,8 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } - public static final String SERIALIZED_NAME_EnumStringRequired = "enum_string_required"; - @SerializedName(SERIALIZED_NAME_EnumStringRequired) + public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired = null; /** @@ -183,8 +183,8 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumInteger = "enum_integer"; - @SerializedName(SERIALIZED_NAME_EnumInteger) + public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; + @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) private EnumIntegerEnum enumInteger = null; /** @@ -234,12 +234,12 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumNumber = "enum_number"; - @SerializedName(SERIALIZED_NAME_EnumNumber) + public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; + @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) private EnumNumberEnum enumNumber = null; - public static final String SERIALIZED_NAME_OuterEnum = "outerEnum"; - @SerializedName(SERIALIZED_NAME_OuterEnum) + public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; + @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum = null; public EnumTest enumString(EnumStringEnum enumString) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java index 5a6709bd4f19..528a49bac3fc 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,56 +34,56 @@ */ public class FormatTest { - public static final String SERIALIZED_NAME_Integer = "integer"; - @SerializedName(SERIALIZED_NAME_Integer) + public static final String SERIALIZED_NAME_INTEGER = "integer"; + @SerializedName(SERIALIZED_NAME_INTEGER) private Integer integer = null; - public static final String SERIALIZED_NAME_Int32 = "int32"; - @SerializedName(SERIALIZED_NAME_Int32) + public static final String SERIALIZED_NAME_INT32 = "int32"; + @SerializedName(SERIALIZED_NAME_INT32) private Integer int32 = null; - public static final String SERIALIZED_NAME_Int64 = "int64"; - @SerializedName(SERIALIZED_NAME_Int64) + public static final String SERIALIZED_NAME_INT64 = "int64"; + @SerializedName(SERIALIZED_NAME_INT64) private Long int64 = null; - public static final String SERIALIZED_NAME_Number = "number"; - @SerializedName(SERIALIZED_NAME_Number) + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) private BigDecimal number = null; - public static final String SERIALIZED_NAME_Float = "float"; - @SerializedName(SERIALIZED_NAME_Float) + public static final String SERIALIZED_NAME_FLOAT = "float"; + @SerializedName(SERIALIZED_NAME_FLOAT) private Float _float = null; - public static final String SERIALIZED_NAME_Double = "double"; - @SerializedName(SERIALIZED_NAME_Double) + public static final String SERIALIZED_NAME_DOUBLE = "double"; + @SerializedName(SERIALIZED_NAME_DOUBLE) private Double _double = null; - public static final String SERIALIZED_NAME_String = "string"; - @SerializedName(SERIALIZED_NAME_String) + public static final String SERIALIZED_NAME_STRING = "string"; + @SerializedName(SERIALIZED_NAME_STRING) private String string = null; - public static final String SERIALIZED_NAME_Byte = "byte"; - @SerializedName(SERIALIZED_NAME_Byte) + public static final String SERIALIZED_NAME_BYTE = "byte"; + @SerializedName(SERIALIZED_NAME_BYTE) private byte[] _byte = null; - public static final String SERIALIZED_NAME_Binary = "binary"; - @SerializedName(SERIALIZED_NAME_Binary) + public static final String SERIALIZED_NAME_BINARY = "binary"; + @SerializedName(SERIALIZED_NAME_BINARY) private File binary = null; - public static final String SERIALIZED_NAME_Date = "date"; - @SerializedName(SERIALIZED_NAME_Date) + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) private LocalDate date = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; public FormatTest integer(Integer integer) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 479456ef4601..602ff3afb430 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,12 +29,12 @@ */ public class HasOnlyReadOnly { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Foo = "foo"; - @SerializedName(SERIALIZED_NAME_Foo) + public static final String SERIALIZED_NAME_FOO = "foo"; + @SerializedName(SERIALIZED_NAME_FOO) private String foo = null; /** 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 30c1847f9e17..66a646f87738 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 @@ -32,8 +32,8 @@ */ public class MapTest { - public static final String SERIALIZED_NAME_MapMapOfString = "map_map_of_string"; - @SerializedName(SERIALIZED_NAME_MapMapOfString) + public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; + @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -83,8 +83,8 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_MapOfEnumString = "map_of_enum_string"; - @SerializedName(SERIALIZED_NAME_MapOfEnumString) + public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public MapTest mapMapOfString(Map> mapMapOfString) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0d81089435bb..96a6bc245036 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -35,16 +35,16 @@ */ public class MixedPropertiesAndAdditionalPropertiesClass { - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Map = "map"; - @SerializedName(SERIALIZED_NAME_Map) + public static final String SERIALIZED_NAME_MAP = "map"; + @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java index d84e624a363b..fdc7ed42acb2 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Model200Response.java @@ -30,12 +30,12 @@ @ApiModel(description = "Model for testing model name starting with number") public class Model200Response { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_PropertyClass = "class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public Model200Response name(Integer name) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f328296e9486..1a871eeb59f6 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,16 +29,16 @@ */ public class ModelApiResponse { - public static final String SERIALIZED_NAME_Code = "code"; - @SerializedName(SERIALIZED_NAME_Code) + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) private Integer code = null; - public static final String SERIALIZED_NAME_Type = "type"; - @SerializedName(SERIALIZED_NAME_Type) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) private String type = null; - public static final String SERIALIZED_NAME_Message = "message"; - @SerializedName(SERIALIZED_NAME_Message) + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) private String message = null; public ModelApiResponse code(Integer code) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java index 876b7099e56e..83e7b1c601b4 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing reserved words") public class ModelReturn { - public static final String SERIALIZED_NAME_Return = "return"; - @SerializedName(SERIALIZED_NAME_Return) + public static final String SERIALIZED_NAME_RETURN = "return"; + @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return = null; public ModelReturn _return(Integer _return) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java index 5035d8d618cb..e88b3009cd64 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Name.java @@ -30,20 +30,20 @@ @ApiModel(description = "Model for testing model name same as property name") public class Name { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_SnakeCase = "snake_case"; - @SerializedName(SERIALIZED_NAME_SnakeCase) + public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; + @SerializedName(SERIALIZED_NAME_SNAKE_CASE) private Integer snakeCase = null; - public static final String SERIALIZED_NAME_Property = "property"; - @SerializedName(SERIALIZED_NAME_Property) + public static final String SERIALIZED_NAME_PROPERTY = "property"; + @SerializedName(SERIALIZED_NAME_PROPERTY) private String property = null; - public static final String SERIALIZED_NAME_123number = "123Number"; - @SerializedName(SERIALIZED_NAME_123number) + public static final String SERIALIZED_NAME_123NUMBER = "123Number"; + @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number = null; public Name name(Integer name) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java index b2507f5469f8..81cb0ece54da 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,8 +30,8 @@ */ public class NumberOnly { - public static final String SERIALIZED_NAME_JustNumber = "JustNumber"; - @SerializedName(SERIALIZED_NAME_JustNumber) + public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; + @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber = null; public NumberOnly justNumber(BigDecimal justNumber) { 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 324382429d95..1b39885d8e6e 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 @@ -30,20 +30,20 @@ */ public class Order { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_PetId = "petId"; - @SerializedName(SERIALIZED_NAME_PetId) + public static final String SERIALIZED_NAME_PET_ID = "petId"; + @SerializedName(SERIALIZED_NAME_PET_ID) private Long petId = null; - public static final String SERIALIZED_NAME_Quantity = "quantity"; - @SerializedName(SERIALIZED_NAME_Quantity) + public static final String SERIALIZED_NAME_QUANTITY = "quantity"; + @SerializedName(SERIALIZED_NAME_QUANTITY) private Integer quantity = null; - public static final String SERIALIZED_NAME_ShipDate = "shipDate"; - @SerializedName(SERIALIZED_NAME_ShipDate) + public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; + @SerializedName(SERIALIZED_NAME_SHIP_DATE) private OffsetDateTime shipDate = null; /** @@ -95,12 +95,12 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; - public static final String SERIALIZED_NAME_Complete = "complete"; - @SerializedName(SERIALIZED_NAME_Complete) + public static final String SERIALIZED_NAME_COMPLETE = "complete"; + @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; public Order id(Long id) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java index 25489f4ce420..63b156072872 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,16 +30,16 @@ */ public class OuterComposite { - public static final String SERIALIZED_NAME_MyNumber = "my_number"; - @SerializedName(SERIALIZED_NAME_MyNumber) + public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; + @SerializedName(SERIALIZED_NAME_MY_NUMBER) private BigDecimal myNumber = null; - public static final String SERIALIZED_NAME_MyString = "my_string"; - @SerializedName(SERIALIZED_NAME_MyString) + public static final String SERIALIZED_NAME_MY_STRING = "my_string"; + @SerializedName(SERIALIZED_NAME_MY_STRING) private String myString = null; - public static final String SERIALIZED_NAME_MyBoolean = "my_boolean"; - @SerializedName(SERIALIZED_NAME_MyBoolean) + public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; + @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean = null; public OuterComposite myNumber(BigDecimal myNumber) { 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 29d941716368..4a7d067f0196 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 @@ -33,24 +33,24 @@ */ public class Pet { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Category = "category"; - @SerializedName(SERIALIZED_NAME_Category) + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) private Category category = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; - public static final String SERIALIZED_NAME_PhotoUrls = "photoUrls"; - @SerializedName(SERIALIZED_NAME_PhotoUrls) + public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; + @SerializedName(SERIALIZED_NAME_PHOTO_URLS) private List photoUrls = new ArrayList(); - public static final String SERIALIZED_NAME_Tags = "tags"; - @SerializedName(SERIALIZED_NAME_Tags) + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) private List tags = null; /** @@ -102,8 +102,8 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; public Pet id(Long id) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index cfde51d8a9d7..c25d42c27242 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,12 +29,12 @@ */ public class ReadOnlyFirst { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Baz = "baz"; - @SerializedName(SERIALIZED_NAME_Baz) + public static final String SERIALIZED_NAME_BAZ = "baz"; + @SerializedName(SERIALIZED_NAME_BAZ) private String baz = null; /** diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java index 78be75ca241b..db6241ec143a 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,8 +29,8 @@ */ public class SpecialModelName { - public static final String SERIALIZED_NAME_$SpecialPropertyName = "$special[property.name]"; - @SerializedName(SERIALIZED_NAME_$SpecialPropertyName) + public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName = null; public SpecialModelName $specialPropertyName(Long $specialPropertyName) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java index dd24b1895555..c80a102aef4c 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/Tag.java @@ -29,12 +29,12 @@ */ public class Tag { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Tag id(Long id) { diff --git a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java index 1cb4b8a89a80..bcc3e9164dbf 100644 --- a/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/rest-assured/src/main/java/org/openapitools/client/model/User.java @@ -29,36 +29,36 @@ */ public class User { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Username = "username"; - @SerializedName(SERIALIZED_NAME_Username) + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) private String username = null; - public static final String SERIALIZED_NAME_FirstName = "firstName"; - @SerializedName(SERIALIZED_NAME_FirstName) + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) private String firstName = null; - public static final String SERIALIZED_NAME_LastName = "lastName"; - @SerializedName(SERIALIZED_NAME_LastName) + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) private String lastName = null; - public static final String SERIALIZED_NAME_Email = "email"; - @SerializedName(SERIALIZED_NAME_Email) + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) private String email = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; - public static final String SERIALIZED_NAME_Phone = "phone"; - @SerializedName(SERIALIZED_NAME_Phone) + public static final String SERIALIZED_NAME_PHONE = "phone"; + @SerializedName(SERIALIZED_NAME_PHONE) private String phone = null; - public static final String SERIALIZED_NAME_UserStatus = "userStatus"; - @SerializedName(SERIALIZED_NAME_UserStatus) + public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; + @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus = null; public User id(Long id) { diff --git a/samples/client/petstore/java/resteasy/docs/FakeApi.md b/samples/client/petstore/java/resteasy/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/resteasy/docs/FakeApi.md +++ b/samples/client/petstore/java/resteasy/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate-withXml/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/resttemplate/docs/FakeApi.md b/samples/client/petstore/java/resttemplate/docs/FakeApi.md index 8b13bc162795..19206a201470 100644 --- a/samples/client/petstore/java/resttemplate/docs/FakeApi.md +++ b/samples/client/petstore/java/resttemplate/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index c3ee6d14e6b9..af119dbf386d 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -32,12 +32,12 @@ */ public class AdditionalPropertiesClass { - public static final String SERIALIZED_NAME_MapProperty = "map_property"; - @SerializedName(SERIALIZED_NAME_MapProperty) + public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property"; + @SerializedName(SERIALIZED_NAME_MAP_PROPERTY) private Map mapProperty = null; - public static final String SERIALIZED_NAME_MapOfMapProperty = "map_of_map_property"; - @SerializedName(SERIALIZED_NAME_MapOfMapProperty) + public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY) private Map> mapOfMapProperty = null; public AdditionalPropertiesClass mapProperty(Map mapProperty) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Animal.java index 921305a27856..02469e22e51b 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Animal.java @@ -30,12 +30,12 @@ public class Animal { - public static final String SERIALIZED_NAME_ClassName = "className"; - @SerializedName(SERIALIZED_NAME_ClassName) + public static final String SERIALIZED_NAME_CLASS_NAME = "className"; + @SerializedName(SERIALIZED_NAME_CLASS_NAME) private String className = null; - public static final String SERIALIZED_NAME_Color = "color"; - @SerializedName(SERIALIZED_NAME_Color) + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) private String color = "red"; public Animal() { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 231b2332ba3f..fad705e0858b 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayArrayNumber = "ArrayArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 87446e7ce5b7..e48ac7c7afa7 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayNumber = "ArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; public ArrayOfNumberOnly arrayNumber(List arrayNumber) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayTest.java index 39d2bce3d8b2..f0b9ec4f4532 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -32,16 +32,16 @@ */ public class ArrayTest { - public static final String SERIALIZED_NAME_ArrayOfString = "array_of_string"; - @SerializedName(SERIALIZED_NAME_ArrayOfString) + public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; + @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) private List arrayOfString = null; - public static final String SERIALIZED_NAME_ArrayArrayOfInteger = "array_array_of_integer"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfInteger) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; - public static final String SERIALIZED_NAME_ArrayArrayOfModel = "array_array_of_model"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfModel) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; public ArrayTest arrayOfString(List arrayOfString) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Capitalization.java index 4158d604a1db..bd3be0876f61 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,28 +29,28 @@ */ public class Capitalization { - public static final String SERIALIZED_NAME_SmallCamel = "smallCamel"; - @SerializedName(SERIALIZED_NAME_SmallCamel) + public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; + @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) private String smallCamel = null; - public static final String SERIALIZED_NAME_CapitalCamel = "CapitalCamel"; - @SerializedName(SERIALIZED_NAME_CapitalCamel) + public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; + @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) private String capitalCamel = null; - public static final String SERIALIZED_NAME_SmallSnake = "small_Snake"; - @SerializedName(SERIALIZED_NAME_SmallSnake) + public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; + @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) private String smallSnake = null; - public static final String SERIALIZED_NAME_CapitalSnake = "Capital_Snake"; - @SerializedName(SERIALIZED_NAME_CapitalSnake) + public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; + @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) private String capitalSnake = null; - public static final String SERIALIZED_NAME_ScAETHFlowPoints = "SCA_ETH_Flow_Points"; - @SerializedName(SERIALIZED_NAME_ScAETHFlowPoints) + public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints = null; - public static final String SERIALIZED_NAME_ATTNAME = "ATT_NAME"; - @SerializedName(SERIALIZED_NAME_ATTNAME) + public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; + @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME = null; public Capitalization smallCamel(String smallCamel) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Cat.java index 504fab5f20e7..834be67f34f7 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Cat.java @@ -30,8 +30,8 @@ */ public class Cat extends Animal { - public static final String SERIALIZED_NAME_Declawed = "declawed"; - @SerializedName(SERIALIZED_NAME_Declawed) + public static final String SERIALIZED_NAME_DECLAWED = "declawed"; + @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed = null; public Cat declawed(Boolean declawed) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Category.java index 063c56fda010..7223fd282798 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Category.java @@ -29,12 +29,12 @@ */ public class Category { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Category id(Long id) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ClassModel.java index 0f1b83287839..3150b5919b09 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing model with \"_class\" property") public class ClassModel { - public static final String SERIALIZED_NAME_PropertyClass = "_class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public ClassModel propertyClass(String propertyClass) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Client.java index 3084f329a469..219520a7ab1c 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Client.java @@ -29,8 +29,8 @@ */ public class Client { - public static final String SERIALIZED_NAME_Client = "client"; - @SerializedName(SERIALIZED_NAME_Client) + public static final String SERIALIZED_NAME_CLIENT = "client"; + @SerializedName(SERIALIZED_NAME_CLIENT) private String client = null; public Client client(String client) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Dog.java index 0610e11ea035..3c86defe3c87 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Dog.java @@ -30,8 +30,8 @@ */ public class Dog extends Animal { - public static final String SERIALIZED_NAME_Breed = "breed"; - @SerializedName(SERIALIZED_NAME_Breed) + public static final String SERIALIZED_NAME_BREED = "breed"; + @SerializedName(SERIALIZED_NAME_BREED) private String breed = null; public Dog breed(String breed) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java index a6c2db762bc3..e19123875058 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -78,8 +78,8 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_JustSymbol = "just_symbol"; - @SerializedName(SERIALIZED_NAME_JustSymbol) + public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; + @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) private JustSymbolEnum justSymbol = null; /** @@ -129,8 +129,8 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_ArrayEnum = "array_enum"; - @SerializedName(SERIALIZED_NAME_ArrayEnum) + public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; + @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; public EnumArrays justSymbol(JustSymbolEnum justSymbol) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java index 21f8bc13eb16..4205836fa81a 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/EnumTest.java @@ -79,8 +79,8 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumString = "enum_string"; - @SerializedName(SERIALIZED_NAME_EnumString) + public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING) private EnumStringEnum enumString = null; /** @@ -132,8 +132,8 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } - public static final String SERIALIZED_NAME_EnumStringRequired = "enum_string_required"; - @SerializedName(SERIALIZED_NAME_EnumStringRequired) + public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired = null; /** @@ -183,8 +183,8 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumInteger = "enum_integer"; - @SerializedName(SERIALIZED_NAME_EnumInteger) + public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; + @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) private EnumIntegerEnum enumInteger = null; /** @@ -234,12 +234,12 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumNumber = "enum_number"; - @SerializedName(SERIALIZED_NAME_EnumNumber) + public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; + @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) private EnumNumberEnum enumNumber = null; - public static final String SERIALIZED_NAME_OuterEnum = "outerEnum"; - @SerializedName(SERIALIZED_NAME_OuterEnum) + public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; + @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum = null; public EnumTest enumString(EnumStringEnum enumString) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java index 3eaf5f838e2c..dd67c480397a 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,56 +34,56 @@ */ public class FormatTest { - public static final String SERIALIZED_NAME_Integer = "integer"; - @SerializedName(SERIALIZED_NAME_Integer) + public static final String SERIALIZED_NAME_INTEGER = "integer"; + @SerializedName(SERIALIZED_NAME_INTEGER) private Integer integer = null; - public static final String SERIALIZED_NAME_Int32 = "int32"; - @SerializedName(SERIALIZED_NAME_Int32) + public static final String SERIALIZED_NAME_INT32 = "int32"; + @SerializedName(SERIALIZED_NAME_INT32) private Integer int32 = null; - public static final String SERIALIZED_NAME_Int64 = "int64"; - @SerializedName(SERIALIZED_NAME_Int64) + public static final String SERIALIZED_NAME_INT64 = "int64"; + @SerializedName(SERIALIZED_NAME_INT64) private Long int64 = null; - public static final String SERIALIZED_NAME_Number = "number"; - @SerializedName(SERIALIZED_NAME_Number) + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) private BigDecimal number = null; - public static final String SERIALIZED_NAME_Float = "float"; - @SerializedName(SERIALIZED_NAME_Float) + public static final String SERIALIZED_NAME_FLOAT = "float"; + @SerializedName(SERIALIZED_NAME_FLOAT) private Float _float = null; - public static final String SERIALIZED_NAME_Double = "double"; - @SerializedName(SERIALIZED_NAME_Double) + public static final String SERIALIZED_NAME_DOUBLE = "double"; + @SerializedName(SERIALIZED_NAME_DOUBLE) private Double _double = null; - public static final String SERIALIZED_NAME_String = "string"; - @SerializedName(SERIALIZED_NAME_String) + public static final String SERIALIZED_NAME_STRING = "string"; + @SerializedName(SERIALIZED_NAME_STRING) private String string = null; - public static final String SERIALIZED_NAME_Byte = "byte"; - @SerializedName(SERIALIZED_NAME_Byte) + public static final String SERIALIZED_NAME_BYTE = "byte"; + @SerializedName(SERIALIZED_NAME_BYTE) private byte[] _byte = null; - public static final String SERIALIZED_NAME_Binary = "binary"; - @SerializedName(SERIALIZED_NAME_Binary) + public static final String SERIALIZED_NAME_BINARY = "binary"; + @SerializedName(SERIALIZED_NAME_BINARY) private File binary = null; - public static final String SERIALIZED_NAME_Date = "date"; - @SerializedName(SERIALIZED_NAME_Date) + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) private LocalDate date = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private DateTime dateTime = null; - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; public FormatTest integer(Integer integer) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 479456ef4601..602ff3afb430 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,12 +29,12 @@ */ public class HasOnlyReadOnly { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Foo = "foo"; - @SerializedName(SERIALIZED_NAME_Foo) + public static final String SERIALIZED_NAME_FOO = "foo"; + @SerializedName(SERIALIZED_NAME_FOO) private String foo = null; /** diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java index 30c1847f9e17..66a646f87738 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MapTest.java @@ -32,8 +32,8 @@ */ public class MapTest { - public static final String SERIALIZED_NAME_MapMapOfString = "map_map_of_string"; - @SerializedName(SERIALIZED_NAME_MapMapOfString) + public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; + @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -83,8 +83,8 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_MapOfEnumString = "map_of_enum_string"; - @SerializedName(SERIALIZED_NAME_MapOfEnumString) + public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public MapTest mapMapOfString(Map> mapMapOfString) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 09b47445c89e..68012373c6af 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -35,16 +35,16 @@ */ public class MixedPropertiesAndAdditionalPropertiesClass { - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private DateTime dateTime = null; - public static final String SERIALIZED_NAME_Map = "map"; - @SerializedName(SERIALIZED_NAME_Map) + public static final String SERIALIZED_NAME_MAP = "map"; + @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Model200Response.java index d84e624a363b..fdc7ed42acb2 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Model200Response.java @@ -30,12 +30,12 @@ @ApiModel(description = "Model for testing model name starting with number") public class Model200Response { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_PropertyClass = "class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public Model200Response name(Integer name) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f328296e9486..1a871eeb59f6 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,16 +29,16 @@ */ public class ModelApiResponse { - public static final String SERIALIZED_NAME_Code = "code"; - @SerializedName(SERIALIZED_NAME_Code) + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) private Integer code = null; - public static final String SERIALIZED_NAME_Type = "type"; - @SerializedName(SERIALIZED_NAME_Type) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) private String type = null; - public static final String SERIALIZED_NAME_Message = "message"; - @SerializedName(SERIALIZED_NAME_Message) + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) private String message = null; public ModelApiResponse code(Integer code) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelReturn.java index 876b7099e56e..83e7b1c601b4 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing reserved words") public class ModelReturn { - public static final String SERIALIZED_NAME_Return = "return"; - @SerializedName(SERIALIZED_NAME_Return) + public static final String SERIALIZED_NAME_RETURN = "return"; + @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return = null; public ModelReturn _return(Integer _return) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Name.java index 5035d8d618cb..e88b3009cd64 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Name.java @@ -30,20 +30,20 @@ @ApiModel(description = "Model for testing model name same as property name") public class Name { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_SnakeCase = "snake_case"; - @SerializedName(SERIALIZED_NAME_SnakeCase) + public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; + @SerializedName(SERIALIZED_NAME_SNAKE_CASE) private Integer snakeCase = null; - public static final String SERIALIZED_NAME_Property = "property"; - @SerializedName(SERIALIZED_NAME_Property) + public static final String SERIALIZED_NAME_PROPERTY = "property"; + @SerializedName(SERIALIZED_NAME_PROPERTY) private String property = null; - public static final String SERIALIZED_NAME_123number = "123Number"; - @SerializedName(SERIALIZED_NAME_123number) + public static final String SERIALIZED_NAME_123NUMBER = "123Number"; + @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number = null; public Name name(Integer name) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/NumberOnly.java index b2507f5469f8..81cb0ece54da 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,8 +30,8 @@ */ public class NumberOnly { - public static final String SERIALIZED_NAME_JustNumber = "JustNumber"; - @SerializedName(SERIALIZED_NAME_JustNumber) + public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; + @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber = null; public NumberOnly justNumber(BigDecimal justNumber) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java index 7cb2aaeaf65b..6a0f7f93e813 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Order.java @@ -30,20 +30,20 @@ */ public class Order { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_PetId = "petId"; - @SerializedName(SERIALIZED_NAME_PetId) + public static final String SERIALIZED_NAME_PET_ID = "petId"; + @SerializedName(SERIALIZED_NAME_PET_ID) private Long petId = null; - public static final String SERIALIZED_NAME_Quantity = "quantity"; - @SerializedName(SERIALIZED_NAME_Quantity) + public static final String SERIALIZED_NAME_QUANTITY = "quantity"; + @SerializedName(SERIALIZED_NAME_QUANTITY) private Integer quantity = null; - public static final String SERIALIZED_NAME_ShipDate = "shipDate"; - @SerializedName(SERIALIZED_NAME_ShipDate) + public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; + @SerializedName(SERIALIZED_NAME_SHIP_DATE) private DateTime shipDate = null; /** @@ -95,12 +95,12 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; - public static final String SERIALIZED_NAME_Complete = "complete"; - @SerializedName(SERIALIZED_NAME_Complete) + public static final String SERIALIZED_NAME_COMPLETE = "complete"; + @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; public Order id(Long id) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/OuterComposite.java index 25489f4ce420..63b156072872 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,16 +30,16 @@ */ public class OuterComposite { - public static final String SERIALIZED_NAME_MyNumber = "my_number"; - @SerializedName(SERIALIZED_NAME_MyNumber) + public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; + @SerializedName(SERIALIZED_NAME_MY_NUMBER) private BigDecimal myNumber = null; - public static final String SERIALIZED_NAME_MyString = "my_string"; - @SerializedName(SERIALIZED_NAME_MyString) + public static final String SERIALIZED_NAME_MY_STRING = "my_string"; + @SerializedName(SERIALIZED_NAME_MY_STRING) private String myString = null; - public static final String SERIALIZED_NAME_MyBoolean = "my_boolean"; - @SerializedName(SERIALIZED_NAME_MyBoolean) + public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; + @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean = null; public OuterComposite myNumber(BigDecimal myNumber) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java index 29d941716368..4a7d067f0196 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Pet.java @@ -33,24 +33,24 @@ */ public class Pet { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Category = "category"; - @SerializedName(SERIALIZED_NAME_Category) + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) private Category category = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; - public static final String SERIALIZED_NAME_PhotoUrls = "photoUrls"; - @SerializedName(SERIALIZED_NAME_PhotoUrls) + public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; + @SerializedName(SERIALIZED_NAME_PHOTO_URLS) private List photoUrls = new ArrayList(); - public static final String SERIALIZED_NAME_Tags = "tags"; - @SerializedName(SERIALIZED_NAME_Tags) + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) private List tags = null; /** @@ -102,8 +102,8 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; public Pet id(Long id) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index cfde51d8a9d7..c25d42c27242 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,12 +29,12 @@ */ public class ReadOnlyFirst { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Baz = "baz"; - @SerializedName(SERIALIZED_NAME_Baz) + public static final String SERIALIZED_NAME_BAZ = "baz"; + @SerializedName(SERIALIZED_NAME_BAZ) private String baz = null; /** diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/SpecialModelName.java index 78be75ca241b..db6241ec143a 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,8 +29,8 @@ */ public class SpecialModelName { - public static final String SERIALIZED_NAME_$SpecialPropertyName = "$special[property.name]"; - @SerializedName(SERIALIZED_NAME_$SpecialPropertyName) + public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName = null; public SpecialModelName $specialPropertyName(Long $specialPropertyName) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Tag.java index dd24b1895555..c80a102aef4c 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/Tag.java @@ -29,12 +29,12 @@ */ public class Tag { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Tag id(Long id) { diff --git a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/User.java index 1cb4b8a89a80..bcc3e9164dbf 100644 --- a/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit/src/main/java/org/openapitools/client/model/User.java @@ -29,36 +29,36 @@ */ public class User { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Username = "username"; - @SerializedName(SERIALIZED_NAME_Username) + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) private String username = null; - public static final String SERIALIZED_NAME_FirstName = "firstName"; - @SerializedName(SERIALIZED_NAME_FirstName) + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) private String firstName = null; - public static final String SERIALIZED_NAME_LastName = "lastName"; - @SerializedName(SERIALIZED_NAME_LastName) + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) private String lastName = null; - public static final String SERIALIZED_NAME_Email = "email"; - @SerializedName(SERIALIZED_NAME_Email) + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) private String email = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; - public static final String SERIALIZED_NAME_Phone = "phone"; - @SerializedName(SERIALIZED_NAME_Phone) + public static final String SERIALIZED_NAME_PHONE = "phone"; + @SerializedName(SERIALIZED_NAME_PHONE) private String phone = null; - public static final String SERIALIZED_NAME_UserStatus = "userStatus"; - @SerializedName(SERIALIZED_NAME_UserStatus) + public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; + @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus = null; public User id(Long id) { diff --git a/samples/client/petstore/java/retrofit2-play24/docs/FakeApi.md b/samples/client/petstore/java/retrofit2-play24/docs/FakeApi.md index be38508ac266..d201b93a2a5f 100644 --- a/samples/client/petstore/java/retrofit2-play24/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2-play24/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md b/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md index be38508ac266..d201b93a2a5f 100644 --- a/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2-play25/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/retrofit2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2/docs/FakeApi.md index be38508ac266..d201b93a2a5f 100644 --- a/samples/client/petstore/java/retrofit2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index c3ee6d14e6b9..af119dbf386d 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -32,12 +32,12 @@ */ public class AdditionalPropertiesClass { - public static final String SERIALIZED_NAME_MapProperty = "map_property"; - @SerializedName(SERIALIZED_NAME_MapProperty) + public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property"; + @SerializedName(SERIALIZED_NAME_MAP_PROPERTY) private Map mapProperty = null; - public static final String SERIALIZED_NAME_MapOfMapProperty = "map_of_map_property"; - @SerializedName(SERIALIZED_NAME_MapOfMapProperty) + public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY) private Map> mapOfMapProperty = null; public AdditionalPropertiesClass mapProperty(Map mapProperty) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java index 921305a27856..02469e22e51b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Animal.java @@ -30,12 +30,12 @@ public class Animal { - public static final String SERIALIZED_NAME_ClassName = "className"; - @SerializedName(SERIALIZED_NAME_ClassName) + public static final String SERIALIZED_NAME_CLASS_NAME = "className"; + @SerializedName(SERIALIZED_NAME_CLASS_NAME) private String className = null; - public static final String SERIALIZED_NAME_Color = "color"; - @SerializedName(SERIALIZED_NAME_Color) + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) private String color = "red"; public Animal() { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 231b2332ba3f..fad705e0858b 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayArrayNumber = "ArrayArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 87446e7ce5b7..e48ac7c7afa7 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayNumber = "ArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; public ArrayOfNumberOnly arrayNumber(List arrayNumber) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java index 39d2bce3d8b2..f0b9ec4f4532 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -32,16 +32,16 @@ */ public class ArrayTest { - public static final String SERIALIZED_NAME_ArrayOfString = "array_of_string"; - @SerializedName(SERIALIZED_NAME_ArrayOfString) + public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; + @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) private List arrayOfString = null; - public static final String SERIALIZED_NAME_ArrayArrayOfInteger = "array_array_of_integer"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfInteger) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; - public static final String SERIALIZED_NAME_ArrayArrayOfModel = "array_array_of_model"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfModel) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; public ArrayTest arrayOfString(List arrayOfString) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java index 4158d604a1db..bd3be0876f61 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,28 +29,28 @@ */ public class Capitalization { - public static final String SERIALIZED_NAME_SmallCamel = "smallCamel"; - @SerializedName(SERIALIZED_NAME_SmallCamel) + public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; + @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) private String smallCamel = null; - public static final String SERIALIZED_NAME_CapitalCamel = "CapitalCamel"; - @SerializedName(SERIALIZED_NAME_CapitalCamel) + public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; + @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) private String capitalCamel = null; - public static final String SERIALIZED_NAME_SmallSnake = "small_Snake"; - @SerializedName(SERIALIZED_NAME_SmallSnake) + public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; + @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) private String smallSnake = null; - public static final String SERIALIZED_NAME_CapitalSnake = "Capital_Snake"; - @SerializedName(SERIALIZED_NAME_CapitalSnake) + public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; + @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) private String capitalSnake = null; - public static final String SERIALIZED_NAME_ScAETHFlowPoints = "SCA_ETH_Flow_Points"; - @SerializedName(SERIALIZED_NAME_ScAETHFlowPoints) + public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints = null; - public static final String SERIALIZED_NAME_ATTNAME = "ATT_NAME"; - @SerializedName(SERIALIZED_NAME_ATTNAME) + public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; + @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME = null; public Capitalization smallCamel(String smallCamel) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java index 504fab5f20e7..834be67f34f7 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Cat.java @@ -30,8 +30,8 @@ */ public class Cat extends Animal { - public static final String SERIALIZED_NAME_Declawed = "declawed"; - @SerializedName(SERIALIZED_NAME_Declawed) + public static final String SERIALIZED_NAME_DECLAWED = "declawed"; + @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed = null; public Cat declawed(Boolean declawed) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java index 063c56fda010..7223fd282798 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Category.java @@ -29,12 +29,12 @@ */ public class Category { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Category id(Long id) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java index 0f1b83287839..3150b5919b09 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing model with \"_class\" property") public class ClassModel { - public static final String SERIALIZED_NAME_PropertyClass = "_class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public ClassModel propertyClass(String propertyClass) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java index 3084f329a469..219520a7ab1c 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Client.java @@ -29,8 +29,8 @@ */ public class Client { - public static final String SERIALIZED_NAME_Client = "client"; - @SerializedName(SERIALIZED_NAME_Client) + public static final String SERIALIZED_NAME_CLIENT = "client"; + @SerializedName(SERIALIZED_NAME_CLIENT) private String client = null; public Client client(String client) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java index 0610e11ea035..3c86defe3c87 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Dog.java @@ -30,8 +30,8 @@ */ public class Dog extends Animal { - public static final String SERIALIZED_NAME_Breed = "breed"; - @SerializedName(SERIALIZED_NAME_Breed) + public static final String SERIALIZED_NAME_BREED = "breed"; + @SerializedName(SERIALIZED_NAME_BREED) private String breed = null; public Dog breed(String breed) { 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 a6c2db762bc3..e19123875058 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 @@ -78,8 +78,8 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_JustSymbol = "just_symbol"; - @SerializedName(SERIALIZED_NAME_JustSymbol) + public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; + @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) private JustSymbolEnum justSymbol = null; /** @@ -129,8 +129,8 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_ArrayEnum = "array_enum"; - @SerializedName(SERIALIZED_NAME_ArrayEnum) + public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; + @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; public EnumArrays justSymbol(JustSymbolEnum justSymbol) { 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 21f8bc13eb16..4205836fa81a 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 @@ -79,8 +79,8 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumString = "enum_string"; - @SerializedName(SERIALIZED_NAME_EnumString) + public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING) private EnumStringEnum enumString = null; /** @@ -132,8 +132,8 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } - public static final String SERIALIZED_NAME_EnumStringRequired = "enum_string_required"; - @SerializedName(SERIALIZED_NAME_EnumStringRequired) + public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired = null; /** @@ -183,8 +183,8 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumInteger = "enum_integer"; - @SerializedName(SERIALIZED_NAME_EnumInteger) + public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; + @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) private EnumIntegerEnum enumInteger = null; /** @@ -234,12 +234,12 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumNumber = "enum_number"; - @SerializedName(SERIALIZED_NAME_EnumNumber) + public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; + @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) private EnumNumberEnum enumNumber = null; - public static final String SERIALIZED_NAME_OuterEnum = "outerEnum"; - @SerializedName(SERIALIZED_NAME_OuterEnum) + public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; + @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum = null; public EnumTest enumString(EnumStringEnum enumString) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java index 5a6709bd4f19..528a49bac3fc 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,56 +34,56 @@ */ public class FormatTest { - public static final String SERIALIZED_NAME_Integer = "integer"; - @SerializedName(SERIALIZED_NAME_Integer) + public static final String SERIALIZED_NAME_INTEGER = "integer"; + @SerializedName(SERIALIZED_NAME_INTEGER) private Integer integer = null; - public static final String SERIALIZED_NAME_Int32 = "int32"; - @SerializedName(SERIALIZED_NAME_Int32) + public static final String SERIALIZED_NAME_INT32 = "int32"; + @SerializedName(SERIALIZED_NAME_INT32) private Integer int32 = null; - public static final String SERIALIZED_NAME_Int64 = "int64"; - @SerializedName(SERIALIZED_NAME_Int64) + public static final String SERIALIZED_NAME_INT64 = "int64"; + @SerializedName(SERIALIZED_NAME_INT64) private Long int64 = null; - public static final String SERIALIZED_NAME_Number = "number"; - @SerializedName(SERIALIZED_NAME_Number) + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) private BigDecimal number = null; - public static final String SERIALIZED_NAME_Float = "float"; - @SerializedName(SERIALIZED_NAME_Float) + public static final String SERIALIZED_NAME_FLOAT = "float"; + @SerializedName(SERIALIZED_NAME_FLOAT) private Float _float = null; - public static final String SERIALIZED_NAME_Double = "double"; - @SerializedName(SERIALIZED_NAME_Double) + public static final String SERIALIZED_NAME_DOUBLE = "double"; + @SerializedName(SERIALIZED_NAME_DOUBLE) private Double _double = null; - public static final String SERIALIZED_NAME_String = "string"; - @SerializedName(SERIALIZED_NAME_String) + public static final String SERIALIZED_NAME_STRING = "string"; + @SerializedName(SERIALIZED_NAME_STRING) private String string = null; - public static final String SERIALIZED_NAME_Byte = "byte"; - @SerializedName(SERIALIZED_NAME_Byte) + public static final String SERIALIZED_NAME_BYTE = "byte"; + @SerializedName(SERIALIZED_NAME_BYTE) private byte[] _byte = null; - public static final String SERIALIZED_NAME_Binary = "binary"; - @SerializedName(SERIALIZED_NAME_Binary) + public static final String SERIALIZED_NAME_BINARY = "binary"; + @SerializedName(SERIALIZED_NAME_BINARY) private File binary = null; - public static final String SERIALIZED_NAME_Date = "date"; - @SerializedName(SERIALIZED_NAME_Date) + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) private LocalDate date = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; public FormatTest integer(Integer integer) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 479456ef4601..602ff3afb430 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,12 +29,12 @@ */ public class HasOnlyReadOnly { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Foo = "foo"; - @SerializedName(SERIALIZED_NAME_Foo) + public static final String SERIALIZED_NAME_FOO = "foo"; + @SerializedName(SERIALIZED_NAME_FOO) private String foo = null; /** 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 30c1847f9e17..66a646f87738 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 @@ -32,8 +32,8 @@ */ public class MapTest { - public static final String SERIALIZED_NAME_MapMapOfString = "map_map_of_string"; - @SerializedName(SERIALIZED_NAME_MapMapOfString) + public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; + @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -83,8 +83,8 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_MapOfEnumString = "map_of_enum_string"; - @SerializedName(SERIALIZED_NAME_MapOfEnumString) + public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public MapTest mapMapOfString(Map> mapMapOfString) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0d81089435bb..96a6bc245036 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -35,16 +35,16 @@ */ public class MixedPropertiesAndAdditionalPropertiesClass { - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Map = "map"; - @SerializedName(SERIALIZED_NAME_Map) + public static final String SERIALIZED_NAME_MAP = "map"; + @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java index d84e624a363b..fdc7ed42acb2 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -30,12 +30,12 @@ @ApiModel(description = "Model for testing model name starting with number") public class Model200Response { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_PropertyClass = "class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public Model200Response name(Integer name) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f328296e9486..1a871eeb59f6 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,16 +29,16 @@ */ public class ModelApiResponse { - public static final String SERIALIZED_NAME_Code = "code"; - @SerializedName(SERIALIZED_NAME_Code) + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) private Integer code = null; - public static final String SERIALIZED_NAME_Type = "type"; - @SerializedName(SERIALIZED_NAME_Type) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) private String type = null; - public static final String SERIALIZED_NAME_Message = "message"; - @SerializedName(SERIALIZED_NAME_Message) + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) private String message = null; public ModelApiResponse code(Integer code) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java index 876b7099e56e..83e7b1c601b4 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing reserved words") public class ModelReturn { - public static final String SERIALIZED_NAME_Return = "return"; - @SerializedName(SERIALIZED_NAME_Return) + public static final String SERIALIZED_NAME_RETURN = "return"; + @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return = null; public ModelReturn _return(Integer _return) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java index 5035d8d618cb..e88b3009cd64 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Name.java @@ -30,20 +30,20 @@ @ApiModel(description = "Model for testing model name same as property name") public class Name { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_SnakeCase = "snake_case"; - @SerializedName(SERIALIZED_NAME_SnakeCase) + public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; + @SerializedName(SERIALIZED_NAME_SNAKE_CASE) private Integer snakeCase = null; - public static final String SERIALIZED_NAME_Property = "property"; - @SerializedName(SERIALIZED_NAME_Property) + public static final String SERIALIZED_NAME_PROPERTY = "property"; + @SerializedName(SERIALIZED_NAME_PROPERTY) private String property = null; - public static final String SERIALIZED_NAME_123number = "123Number"; - @SerializedName(SERIALIZED_NAME_123number) + public static final String SERIALIZED_NAME_123NUMBER = "123Number"; + @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number = null; public Name name(Integer name) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java index b2507f5469f8..81cb0ece54da 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,8 +30,8 @@ */ public class NumberOnly { - public static final String SERIALIZED_NAME_JustNumber = "JustNumber"; - @SerializedName(SERIALIZED_NAME_JustNumber) + public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; + @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber = null; public NumberOnly justNumber(BigDecimal justNumber) { 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 324382429d95..1b39885d8e6e 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 @@ -30,20 +30,20 @@ */ public class Order { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_PetId = "petId"; - @SerializedName(SERIALIZED_NAME_PetId) + public static final String SERIALIZED_NAME_PET_ID = "petId"; + @SerializedName(SERIALIZED_NAME_PET_ID) private Long petId = null; - public static final String SERIALIZED_NAME_Quantity = "quantity"; - @SerializedName(SERIALIZED_NAME_Quantity) + public static final String SERIALIZED_NAME_QUANTITY = "quantity"; + @SerializedName(SERIALIZED_NAME_QUANTITY) private Integer quantity = null; - public static final String SERIALIZED_NAME_ShipDate = "shipDate"; - @SerializedName(SERIALIZED_NAME_ShipDate) + public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; + @SerializedName(SERIALIZED_NAME_SHIP_DATE) private OffsetDateTime shipDate = null; /** @@ -95,12 +95,12 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; - public static final String SERIALIZED_NAME_Complete = "complete"; - @SerializedName(SERIALIZED_NAME_Complete) + public static final String SERIALIZED_NAME_COMPLETE = "complete"; + @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; public Order id(Long id) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java index 25489f4ce420..63b156072872 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,16 +30,16 @@ */ public class OuterComposite { - public static final String SERIALIZED_NAME_MyNumber = "my_number"; - @SerializedName(SERIALIZED_NAME_MyNumber) + public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; + @SerializedName(SERIALIZED_NAME_MY_NUMBER) private BigDecimal myNumber = null; - public static final String SERIALIZED_NAME_MyString = "my_string"; - @SerializedName(SERIALIZED_NAME_MyString) + public static final String SERIALIZED_NAME_MY_STRING = "my_string"; + @SerializedName(SERIALIZED_NAME_MY_STRING) private String myString = null; - public static final String SERIALIZED_NAME_MyBoolean = "my_boolean"; - @SerializedName(SERIALIZED_NAME_MyBoolean) + public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; + @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean = null; public OuterComposite myNumber(BigDecimal myNumber) { 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 29d941716368..4a7d067f0196 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 @@ -33,24 +33,24 @@ */ public class Pet { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Category = "category"; - @SerializedName(SERIALIZED_NAME_Category) + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) private Category category = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; - public static final String SERIALIZED_NAME_PhotoUrls = "photoUrls"; - @SerializedName(SERIALIZED_NAME_PhotoUrls) + public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; + @SerializedName(SERIALIZED_NAME_PHOTO_URLS) private List photoUrls = new ArrayList(); - public static final String SERIALIZED_NAME_Tags = "tags"; - @SerializedName(SERIALIZED_NAME_Tags) + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) private List tags = null; /** @@ -102,8 +102,8 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; public Pet id(Long id) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index cfde51d8a9d7..c25d42c27242 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,12 +29,12 @@ */ public class ReadOnlyFirst { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Baz = "baz"; - @SerializedName(SERIALIZED_NAME_Baz) + public static final String SERIALIZED_NAME_BAZ = "baz"; + @SerializedName(SERIALIZED_NAME_BAZ) private String baz = null; /** diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java index 78be75ca241b..db6241ec143a 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,8 +29,8 @@ */ public class SpecialModelName { - public static final String SERIALIZED_NAME_$SpecialPropertyName = "$special[property.name]"; - @SerializedName(SERIALIZED_NAME_$SpecialPropertyName) + public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName = null; public SpecialModelName $specialPropertyName(Long $specialPropertyName) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java index dd24b1895555..c80a102aef4c 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/Tag.java @@ -29,12 +29,12 @@ */ public class Tag { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Tag id(Long id) { diff --git a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java index 1cb4b8a89a80..bcc3e9164dbf 100644 --- a/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2/src/main/java/org/openapitools/client/model/User.java @@ -29,36 +29,36 @@ */ public class User { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Username = "username"; - @SerializedName(SERIALIZED_NAME_Username) + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) private String username = null; - public static final String SERIALIZED_NAME_FirstName = "firstName"; - @SerializedName(SERIALIZED_NAME_FirstName) + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) private String firstName = null; - public static final String SERIALIZED_NAME_LastName = "lastName"; - @SerializedName(SERIALIZED_NAME_LastName) + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) private String lastName = null; - public static final String SERIALIZED_NAME_Email = "email"; - @SerializedName(SERIALIZED_NAME_Email) + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) private String email = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; - public static final String SERIALIZED_NAME_Phone = "phone"; - @SerializedName(SERIALIZED_NAME_Phone) + public static final String SERIALIZED_NAME_PHONE = "phone"; + @SerializedName(SERIALIZED_NAME_PHONE) private String phone = null; - public static final String SERIALIZED_NAME_UserStatus = "userStatus"; - @SerializedName(SERIALIZED_NAME_UserStatus) + public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; + @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus = null; public User id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx/docs/FakeApi.md index be38508ac266..d201b93a2a5f 100644 --- a/samples/client/petstore/java/retrofit2rx/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index c3ee6d14e6b9..af119dbf386d 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -32,12 +32,12 @@ */ public class AdditionalPropertiesClass { - public static final String SERIALIZED_NAME_MapProperty = "map_property"; - @SerializedName(SERIALIZED_NAME_MapProperty) + public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property"; + @SerializedName(SERIALIZED_NAME_MAP_PROPERTY) private Map mapProperty = null; - public static final String SERIALIZED_NAME_MapOfMapProperty = "map_of_map_property"; - @SerializedName(SERIALIZED_NAME_MapOfMapProperty) + public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY) private Map> mapOfMapProperty = null; public AdditionalPropertiesClass mapProperty(Map mapProperty) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Animal.java index 921305a27856..02469e22e51b 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Animal.java @@ -30,12 +30,12 @@ public class Animal { - public static final String SERIALIZED_NAME_ClassName = "className"; - @SerializedName(SERIALIZED_NAME_ClassName) + public static final String SERIALIZED_NAME_CLASS_NAME = "className"; + @SerializedName(SERIALIZED_NAME_CLASS_NAME) private String className = null; - public static final String SERIALIZED_NAME_Color = "color"; - @SerializedName(SERIALIZED_NAME_Color) + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) private String color = "red"; public Animal() { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 231b2332ba3f..fad705e0858b 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayArrayNumber = "ArrayArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 87446e7ce5b7..e48ac7c7afa7 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayNumber = "ArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; public ArrayOfNumberOnly arrayNumber(List arrayNumber) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayTest.java index 39d2bce3d8b2..f0b9ec4f4532 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -32,16 +32,16 @@ */ public class ArrayTest { - public static final String SERIALIZED_NAME_ArrayOfString = "array_of_string"; - @SerializedName(SERIALIZED_NAME_ArrayOfString) + public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; + @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) private List arrayOfString = null; - public static final String SERIALIZED_NAME_ArrayArrayOfInteger = "array_array_of_integer"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfInteger) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; - public static final String SERIALIZED_NAME_ArrayArrayOfModel = "array_array_of_model"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfModel) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; public ArrayTest arrayOfString(List arrayOfString) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Capitalization.java index 4158d604a1db..bd3be0876f61 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,28 +29,28 @@ */ public class Capitalization { - public static final String SERIALIZED_NAME_SmallCamel = "smallCamel"; - @SerializedName(SERIALIZED_NAME_SmallCamel) + public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; + @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) private String smallCamel = null; - public static final String SERIALIZED_NAME_CapitalCamel = "CapitalCamel"; - @SerializedName(SERIALIZED_NAME_CapitalCamel) + public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; + @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) private String capitalCamel = null; - public static final String SERIALIZED_NAME_SmallSnake = "small_Snake"; - @SerializedName(SERIALIZED_NAME_SmallSnake) + public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; + @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) private String smallSnake = null; - public static final String SERIALIZED_NAME_CapitalSnake = "Capital_Snake"; - @SerializedName(SERIALIZED_NAME_CapitalSnake) + public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; + @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) private String capitalSnake = null; - public static final String SERIALIZED_NAME_ScAETHFlowPoints = "SCA_ETH_Flow_Points"; - @SerializedName(SERIALIZED_NAME_ScAETHFlowPoints) + public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints = null; - public static final String SERIALIZED_NAME_ATTNAME = "ATT_NAME"; - @SerializedName(SERIALIZED_NAME_ATTNAME) + public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; + @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME = null; public Capitalization smallCamel(String smallCamel) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Cat.java index 504fab5f20e7..834be67f34f7 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Cat.java @@ -30,8 +30,8 @@ */ public class Cat extends Animal { - public static final String SERIALIZED_NAME_Declawed = "declawed"; - @SerializedName(SERIALIZED_NAME_Declawed) + public static final String SERIALIZED_NAME_DECLAWED = "declawed"; + @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed = null; public Cat declawed(Boolean declawed) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Category.java index 063c56fda010..7223fd282798 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Category.java @@ -29,12 +29,12 @@ */ public class Category { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Category id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ClassModel.java index 0f1b83287839..3150b5919b09 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing model with \"_class\" property") public class ClassModel { - public static final String SERIALIZED_NAME_PropertyClass = "_class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public ClassModel propertyClass(String propertyClass) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Client.java index 3084f329a469..219520a7ab1c 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Client.java @@ -29,8 +29,8 @@ */ public class Client { - public static final String SERIALIZED_NAME_Client = "client"; - @SerializedName(SERIALIZED_NAME_Client) + public static final String SERIALIZED_NAME_CLIENT = "client"; + @SerializedName(SERIALIZED_NAME_CLIENT) private String client = null; public Client client(String client) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Dog.java index 0610e11ea035..3c86defe3c87 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Dog.java @@ -30,8 +30,8 @@ */ public class Dog extends Animal { - public static final String SERIALIZED_NAME_Breed = "breed"; - @SerializedName(SERIALIZED_NAME_Breed) + public static final String SERIALIZED_NAME_BREED = "breed"; + @SerializedName(SERIALIZED_NAME_BREED) private String breed = null; public Dog breed(String breed) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java index a6c2db762bc3..e19123875058 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumArrays.java @@ -78,8 +78,8 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_JustSymbol = "just_symbol"; - @SerializedName(SERIALIZED_NAME_JustSymbol) + public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; + @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) private JustSymbolEnum justSymbol = null; /** @@ -129,8 +129,8 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_ArrayEnum = "array_enum"; - @SerializedName(SERIALIZED_NAME_ArrayEnum) + public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; + @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; public EnumArrays justSymbol(JustSymbolEnum justSymbol) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java index 21f8bc13eb16..4205836fa81a 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/EnumTest.java @@ -79,8 +79,8 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumString = "enum_string"; - @SerializedName(SERIALIZED_NAME_EnumString) + public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING) private EnumStringEnum enumString = null; /** @@ -132,8 +132,8 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } - public static final String SERIALIZED_NAME_EnumStringRequired = "enum_string_required"; - @SerializedName(SERIALIZED_NAME_EnumStringRequired) + public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired = null; /** @@ -183,8 +183,8 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumInteger = "enum_integer"; - @SerializedName(SERIALIZED_NAME_EnumInteger) + public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; + @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) private EnumIntegerEnum enumInteger = null; /** @@ -234,12 +234,12 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumNumber = "enum_number"; - @SerializedName(SERIALIZED_NAME_EnumNumber) + public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; + @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) private EnumNumberEnum enumNumber = null; - public static final String SERIALIZED_NAME_OuterEnum = "outerEnum"; - @SerializedName(SERIALIZED_NAME_OuterEnum) + public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; + @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum = null; public EnumTest enumString(EnumStringEnum enumString) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java index 5a6709bd4f19..528a49bac3fc 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,56 +34,56 @@ */ public class FormatTest { - public static final String SERIALIZED_NAME_Integer = "integer"; - @SerializedName(SERIALIZED_NAME_Integer) + public static final String SERIALIZED_NAME_INTEGER = "integer"; + @SerializedName(SERIALIZED_NAME_INTEGER) private Integer integer = null; - public static final String SERIALIZED_NAME_Int32 = "int32"; - @SerializedName(SERIALIZED_NAME_Int32) + public static final String SERIALIZED_NAME_INT32 = "int32"; + @SerializedName(SERIALIZED_NAME_INT32) private Integer int32 = null; - public static final String SERIALIZED_NAME_Int64 = "int64"; - @SerializedName(SERIALIZED_NAME_Int64) + public static final String SERIALIZED_NAME_INT64 = "int64"; + @SerializedName(SERIALIZED_NAME_INT64) private Long int64 = null; - public static final String SERIALIZED_NAME_Number = "number"; - @SerializedName(SERIALIZED_NAME_Number) + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) private BigDecimal number = null; - public static final String SERIALIZED_NAME_Float = "float"; - @SerializedName(SERIALIZED_NAME_Float) + public static final String SERIALIZED_NAME_FLOAT = "float"; + @SerializedName(SERIALIZED_NAME_FLOAT) private Float _float = null; - public static final String SERIALIZED_NAME_Double = "double"; - @SerializedName(SERIALIZED_NAME_Double) + public static final String SERIALIZED_NAME_DOUBLE = "double"; + @SerializedName(SERIALIZED_NAME_DOUBLE) private Double _double = null; - public static final String SERIALIZED_NAME_String = "string"; - @SerializedName(SERIALIZED_NAME_String) + public static final String SERIALIZED_NAME_STRING = "string"; + @SerializedName(SERIALIZED_NAME_STRING) private String string = null; - public static final String SERIALIZED_NAME_Byte = "byte"; - @SerializedName(SERIALIZED_NAME_Byte) + public static final String SERIALIZED_NAME_BYTE = "byte"; + @SerializedName(SERIALIZED_NAME_BYTE) private byte[] _byte = null; - public static final String SERIALIZED_NAME_Binary = "binary"; - @SerializedName(SERIALIZED_NAME_Binary) + public static final String SERIALIZED_NAME_BINARY = "binary"; + @SerializedName(SERIALIZED_NAME_BINARY) private File binary = null; - public static final String SERIALIZED_NAME_Date = "date"; - @SerializedName(SERIALIZED_NAME_Date) + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) private LocalDate date = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; public FormatTest integer(Integer integer) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 479456ef4601..602ff3afb430 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,12 +29,12 @@ */ public class HasOnlyReadOnly { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Foo = "foo"; - @SerializedName(SERIALIZED_NAME_Foo) + public static final String SERIALIZED_NAME_FOO = "foo"; + @SerializedName(SERIALIZED_NAME_FOO) private String foo = null; /** diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java index 30c1847f9e17..66a646f87738 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MapTest.java @@ -32,8 +32,8 @@ */ public class MapTest { - public static final String SERIALIZED_NAME_MapMapOfString = "map_map_of_string"; - @SerializedName(SERIALIZED_NAME_MapMapOfString) + public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; + @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -83,8 +83,8 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_MapOfEnumString = "map_of_enum_string"; - @SerializedName(SERIALIZED_NAME_MapOfEnumString) + public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public MapTest mapMapOfString(Map> mapMapOfString) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0d81089435bb..96a6bc245036 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -35,16 +35,16 @@ */ public class MixedPropertiesAndAdditionalPropertiesClass { - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Map = "map"; - @SerializedName(SERIALIZED_NAME_Map) + public static final String SERIALIZED_NAME_MAP = "map"; + @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Model200Response.java index d84e624a363b..fdc7ed42acb2 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Model200Response.java @@ -30,12 +30,12 @@ @ApiModel(description = "Model for testing model name starting with number") public class Model200Response { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_PropertyClass = "class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public Model200Response name(Integer name) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f328296e9486..1a871eeb59f6 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,16 +29,16 @@ */ public class ModelApiResponse { - public static final String SERIALIZED_NAME_Code = "code"; - @SerializedName(SERIALIZED_NAME_Code) + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) private Integer code = null; - public static final String SERIALIZED_NAME_Type = "type"; - @SerializedName(SERIALIZED_NAME_Type) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) private String type = null; - public static final String SERIALIZED_NAME_Message = "message"; - @SerializedName(SERIALIZED_NAME_Message) + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) private String message = null; public ModelApiResponse code(Integer code) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelReturn.java index 876b7099e56e..83e7b1c601b4 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing reserved words") public class ModelReturn { - public static final String SERIALIZED_NAME_Return = "return"; - @SerializedName(SERIALIZED_NAME_Return) + public static final String SERIALIZED_NAME_RETURN = "return"; + @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return = null; public ModelReturn _return(Integer _return) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Name.java index 5035d8d618cb..e88b3009cd64 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Name.java @@ -30,20 +30,20 @@ @ApiModel(description = "Model for testing model name same as property name") public class Name { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_SnakeCase = "snake_case"; - @SerializedName(SERIALIZED_NAME_SnakeCase) + public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; + @SerializedName(SERIALIZED_NAME_SNAKE_CASE) private Integer snakeCase = null; - public static final String SERIALIZED_NAME_Property = "property"; - @SerializedName(SERIALIZED_NAME_Property) + public static final String SERIALIZED_NAME_PROPERTY = "property"; + @SerializedName(SERIALIZED_NAME_PROPERTY) private String property = null; - public static final String SERIALIZED_NAME_123number = "123Number"; - @SerializedName(SERIALIZED_NAME_123number) + public static final String SERIALIZED_NAME_123NUMBER = "123Number"; + @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number = null; public Name name(Integer name) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/NumberOnly.java index b2507f5469f8..81cb0ece54da 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,8 +30,8 @@ */ public class NumberOnly { - public static final String SERIALIZED_NAME_JustNumber = "JustNumber"; - @SerializedName(SERIALIZED_NAME_JustNumber) + public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; + @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber = null; public NumberOnly justNumber(BigDecimal justNumber) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java index 324382429d95..1b39885d8e6e 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Order.java @@ -30,20 +30,20 @@ */ public class Order { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_PetId = "petId"; - @SerializedName(SERIALIZED_NAME_PetId) + public static final String SERIALIZED_NAME_PET_ID = "petId"; + @SerializedName(SERIALIZED_NAME_PET_ID) private Long petId = null; - public static final String SERIALIZED_NAME_Quantity = "quantity"; - @SerializedName(SERIALIZED_NAME_Quantity) + public static final String SERIALIZED_NAME_QUANTITY = "quantity"; + @SerializedName(SERIALIZED_NAME_QUANTITY) private Integer quantity = null; - public static final String SERIALIZED_NAME_ShipDate = "shipDate"; - @SerializedName(SERIALIZED_NAME_ShipDate) + public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; + @SerializedName(SERIALIZED_NAME_SHIP_DATE) private OffsetDateTime shipDate = null; /** @@ -95,12 +95,12 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; - public static final String SERIALIZED_NAME_Complete = "complete"; - @SerializedName(SERIALIZED_NAME_Complete) + public static final String SERIALIZED_NAME_COMPLETE = "complete"; + @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; public Order id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/OuterComposite.java index 25489f4ce420..63b156072872 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,16 +30,16 @@ */ public class OuterComposite { - public static final String SERIALIZED_NAME_MyNumber = "my_number"; - @SerializedName(SERIALIZED_NAME_MyNumber) + public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; + @SerializedName(SERIALIZED_NAME_MY_NUMBER) private BigDecimal myNumber = null; - public static final String SERIALIZED_NAME_MyString = "my_string"; - @SerializedName(SERIALIZED_NAME_MyString) + public static final String SERIALIZED_NAME_MY_STRING = "my_string"; + @SerializedName(SERIALIZED_NAME_MY_STRING) private String myString = null; - public static final String SERIALIZED_NAME_MyBoolean = "my_boolean"; - @SerializedName(SERIALIZED_NAME_MyBoolean) + public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; + @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean = null; public OuterComposite myNumber(BigDecimal myNumber) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java index 29d941716368..4a7d067f0196 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Pet.java @@ -33,24 +33,24 @@ */ public class Pet { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Category = "category"; - @SerializedName(SERIALIZED_NAME_Category) + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) private Category category = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; - public static final String SERIALIZED_NAME_PhotoUrls = "photoUrls"; - @SerializedName(SERIALIZED_NAME_PhotoUrls) + public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; + @SerializedName(SERIALIZED_NAME_PHOTO_URLS) private List photoUrls = new ArrayList(); - public static final String SERIALIZED_NAME_Tags = "tags"; - @SerializedName(SERIALIZED_NAME_Tags) + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) private List tags = null; /** @@ -102,8 +102,8 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; public Pet id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index cfde51d8a9d7..c25d42c27242 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,12 +29,12 @@ */ public class ReadOnlyFirst { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Baz = "baz"; - @SerializedName(SERIALIZED_NAME_Baz) + public static final String SERIALIZED_NAME_BAZ = "baz"; + @SerializedName(SERIALIZED_NAME_BAZ) private String baz = null; /** diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/SpecialModelName.java index 78be75ca241b..db6241ec143a 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,8 +29,8 @@ */ public class SpecialModelName { - public static final String SERIALIZED_NAME_$SpecialPropertyName = "$special[property.name]"; - @SerializedName(SERIALIZED_NAME_$SpecialPropertyName) + public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName = null; public SpecialModelName $specialPropertyName(Long $specialPropertyName) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Tag.java index dd24b1895555..c80a102aef4c 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/Tag.java @@ -29,12 +29,12 @@ */ public class Tag { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Tag id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/User.java index 1cb4b8a89a80..bcc3e9164dbf 100644 --- a/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2rx/src/main/java/org/openapitools/client/model/User.java @@ -29,36 +29,36 @@ */ public class User { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Username = "username"; - @SerializedName(SERIALIZED_NAME_Username) + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) private String username = null; - public static final String SERIALIZED_NAME_FirstName = "firstName"; - @SerializedName(SERIALIZED_NAME_FirstName) + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) private String firstName = null; - public static final String SERIALIZED_NAME_LastName = "lastName"; - @SerializedName(SERIALIZED_NAME_LastName) + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) private String lastName = null; - public static final String SERIALIZED_NAME_Email = "email"; - @SerializedName(SERIALIZED_NAME_Email) + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) private String email = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; - public static final String SERIALIZED_NAME_Phone = "phone"; - @SerializedName(SERIALIZED_NAME_Phone) + public static final String SERIALIZED_NAME_PHONE = "phone"; + @SerializedName(SERIALIZED_NAME_PHONE) private String phone = null; - public static final String SERIALIZED_NAME_UserStatus = "userStatus"; - @SerializedName(SERIALIZED_NAME_UserStatus) + public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; + @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus = null; public User id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md index be38508ac266..d201b93a2a5f 100644 --- a/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md +++ b/samples/client/petstore/java/retrofit2rx2/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java index c3ee6d14e6b9..af119dbf386d 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/AdditionalPropertiesClass.java @@ -32,12 +32,12 @@ */ public class AdditionalPropertiesClass { - public static final String SERIALIZED_NAME_MapProperty = "map_property"; - @SerializedName(SERIALIZED_NAME_MapProperty) + public static final String SERIALIZED_NAME_MAP_PROPERTY = "map_property"; + @SerializedName(SERIALIZED_NAME_MAP_PROPERTY) private Map mapProperty = null; - public static final String SERIALIZED_NAME_MapOfMapProperty = "map_of_map_property"; - @SerializedName(SERIALIZED_NAME_MapOfMapProperty) + public static final String SERIALIZED_NAME_MAP_OF_MAP_PROPERTY = "map_of_map_property"; + @SerializedName(SERIALIZED_NAME_MAP_OF_MAP_PROPERTY) private Map> mapOfMapProperty = null; public AdditionalPropertiesClass mapProperty(Map mapProperty) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java index 921305a27856..02469e22e51b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Animal.java @@ -30,12 +30,12 @@ public class Animal { - public static final String SERIALIZED_NAME_ClassName = "className"; - @SerializedName(SERIALIZED_NAME_ClassName) + public static final String SERIALIZED_NAME_CLASS_NAME = "className"; + @SerializedName(SERIALIZED_NAME_CLASS_NAME) private String className = null; - public static final String SERIALIZED_NAME_Color = "color"; - @SerializedName(SERIALIZED_NAME_Color) + public static final String SERIALIZED_NAME_COLOR = "color"; + @SerializedName(SERIALIZED_NAME_COLOR) private String color = "red"; public Animal() { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java index 231b2332ba3f..fad705e0858b 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayArrayNumber = "ArrayArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_NUMBER) private List> arrayArrayNumber = null; public ArrayOfArrayOfNumberOnly arrayArrayNumber(List> arrayArrayNumber) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java index 87446e7ce5b7..e48ac7c7afa7 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayOfNumberOnly.java @@ -32,8 +32,8 @@ */ public class ArrayOfNumberOnly { - public static final String SERIALIZED_NAME_ArrayNumber = "ArrayNumber"; - @SerializedName(SERIALIZED_NAME_ArrayNumber) + public static final String SERIALIZED_NAME_ARRAY_NUMBER = "ArrayNumber"; + @SerializedName(SERIALIZED_NAME_ARRAY_NUMBER) private List arrayNumber = null; public ArrayOfNumberOnly arrayNumber(List arrayNumber) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java index 39d2bce3d8b2..f0b9ec4f4532 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ArrayTest.java @@ -32,16 +32,16 @@ */ public class ArrayTest { - public static final String SERIALIZED_NAME_ArrayOfString = "array_of_string"; - @SerializedName(SERIALIZED_NAME_ArrayOfString) + public static final String SERIALIZED_NAME_ARRAY_OF_STRING = "array_of_string"; + @SerializedName(SERIALIZED_NAME_ARRAY_OF_STRING) private List arrayOfString = null; - public static final String SERIALIZED_NAME_ArrayArrayOfInteger = "array_array_of_integer"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfInteger) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_INTEGER) private List> arrayArrayOfInteger = null; - public static final String SERIALIZED_NAME_ArrayArrayOfModel = "array_array_of_model"; - @SerializedName(SERIALIZED_NAME_ArrayArrayOfModel) + public static final String SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL = "array_array_of_model"; + @SerializedName(SERIALIZED_NAME_ARRAY_ARRAY_OF_MODEL) private List> arrayArrayOfModel = null; public ArrayTest arrayOfString(List arrayOfString) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java index 4158d604a1db..bd3be0876f61 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Capitalization.java @@ -29,28 +29,28 @@ */ public class Capitalization { - public static final String SERIALIZED_NAME_SmallCamel = "smallCamel"; - @SerializedName(SERIALIZED_NAME_SmallCamel) + public static final String SERIALIZED_NAME_SMALL_CAMEL = "smallCamel"; + @SerializedName(SERIALIZED_NAME_SMALL_CAMEL) private String smallCamel = null; - public static final String SERIALIZED_NAME_CapitalCamel = "CapitalCamel"; - @SerializedName(SERIALIZED_NAME_CapitalCamel) + public static final String SERIALIZED_NAME_CAPITAL_CAMEL = "CapitalCamel"; + @SerializedName(SERIALIZED_NAME_CAPITAL_CAMEL) private String capitalCamel = null; - public static final String SERIALIZED_NAME_SmallSnake = "small_Snake"; - @SerializedName(SERIALIZED_NAME_SmallSnake) + public static final String SERIALIZED_NAME_SMALL_SNAKE = "small_Snake"; + @SerializedName(SERIALIZED_NAME_SMALL_SNAKE) private String smallSnake = null; - public static final String SERIALIZED_NAME_CapitalSnake = "Capital_Snake"; - @SerializedName(SERIALIZED_NAME_CapitalSnake) + public static final String SERIALIZED_NAME_CAPITAL_SNAKE = "Capital_Snake"; + @SerializedName(SERIALIZED_NAME_CAPITAL_SNAKE) private String capitalSnake = null; - public static final String SERIALIZED_NAME_ScAETHFlowPoints = "SCA_ETH_Flow_Points"; - @SerializedName(SERIALIZED_NAME_ScAETHFlowPoints) + public static final String SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points"; + @SerializedName(SERIALIZED_NAME_SC_A_E_T_H_FLOW_POINTS) private String scAETHFlowPoints = null; - public static final String SERIALIZED_NAME_ATTNAME = "ATT_NAME"; - @SerializedName(SERIALIZED_NAME_ATTNAME) + public static final String SERIALIZED_NAME_A_T_T_N_A_M_E = "ATT_NAME"; + @SerializedName(SERIALIZED_NAME_A_T_T_N_A_M_E) private String ATT_NAME = null; public Capitalization smallCamel(String smallCamel) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java index 504fab5f20e7..834be67f34f7 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Cat.java @@ -30,8 +30,8 @@ */ public class Cat extends Animal { - public static final String SERIALIZED_NAME_Declawed = "declawed"; - @SerializedName(SERIALIZED_NAME_Declawed) + public static final String SERIALIZED_NAME_DECLAWED = "declawed"; + @SerializedName(SERIALIZED_NAME_DECLAWED) private Boolean declawed = null; public Cat declawed(Boolean declawed) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java index 063c56fda010..7223fd282798 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Category.java @@ -29,12 +29,12 @@ */ public class Category { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Category id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java index 0f1b83287839..3150b5919b09 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ClassModel.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing model with \"_class\" property") public class ClassModel { - public static final String SERIALIZED_NAME_PropertyClass = "_class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "_class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public ClassModel propertyClass(String propertyClass) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java index 3084f329a469..219520a7ab1c 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Client.java @@ -29,8 +29,8 @@ */ public class Client { - public static final String SERIALIZED_NAME_Client = "client"; - @SerializedName(SERIALIZED_NAME_Client) + public static final String SERIALIZED_NAME_CLIENT = "client"; + @SerializedName(SERIALIZED_NAME_CLIENT) private String client = null; public Client client(String client) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java index 0610e11ea035..3c86defe3c87 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Dog.java @@ -30,8 +30,8 @@ */ public class Dog extends Animal { - public static final String SERIALIZED_NAME_Breed = "breed"; - @SerializedName(SERIALIZED_NAME_Breed) + public static final String SERIALIZED_NAME_BREED = "breed"; + @SerializedName(SERIALIZED_NAME_BREED) private String breed = null; public Dog breed(String breed) { 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 a6c2db762bc3..e19123875058 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 @@ -78,8 +78,8 @@ public JustSymbolEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_JustSymbol = "just_symbol"; - @SerializedName(SERIALIZED_NAME_JustSymbol) + public static final String SERIALIZED_NAME_JUST_SYMBOL = "just_symbol"; + @SerializedName(SERIALIZED_NAME_JUST_SYMBOL) private JustSymbolEnum justSymbol = null; /** @@ -129,8 +129,8 @@ public ArrayEnumEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_ArrayEnum = "array_enum"; - @SerializedName(SERIALIZED_NAME_ArrayEnum) + public static final String SERIALIZED_NAME_ARRAY_ENUM = "array_enum"; + @SerializedName(SERIALIZED_NAME_ARRAY_ENUM) private List arrayEnum = null; public EnumArrays justSymbol(JustSymbolEnum justSymbol) { 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 21f8bc13eb16..4205836fa81a 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 @@ -79,8 +79,8 @@ public EnumStringEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumString = "enum_string"; - @SerializedName(SERIALIZED_NAME_EnumString) + public static final String SERIALIZED_NAME_ENUM_STRING = "enum_string"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING) private EnumStringEnum enumString = null; /** @@ -132,8 +132,8 @@ public EnumStringRequiredEnum read(final JsonReader jsonReader) throws IOExcepti } } - public static final String SERIALIZED_NAME_EnumStringRequired = "enum_string_required"; - @SerializedName(SERIALIZED_NAME_EnumStringRequired) + public static final String SERIALIZED_NAME_ENUM_STRING_REQUIRED = "enum_string_required"; + @SerializedName(SERIALIZED_NAME_ENUM_STRING_REQUIRED) private EnumStringRequiredEnum enumStringRequired = null; /** @@ -183,8 +183,8 @@ public EnumIntegerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumInteger = "enum_integer"; - @SerializedName(SERIALIZED_NAME_EnumInteger) + public static final String SERIALIZED_NAME_ENUM_INTEGER = "enum_integer"; + @SerializedName(SERIALIZED_NAME_ENUM_INTEGER) private EnumIntegerEnum enumInteger = null; /** @@ -234,12 +234,12 @@ public EnumNumberEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_EnumNumber = "enum_number"; - @SerializedName(SERIALIZED_NAME_EnumNumber) + public static final String SERIALIZED_NAME_ENUM_NUMBER = "enum_number"; + @SerializedName(SERIALIZED_NAME_ENUM_NUMBER) private EnumNumberEnum enumNumber = null; - public static final String SERIALIZED_NAME_OuterEnum = "outerEnum"; - @SerializedName(SERIALIZED_NAME_OuterEnum) + public static final String SERIALIZED_NAME_OUTER_ENUM = "outerEnum"; + @SerializedName(SERIALIZED_NAME_OUTER_ENUM) private OuterEnum outerEnum = null; public EnumTest enumString(EnumStringEnum enumString) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java index 5a6709bd4f19..528a49bac3fc 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/FormatTest.java @@ -34,56 +34,56 @@ */ public class FormatTest { - public static final String SERIALIZED_NAME_Integer = "integer"; - @SerializedName(SERIALIZED_NAME_Integer) + public static final String SERIALIZED_NAME_INTEGER = "integer"; + @SerializedName(SERIALIZED_NAME_INTEGER) private Integer integer = null; - public static final String SERIALIZED_NAME_Int32 = "int32"; - @SerializedName(SERIALIZED_NAME_Int32) + public static final String SERIALIZED_NAME_INT32 = "int32"; + @SerializedName(SERIALIZED_NAME_INT32) private Integer int32 = null; - public static final String SERIALIZED_NAME_Int64 = "int64"; - @SerializedName(SERIALIZED_NAME_Int64) + public static final String SERIALIZED_NAME_INT64 = "int64"; + @SerializedName(SERIALIZED_NAME_INT64) private Long int64 = null; - public static final String SERIALIZED_NAME_Number = "number"; - @SerializedName(SERIALIZED_NAME_Number) + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) private BigDecimal number = null; - public static final String SERIALIZED_NAME_Float = "float"; - @SerializedName(SERIALIZED_NAME_Float) + public static final String SERIALIZED_NAME_FLOAT = "float"; + @SerializedName(SERIALIZED_NAME_FLOAT) private Float _float = null; - public static final String SERIALIZED_NAME_Double = "double"; - @SerializedName(SERIALIZED_NAME_Double) + public static final String SERIALIZED_NAME_DOUBLE = "double"; + @SerializedName(SERIALIZED_NAME_DOUBLE) private Double _double = null; - public static final String SERIALIZED_NAME_String = "string"; - @SerializedName(SERIALIZED_NAME_String) + public static final String SERIALIZED_NAME_STRING = "string"; + @SerializedName(SERIALIZED_NAME_STRING) private String string = null; - public static final String SERIALIZED_NAME_Byte = "byte"; - @SerializedName(SERIALIZED_NAME_Byte) + public static final String SERIALIZED_NAME_BYTE = "byte"; + @SerializedName(SERIALIZED_NAME_BYTE) private byte[] _byte = null; - public static final String SERIALIZED_NAME_Binary = "binary"; - @SerializedName(SERIALIZED_NAME_Binary) + public static final String SERIALIZED_NAME_BINARY = "binary"; + @SerializedName(SERIALIZED_NAME_BINARY) private File binary = null; - public static final String SERIALIZED_NAME_Date = "date"; - @SerializedName(SERIALIZED_NAME_Date) + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) private LocalDate date = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; public FormatTest integer(Integer integer) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java index 479456ef4601..602ff3afb430 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/HasOnlyReadOnly.java @@ -29,12 +29,12 @@ */ public class HasOnlyReadOnly { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Foo = "foo"; - @SerializedName(SERIALIZED_NAME_Foo) + public static final String SERIALIZED_NAME_FOO = "foo"; + @SerializedName(SERIALIZED_NAME_FOO) private String foo = null; /** 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 30c1847f9e17..66a646f87738 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 @@ -32,8 +32,8 @@ */ public class MapTest { - public static final String SERIALIZED_NAME_MapMapOfString = "map_map_of_string"; - @SerializedName(SERIALIZED_NAME_MapMapOfString) + public static final String SERIALIZED_NAME_MAP_MAP_OF_STRING = "map_map_of_string"; + @SerializedName(SERIALIZED_NAME_MAP_MAP_OF_STRING) private Map> mapMapOfString = null; /** @@ -83,8 +83,8 @@ public InnerEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_MapOfEnumString = "map_of_enum_string"; - @SerializedName(SERIALIZED_NAME_MapOfEnumString) + public static final String SERIALIZED_NAME_MAP_OF_ENUM_STRING = "map_of_enum_string"; + @SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING) private Map mapOfEnumString = null; public MapTest mapMapOfString(Map> mapMapOfString) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java index 0d81089435bb..96a6bc245036 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/MixedPropertiesAndAdditionalPropertiesClass.java @@ -35,16 +35,16 @@ */ public class MixedPropertiesAndAdditionalPropertiesClass { - public static final String SERIALIZED_NAME_Uuid = "uuid"; - @SerializedName(SERIALIZED_NAME_Uuid) + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) private UUID uuid = null; - public static final String SERIALIZED_NAME_DateTime = "dateTime"; - @SerializedName(SERIALIZED_NAME_DateTime) + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) private OffsetDateTime dateTime = null; - public static final String SERIALIZED_NAME_Map = "map"; - @SerializedName(SERIALIZED_NAME_Map) + public static final String SERIALIZED_NAME_MAP = "map"; + @SerializedName(SERIALIZED_NAME_MAP) private Map map = null; public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java index d84e624a363b..fdc7ed42acb2 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Model200Response.java @@ -30,12 +30,12 @@ @ApiModel(description = "Model for testing model name starting with number") public class Model200Response { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_PropertyClass = "class"; - @SerializedName(SERIALIZED_NAME_PropertyClass) + public static final String SERIALIZED_NAME_PROPERTY_CLASS = "class"; + @SerializedName(SERIALIZED_NAME_PROPERTY_CLASS) private String propertyClass = null; public Model200Response name(Integer name) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java index f328296e9486..1a871eeb59f6 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelApiResponse.java @@ -29,16 +29,16 @@ */ public class ModelApiResponse { - public static final String SERIALIZED_NAME_Code = "code"; - @SerializedName(SERIALIZED_NAME_Code) + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) private Integer code = null; - public static final String SERIALIZED_NAME_Type = "type"; - @SerializedName(SERIALIZED_NAME_Type) + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) private String type = null; - public static final String SERIALIZED_NAME_Message = "message"; - @SerializedName(SERIALIZED_NAME_Message) + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) private String message = null; public ModelApiResponse code(Integer code) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java index 876b7099e56e..83e7b1c601b4 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ModelReturn.java @@ -30,8 +30,8 @@ @ApiModel(description = "Model for testing reserved words") public class ModelReturn { - public static final String SERIALIZED_NAME_Return = "return"; - @SerializedName(SERIALIZED_NAME_Return) + public static final String SERIALIZED_NAME_RETURN = "return"; + @SerializedName(SERIALIZED_NAME_RETURN) private Integer _return = null; public ModelReturn _return(Integer _return) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java index 5035d8d618cb..e88b3009cd64 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Name.java @@ -30,20 +30,20 @@ @ApiModel(description = "Model for testing model name same as property name") public class Name { - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private Integer name = null; - public static final String SERIALIZED_NAME_SnakeCase = "snake_case"; - @SerializedName(SERIALIZED_NAME_SnakeCase) + public static final String SERIALIZED_NAME_SNAKE_CASE = "snake_case"; + @SerializedName(SERIALIZED_NAME_SNAKE_CASE) private Integer snakeCase = null; - public static final String SERIALIZED_NAME_Property = "property"; - @SerializedName(SERIALIZED_NAME_Property) + public static final String SERIALIZED_NAME_PROPERTY = "property"; + @SerializedName(SERIALIZED_NAME_PROPERTY) private String property = null; - public static final String SERIALIZED_NAME_123number = "123Number"; - @SerializedName(SERIALIZED_NAME_123number) + public static final String SERIALIZED_NAME_123NUMBER = "123Number"; + @SerializedName(SERIALIZED_NAME_123NUMBER) private Integer _123number = null; public Name name(Integer name) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java index b2507f5469f8..81cb0ece54da 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/NumberOnly.java @@ -30,8 +30,8 @@ */ public class NumberOnly { - public static final String SERIALIZED_NAME_JustNumber = "JustNumber"; - @SerializedName(SERIALIZED_NAME_JustNumber) + public static final String SERIALIZED_NAME_JUST_NUMBER = "JustNumber"; + @SerializedName(SERIALIZED_NAME_JUST_NUMBER) private BigDecimal justNumber = null; public NumberOnly justNumber(BigDecimal justNumber) { 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 324382429d95..1b39885d8e6e 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 @@ -30,20 +30,20 @@ */ public class Order { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_PetId = "petId"; - @SerializedName(SERIALIZED_NAME_PetId) + public static final String SERIALIZED_NAME_PET_ID = "petId"; + @SerializedName(SERIALIZED_NAME_PET_ID) private Long petId = null; - public static final String SERIALIZED_NAME_Quantity = "quantity"; - @SerializedName(SERIALIZED_NAME_Quantity) + public static final String SERIALIZED_NAME_QUANTITY = "quantity"; + @SerializedName(SERIALIZED_NAME_QUANTITY) private Integer quantity = null; - public static final String SERIALIZED_NAME_ShipDate = "shipDate"; - @SerializedName(SERIALIZED_NAME_ShipDate) + public static final String SERIALIZED_NAME_SHIP_DATE = "shipDate"; + @SerializedName(SERIALIZED_NAME_SHIP_DATE) private OffsetDateTime shipDate = null; /** @@ -95,12 +95,12 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; - public static final String SERIALIZED_NAME_Complete = "complete"; - @SerializedName(SERIALIZED_NAME_Complete) + public static final String SERIALIZED_NAME_COMPLETE = "complete"; + @SerializedName(SERIALIZED_NAME_COMPLETE) private Boolean complete = false; public Order id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java index 25489f4ce420..63b156072872 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/OuterComposite.java @@ -30,16 +30,16 @@ */ public class OuterComposite { - public static final String SERIALIZED_NAME_MyNumber = "my_number"; - @SerializedName(SERIALIZED_NAME_MyNumber) + public static final String SERIALIZED_NAME_MY_NUMBER = "my_number"; + @SerializedName(SERIALIZED_NAME_MY_NUMBER) private BigDecimal myNumber = null; - public static final String SERIALIZED_NAME_MyString = "my_string"; - @SerializedName(SERIALIZED_NAME_MyString) + public static final String SERIALIZED_NAME_MY_STRING = "my_string"; + @SerializedName(SERIALIZED_NAME_MY_STRING) private String myString = null; - public static final String SERIALIZED_NAME_MyBoolean = "my_boolean"; - @SerializedName(SERIALIZED_NAME_MyBoolean) + public static final String SERIALIZED_NAME_MY_BOOLEAN = "my_boolean"; + @SerializedName(SERIALIZED_NAME_MY_BOOLEAN) private Boolean myBoolean = null; public OuterComposite myNumber(BigDecimal myNumber) { 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 29d941716368..4a7d067f0196 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 @@ -33,24 +33,24 @@ */ public class Pet { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Category = "category"; - @SerializedName(SERIALIZED_NAME_Category) + public static final String SERIALIZED_NAME_CATEGORY = "category"; + @SerializedName(SERIALIZED_NAME_CATEGORY) private Category category = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; - public static final String SERIALIZED_NAME_PhotoUrls = "photoUrls"; - @SerializedName(SERIALIZED_NAME_PhotoUrls) + public static final String SERIALIZED_NAME_PHOTO_URLS = "photoUrls"; + @SerializedName(SERIALIZED_NAME_PHOTO_URLS) private List photoUrls = new ArrayList(); - public static final String SERIALIZED_NAME_Tags = "tags"; - @SerializedName(SERIALIZED_NAME_Tags) + public static final String SERIALIZED_NAME_TAGS = "tags"; + @SerializedName(SERIALIZED_NAME_TAGS) private List tags = null; /** @@ -102,8 +102,8 @@ public StatusEnum read(final JsonReader jsonReader) throws IOException { } } - public static final String SERIALIZED_NAME_Status = "status"; - @SerializedName(SERIALIZED_NAME_Status) + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) private StatusEnum status = null; public Pet id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java index cfde51d8a9d7..c25d42c27242 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/ReadOnlyFirst.java @@ -29,12 +29,12 @@ */ public class ReadOnlyFirst { - public static final String SERIALIZED_NAME_Bar = "bar"; - @SerializedName(SERIALIZED_NAME_Bar) + public static final String SERIALIZED_NAME_BAR = "bar"; + @SerializedName(SERIALIZED_NAME_BAR) private String bar = null; - public static final String SERIALIZED_NAME_Baz = "baz"; - @SerializedName(SERIALIZED_NAME_Baz) + public static final String SERIALIZED_NAME_BAZ = "baz"; + @SerializedName(SERIALIZED_NAME_BAZ) private String baz = null; /** diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java index 78be75ca241b..db6241ec143a 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/SpecialModelName.java @@ -29,8 +29,8 @@ */ public class SpecialModelName { - public static final String SERIALIZED_NAME_$SpecialPropertyName = "$special[property.name]"; - @SerializedName(SERIALIZED_NAME_$SpecialPropertyName) + public static final String SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; + @SerializedName(SERIALIZED_NAME_$_SPECIAL_PROPERTY_NAME) private Long $specialPropertyName = null; public SpecialModelName $specialPropertyName(Long $specialPropertyName) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java index dd24b1895555..c80a102aef4c 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/Tag.java @@ -29,12 +29,12 @@ */ public class Tag { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Name = "name"; - @SerializedName(SERIALIZED_NAME_Name) + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) private String name = null; public Tag id(Long id) { diff --git a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java index 1cb4b8a89a80..bcc3e9164dbf 100644 --- a/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java +++ b/samples/client/petstore/java/retrofit2rx2/src/main/java/org/openapitools/client/model/User.java @@ -29,36 +29,36 @@ */ public class User { - public static final String SERIALIZED_NAME_Id = "id"; - @SerializedName(SERIALIZED_NAME_Id) + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) private Long id = null; - public static final String SERIALIZED_NAME_Username = "username"; - @SerializedName(SERIALIZED_NAME_Username) + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) private String username = null; - public static final String SERIALIZED_NAME_FirstName = "firstName"; - @SerializedName(SERIALIZED_NAME_FirstName) + public static final String SERIALIZED_NAME_FIRST_NAME = "firstName"; + @SerializedName(SERIALIZED_NAME_FIRST_NAME) private String firstName = null; - public static final String SERIALIZED_NAME_LastName = "lastName"; - @SerializedName(SERIALIZED_NAME_LastName) + public static final String SERIALIZED_NAME_LAST_NAME = "lastName"; + @SerializedName(SERIALIZED_NAME_LAST_NAME) private String lastName = null; - public static final String SERIALIZED_NAME_Email = "email"; - @SerializedName(SERIALIZED_NAME_Email) + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) private String email = null; - public static final String SERIALIZED_NAME_Password = "password"; - @SerializedName(SERIALIZED_NAME_Password) + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) private String password = null; - public static final String SERIALIZED_NAME_Phone = "phone"; - @SerializedName(SERIALIZED_NAME_Phone) + public static final String SERIALIZED_NAME_PHONE = "phone"; + @SerializedName(SERIALIZED_NAME_PHONE) private String phone = null; - public static final String SERIALIZED_NAME_UserStatus = "userStatus"; - @SerializedName(SERIALIZED_NAME_UserStatus) + public static final String SERIALIZED_NAME_USER_STATUS = "userStatus"; + @SerializedName(SERIALIZED_NAME_USER_STATUS) private Integer userStatus = null; public User id(Long id) { diff --git a/samples/client/petstore/java/vertx/docs/FakeApi.md b/samples/client/petstore/java/vertx/docs/FakeApi.md index 8666fb797286..bee2976e872e 100644 --- a/samples/client/petstore/java/vertx/docs/FakeApi.md +++ b/samples/client/petstore/java/vertx/docs/FakeApi.md @@ -406,7 +406,7 @@ Name | Type | Description | Notes **enumQueryString** | **String**| Query parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] **enumQueryInteger** | **Integer**| Query parameter enum test (double) | [optional] [enum: 1, -2] **enumQueryDouble** | **Double**| Query parameter enum test (double) | [optional] [enum: 1.1, -1.2] - **enumFormStringArray** | **List<String>**| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] + **enumFormStringArray** | [**List<String>**](String.md)| Form parameter enum test (string array) | [optional] [default to $] [enum: >, $] **enumFormString** | **String**| Form parameter enum test (string) | [optional] [default to -efg] [enum: _abc, -efg, (xyz)] ### Return type