forked from loafle/openapi-generator-original
[java][client][jax-rs] Add a constant for Jackson @JsonProperty (#3560)
This commit is contained in:
parent
65c7c1b39b
commit
1ab7b9ceb6
@ -20,7 +20,8 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
|
||||
{{/isContainer}}
|
||||
{{/isEnum}}
|
||||
{{#jackson}}
|
||||
@JsonProperty("{{baseName}}")
|
||||
public static final String JSON_PROPERTY_{{nameInSnakeCase}} = "{{baseName}}";
|
||||
@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}})
|
||||
{{#withXml}}
|
||||
{{^isContainer}}
|
||||
@JacksonXmlProperty({{#isXmlAttribute}}isAttribute = true, {{/isXmlAttribute}}{{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}localName = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
|
||||
|
@ -16,10 +16,12 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
||||
{{/isContainer}}
|
||||
{{/isEnum}}
|
||||
{{#jackson}}
|
||||
@JsonProperty("{{baseName}}")
|
||||
public static final String JSON_PROPERTY_{{nameInSnakeCase}} = "{{baseName}}";
|
||||
@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}})
|
||||
{{/jackson}}
|
||||
{{#gson}}
|
||||
@SerializedName("{{baseName}}")
|
||||
public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}";
|
||||
@SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}})
|
||||
{{/gson}}
|
||||
{{#isContainer}}
|
||||
private {{{datatypeWithEnum}}} {{name}}{{#required}} = {{{defaultValue}}}{{/required}}{{^required}} = null{{/required}};
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesAnyType name(String name) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesArray name(String name) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesBoolean name(String name) {
|
||||
|
@ -30,37 +30,48 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesClass {
|
||||
@JsonProperty("map_string")
|
||||
public static final String JSON_PROPERTY_MAP_STRING = "map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
||||
private Map<String, String> mapString = new HashMap<String, String>();
|
||||
|
||||
@JsonProperty("map_number")
|
||||
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||
private Map<String, BigDecimal> mapNumber = new HashMap<String, BigDecimal>();
|
||||
|
||||
@JsonProperty("map_integer")
|
||||
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
||||
private Map<String, Integer> mapInteger = new HashMap<String, Integer>();
|
||||
|
||||
@JsonProperty("map_boolean")
|
||||
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
||||
private Map<String, Boolean> mapBoolean = new HashMap<String, Boolean>();
|
||||
|
||||
@JsonProperty("map_array_integer")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
||||
private Map<String, List<Integer>> mapArrayInteger = new HashMap<String, List<Integer>>();
|
||||
|
||||
@JsonProperty("map_array_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
||||
private Map<String, List<Object>> mapArrayAnytype = new HashMap<String, List<Object>>();
|
||||
|
||||
@JsonProperty("map_map_string")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
||||
private Map<String, Map<String, String>> mapMapString = new HashMap<String, Map<String, String>>();
|
||||
|
||||
@JsonProperty("map_map_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<String, Map<String, Object>>();
|
||||
|
||||
@JsonProperty("anytype_1")
|
||||
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
||||
private Object anytype1 = null;
|
||||
|
||||
@JsonProperty("anytype_2")
|
||||
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
|
||||
private Object anytype2 = null;
|
||||
|
||||
@JsonProperty("anytype_3")
|
||||
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
|
||||
private Object anytype3 = null;
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesInteger name(String name) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesNumber name(String name) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesObject name(String name) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesString name(String name) {
|
||||
|
@ -34,10 +34,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
})
|
||||
|
||||
public class Animal {
|
||||
@JsonProperty("className")
|
||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
||||
private String className;
|
||||
|
||||
@JsonProperty("color")
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
private String color = "red";
|
||||
|
||||
public Animal className(String className) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
||||
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||
|
||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class ArrayOfNumberOnly {
|
||||
@JsonProperty("ArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
||||
|
||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
|
@ -29,13 +29,16 @@ import org.openapitools.client.model.ReadOnlyFirst;
|
||||
*/
|
||||
|
||||
public class ArrayTest {
|
||||
@JsonProperty("array_of_string")
|
||||
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
||||
private List<String> arrayOfString = new ArrayList<String>();
|
||||
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
||||
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||
|
||||
@JsonProperty("array_array_of_model")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
|
@ -26,22 +26,28 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class Capitalization {
|
||||
@JsonProperty("smallCamel")
|
||||
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
|
||||
private String smallCamel;
|
||||
|
||||
@JsonProperty("CapitalCamel")
|
||||
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
|
||||
private String capitalCamel;
|
||||
|
||||
@JsonProperty("small_Snake")
|
||||
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
|
||||
private String smallSnake;
|
||||
|
||||
@JsonProperty("Capital_Snake")
|
||||
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
|
||||
private String capitalSnake;
|
||||
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
|
||||
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
|
||||
private String scAETHFlowPoints;
|
||||
|
||||
@JsonProperty("ATT_NAME")
|
||||
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
|
||||
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
|
@ -28,7 +28,8 @@ import org.openapitools.client.model.CatAllOf;
|
||||
*/
|
||||
|
||||
public class Cat extends Animal {
|
||||
@JsonProperty("declawed")
|
||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
||||
public Cat declawed(Boolean declawed) {
|
||||
|
@ -26,7 +26,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class CatAllOf {
|
||||
@JsonProperty("declawed")
|
||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
||||
public CatAllOf declawed(Boolean declawed) {
|
||||
|
@ -26,10 +26,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class Category {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name = "default-name";
|
||||
|
||||
public Category id(Long id) {
|
||||
|
@ -27,7 +27,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||
|
||||
public class ClassModel {
|
||||
@JsonProperty("_class")
|
||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
private String propertyClass;
|
||||
|
||||
public ClassModel propertyClass(String propertyClass) {
|
||||
|
@ -26,7 +26,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class Client {
|
||||
@JsonProperty("client")
|
||||
public static final String JSON_PROPERTY_CLIENT = "client";
|
||||
@JsonProperty(JSON_PROPERTY_CLIENT)
|
||||
private String client;
|
||||
|
||||
public Client client(String client) {
|
||||
|
@ -28,7 +28,8 @@ import org.openapitools.client.model.DogAllOf;
|
||||
*/
|
||||
|
||||
public class Dog extends Animal {
|
||||
@JsonProperty("breed")
|
||||
public static final String JSON_PROPERTY_BREED = "breed";
|
||||
@JsonProperty(JSON_PROPERTY_BREED)
|
||||
private String breed;
|
||||
|
||||
public Dog breed(String breed) {
|
||||
|
@ -26,7 +26,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class DogAllOf {
|
||||
@JsonProperty("breed")
|
||||
public static final String JSON_PROPERTY_BREED = "breed";
|
||||
@JsonProperty(JSON_PROPERTY_BREED)
|
||||
private String breed;
|
||||
|
||||
public DogAllOf breed(String breed) {
|
||||
|
@ -63,7 +63,8 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("just_symbol")
|
||||
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
|
||||
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
|
||||
private JustSymbolEnum justSymbol;
|
||||
|
||||
/**
|
||||
@ -101,7 +102,8 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("array_enum")
|
||||
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
||||
private List<ArrayEnumEnum> arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||
|
||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||
|
@ -64,7 +64,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string")
|
||||
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
|
||||
private EnumStringEnum enumString;
|
||||
|
||||
/**
|
||||
@ -104,7 +105,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string_required")
|
||||
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
|
||||
/**
|
||||
@ -142,7 +144,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_integer")
|
||||
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
|
||||
private EnumIntegerEnum enumInteger;
|
||||
|
||||
/**
|
||||
@ -180,10 +183,12 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_number")
|
||||
public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
|
||||
private EnumNumberEnum enumNumber;
|
||||
|
||||
@JsonProperty("outerEnum")
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
||||
private OuterEnum outerEnum;
|
||||
|
||||
public EnumTest enumString(EnumStringEnum enumString) {
|
||||
|
@ -28,10 +28,12 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class FileSchemaTestClass {
|
||||
@JsonProperty("file")
|
||||
public static final String JSON_PROPERTY_FILE = "file";
|
||||
@JsonProperty(JSON_PROPERTY_FILE)
|
||||
private java.io.File file = null;
|
||||
|
||||
@JsonProperty("files")
|
||||
public static final String JSON_PROPERTY_FILES = "files";
|
||||
@JsonProperty(JSON_PROPERTY_FILES)
|
||||
private List<java.io.File> files = new ArrayList<java.io.File>();
|
||||
|
||||
public FileSchemaTestClass file(java.io.File file) {
|
||||
|
@ -31,43 +31,56 @@ import org.threeten.bp.OffsetDateTime;
|
||||
*/
|
||||
|
||||
public class FormatTest {
|
||||
@JsonProperty("integer")
|
||||
public static final String JSON_PROPERTY_INTEGER = "integer";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER)
|
||||
private Integer integer;
|
||||
|
||||
@JsonProperty("int32")
|
||||
public static final String JSON_PROPERTY_INT32 = "int32";
|
||||
@JsonProperty(JSON_PROPERTY_INT32)
|
||||
private Integer int32;
|
||||
|
||||
@JsonProperty("int64")
|
||||
public static final String JSON_PROPERTY_INT64 = "int64";
|
||||
@JsonProperty(JSON_PROPERTY_INT64)
|
||||
private Long int64;
|
||||
|
||||
@JsonProperty("number")
|
||||
public static final String JSON_PROPERTY_NUMBER = "number";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
private BigDecimal number;
|
||||
|
||||
@JsonProperty("float")
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
private Float _float;
|
||||
|
||||
@JsonProperty("double")
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
private Double _double;
|
||||
|
||||
@JsonProperty("string")
|
||||
public static final String JSON_PROPERTY_STRING = "string";
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
private String string;
|
||||
|
||||
@JsonProperty("byte")
|
||||
public static final String JSON_PROPERTY_BYTE = "byte";
|
||||
@JsonProperty(JSON_PROPERTY_BYTE)
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
public static final String JSON_PROPERTY_BINARY = "binary";
|
||||
@JsonProperty(JSON_PROPERTY_BINARY)
|
||||
private File binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
private LocalDate date;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("uuid")
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("password")
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
|
@ -26,10 +26,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class HasOnlyReadOnly {
|
||||
@JsonProperty("bar")
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("foo")
|
||||
public static final String JSON_PROPERTY_FOO = "foo";
|
||||
@JsonProperty(JSON_PROPERTY_FOO)
|
||||
private String foo;
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class MapTest {
|
||||
@JsonProperty("map_map_of_string")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||
|
||||
/**
|
||||
@ -67,13 +68,16 @@ public class MapTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("map_of_enum_string")
|
||||
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
||||
private Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||
|
||||
@JsonProperty("direct_map")
|
||||
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
|
||||
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
||||
private Map<String, Boolean> directMap = new HashMap<String, Boolean>();
|
||||
|
||||
@JsonProperty("indirect_map")
|
||||
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
|
||||
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
||||
private Map<String, Boolean> indirectMap = new HashMap<String, Boolean>();
|
||||
|
||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||
|
@ -32,13 +32,16 @@ import org.threeten.bp.OffsetDateTime;
|
||||
*/
|
||||
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
@JsonProperty("uuid")
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("map")
|
||||
public static final String JSON_PROPERTY_MAP = "map";
|
||||
@JsonProperty(JSON_PROPERTY_MAP)
|
||||
private Map<String, Animal> map = new HashMap<String, Animal>();
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||
|
@ -27,10 +27,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel(description = "Model for testing model name starting with number")
|
||||
|
||||
public class Model200Response {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("class")
|
||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
private String propertyClass;
|
||||
|
||||
public Model200Response name(Integer name) {
|
||||
|
@ -26,13 +26,16 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class ModelApiResponse {
|
||||
@JsonProperty("code")
|
||||
public static final String JSON_PROPERTY_CODE = "code";
|
||||
@JsonProperty(JSON_PROPERTY_CODE)
|
||||
private Integer code;
|
||||
|
||||
@JsonProperty("type")
|
||||
public static final String JSON_PROPERTY_TYPE = "type";
|
||||
@JsonProperty(JSON_PROPERTY_TYPE)
|
||||
private String type;
|
||||
|
||||
@JsonProperty("message")
|
||||
public static final String JSON_PROPERTY_MESSAGE = "message";
|
||||
@JsonProperty(JSON_PROPERTY_MESSAGE)
|
||||
private String message;
|
||||
|
||||
public ModelApiResponse code(Integer code) {
|
||||
|
@ -27,7 +27,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel(description = "Model for testing reserved words")
|
||||
|
||||
public class ModelReturn {
|
||||
@JsonProperty("return")
|
||||
public static final String JSON_PROPERTY_RETURN = "return";
|
||||
@JsonProperty(JSON_PROPERTY_RETURN)
|
||||
private Integer _return;
|
||||
|
||||
public ModelReturn _return(Integer _return) {
|
||||
|
@ -27,16 +27,20 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel(description = "Model for testing model name same as property name")
|
||||
|
||||
public class Name {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("snake_case")
|
||||
public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case";
|
||||
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
|
||||
private Integer snakeCase;
|
||||
|
||||
@JsonProperty("property")
|
||||
public static final String JSON_PROPERTY_PROPERTY = "property";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY)
|
||||
private String property;
|
||||
|
||||
@JsonProperty("123Number")
|
||||
public static final String JSON_PROPERTY_123NUMBER = "123Number";
|
||||
@JsonProperty(JSON_PROPERTY_123NUMBER)
|
||||
private Integer _123number;
|
||||
|
||||
public Name name(Integer name) {
|
||||
|
@ -27,7 +27,8 @@ import java.math.BigDecimal;
|
||||
*/
|
||||
|
||||
public class NumberOnly {
|
||||
@JsonProperty("JustNumber")
|
||||
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
|
||||
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
||||
private BigDecimal justNumber;
|
||||
|
||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||
|
@ -27,16 +27,20 @@ import org.threeten.bp.OffsetDateTime;
|
||||
*/
|
||||
|
||||
public class Order {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("petId")
|
||||
public static final String JSON_PROPERTY_PET_ID = "petId";
|
||||
@JsonProperty(JSON_PROPERTY_PET_ID)
|
||||
private Long petId;
|
||||
|
||||
@JsonProperty("quantity")
|
||||
public static final String JSON_PROPERTY_QUANTITY = "quantity";
|
||||
@JsonProperty(JSON_PROPERTY_QUANTITY)
|
||||
private Integer quantity;
|
||||
|
||||
@JsonProperty("shipDate")
|
||||
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
|
||||
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
|
||||
private OffsetDateTime shipDate;
|
||||
|
||||
/**
|
||||
@ -76,10 +80,12 @@ public class Order {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
private StatusEnum status;
|
||||
|
||||
@JsonProperty("complete")
|
||||
public static final String JSON_PROPERTY_COMPLETE = "complete";
|
||||
@JsonProperty(JSON_PROPERTY_COMPLETE)
|
||||
private Boolean complete = false;
|
||||
|
||||
public Order id(Long id) {
|
||||
|
@ -27,13 +27,16 @@ import java.math.BigDecimal;
|
||||
*/
|
||||
|
||||
public class OuterComposite {
|
||||
@JsonProperty("my_number")
|
||||
public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
|
||||
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
||||
private BigDecimal myNumber;
|
||||
|
||||
@JsonProperty("my_string")
|
||||
public static final String JSON_PROPERTY_MY_STRING = "my_string";
|
||||
@JsonProperty(JSON_PROPERTY_MY_STRING)
|
||||
private String myString;
|
||||
|
||||
@JsonProperty("my_boolean")
|
||||
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
|
||||
private Boolean myBoolean;
|
||||
|
||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||
|
@ -30,19 +30,24 @@ import org.openapitools.client.model.Tag;
|
||||
*/
|
||||
|
||||
public class Pet {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("category")
|
||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
private Category category = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
@JsonProperty("photoUrls")
|
||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
private List<String> photoUrls = new ArrayList<String>();
|
||||
|
||||
@JsonProperty("tags")
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
private List<Tag> tags = new ArrayList<Tag>();
|
||||
|
||||
/**
|
||||
@ -82,7 +87,8 @@ public class Pet {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet id(Long id) {
|
||||
|
@ -26,10 +26,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class ReadOnlyFirst {
|
||||
@JsonProperty("bar")
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("baz")
|
||||
public static final String JSON_PROPERTY_BAZ = "baz";
|
||||
@JsonProperty(JSON_PROPERTY_BAZ)
|
||||
private String baz;
|
||||
|
||||
/**
|
||||
|
@ -26,7 +26,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class SpecialModelName {
|
||||
@JsonProperty("$special[property.name]")
|
||||
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
|
||||
private Long $specialPropertyName;
|
||||
|
||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||
|
@ -26,10 +26,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class Tag {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public Tag id(Long id) {
|
||||
|
@ -29,19 +29,24 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class TypeHolderDefault {
|
||||
@JsonProperty("string_item")
|
||||
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
|
||||
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
|
||||
private String stringItem = "what";
|
||||
|
||||
@JsonProperty("number_item")
|
||||
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||
private BigDecimal numberItem;
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
|
||||
private Integer integerItem;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
|
||||
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
|
||||
private Boolean boolItem = true;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||
private List<Integer> arrayItem = new ArrayList<Integer>();
|
||||
|
||||
public TypeHolderDefault stringItem(String stringItem) {
|
||||
|
@ -29,19 +29,24 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class TypeHolderExample {
|
||||
@JsonProperty("string_item")
|
||||
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
|
||||
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
|
||||
private String stringItem;
|
||||
|
||||
@JsonProperty("number_item")
|
||||
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||
private BigDecimal numberItem;
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
|
||||
private Integer integerItem;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
|
||||
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
|
||||
private Boolean boolItem;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||
private List<Integer> arrayItem = new ArrayList<Integer>();
|
||||
|
||||
public TypeHolderExample stringItem(String stringItem) {
|
||||
|
@ -26,28 +26,36 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class User {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("username")
|
||||
public static final String JSON_PROPERTY_USERNAME = "username";
|
||||
@JsonProperty(JSON_PROPERTY_USERNAME)
|
||||
private String username;
|
||||
|
||||
@JsonProperty("firstName")
|
||||
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
|
||||
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
|
||||
private String firstName;
|
||||
|
||||
@JsonProperty("lastName")
|
||||
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
|
||||
@JsonProperty(JSON_PROPERTY_LAST_NAME)
|
||||
private String lastName;
|
||||
|
||||
@JsonProperty("email")
|
||||
public static final String JSON_PROPERTY_EMAIL = "email";
|
||||
@JsonProperty(JSON_PROPERTY_EMAIL)
|
||||
private String email;
|
||||
|
||||
@JsonProperty("password")
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
@JsonProperty("phone")
|
||||
public static final String JSON_PROPERTY_PHONE = "phone";
|
||||
@JsonProperty(JSON_PROPERTY_PHONE)
|
||||
private String phone;
|
||||
|
||||
@JsonProperty("userStatus")
|
||||
public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
|
||||
@JsonProperty(JSON_PROPERTY_USER_STATUS)
|
||||
private Integer userStatus;
|
||||
|
||||
public User id(Long id) {
|
||||
|
@ -29,91 +29,120 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class XmlItem {
|
||||
@JsonProperty("attribute_string")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING)
|
||||
private String attributeString;
|
||||
|
||||
@JsonProperty("attribute_number")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
|
||||
private BigDecimal attributeNumber;
|
||||
|
||||
@JsonProperty("attribute_integer")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER)
|
||||
private Integer attributeInteger;
|
||||
|
||||
@JsonProperty("attribute_boolean")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN)
|
||||
private Boolean attributeBoolean;
|
||||
|
||||
@JsonProperty("wrapped_array")
|
||||
public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
|
||||
private List<Integer> wrappedArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("name_string")
|
||||
public static final String JSON_PROPERTY_NAME_STRING = "name_string";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_STRING)
|
||||
private String nameString;
|
||||
|
||||
@JsonProperty("name_number")
|
||||
public static final String JSON_PROPERTY_NAME_NUMBER = "name_number";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
|
||||
private BigDecimal nameNumber;
|
||||
|
||||
@JsonProperty("name_integer")
|
||||
public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_INTEGER)
|
||||
private Integer nameInteger;
|
||||
|
||||
@JsonProperty("name_boolean")
|
||||
public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_BOOLEAN)
|
||||
private Boolean nameBoolean;
|
||||
|
||||
@JsonProperty("name_array")
|
||||
public static final String JSON_PROPERTY_NAME_ARRAY = "name_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
|
||||
private List<Integer> nameArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("name_wrapped_array")
|
||||
public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
|
||||
private List<Integer> nameWrappedArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("prefix_string")
|
||||
public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_STRING)
|
||||
private String prefixString;
|
||||
|
||||
@JsonProperty("prefix_number")
|
||||
public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
|
||||
private BigDecimal prefixNumber;
|
||||
|
||||
@JsonProperty("prefix_integer")
|
||||
public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_INTEGER)
|
||||
private Integer prefixInteger;
|
||||
|
||||
@JsonProperty("prefix_boolean")
|
||||
public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN)
|
||||
private Boolean prefixBoolean;
|
||||
|
||||
@JsonProperty("prefix_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
|
||||
private List<Integer> prefixArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("prefix_wrapped_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
|
||||
private List<Integer> prefixWrappedArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("namespace_string")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_STRING)
|
||||
private String namespaceString;
|
||||
|
||||
@JsonProperty("namespace_number")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
|
||||
private BigDecimal namespaceNumber;
|
||||
|
||||
@JsonProperty("namespace_integer")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER)
|
||||
private Integer namespaceInteger;
|
||||
|
||||
@JsonProperty("namespace_boolean")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN)
|
||||
private Boolean namespaceBoolean;
|
||||
|
||||
@JsonProperty("namespace_array")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
|
||||
private List<Integer> namespaceArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("namespace_wrapped_array")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
|
||||
private List<Integer> namespaceWrappedArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("prefix_ns_string")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING)
|
||||
private String prefixNsString;
|
||||
|
||||
@JsonProperty("prefix_ns_number")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
|
||||
private BigDecimal prefixNsNumber;
|
||||
|
||||
@JsonProperty("prefix_ns_integer")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER)
|
||||
private Integer prefixNsInteger;
|
||||
|
||||
@JsonProperty("prefix_ns_boolean")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN)
|
||||
private Boolean prefixNsBoolean;
|
||||
|
||||
@JsonProperty("prefix_ns_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
|
||||
private List<Integer> prefixNsArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("prefix_ns_wrapped_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
|
||||
private List<Integer> prefixNsWrappedArray = new ArrayList<Integer>();
|
||||
|
||||
public XmlItem attributeString(String attributeString) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesAnyType name(String name) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesArray name(String name) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesBoolean name(String name) {
|
||||
|
@ -30,37 +30,48 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesClass {
|
||||
@JsonProperty("map_string")
|
||||
public static final String JSON_PROPERTY_MAP_STRING = "map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
||||
private Map<String, String> mapString = new HashMap<String, String>();
|
||||
|
||||
@JsonProperty("map_number")
|
||||
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||
private Map<String, BigDecimal> mapNumber = new HashMap<String, BigDecimal>();
|
||||
|
||||
@JsonProperty("map_integer")
|
||||
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
||||
private Map<String, Integer> mapInteger = new HashMap<String, Integer>();
|
||||
|
||||
@JsonProperty("map_boolean")
|
||||
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
||||
private Map<String, Boolean> mapBoolean = new HashMap<String, Boolean>();
|
||||
|
||||
@JsonProperty("map_array_integer")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
||||
private Map<String, List<Integer>> mapArrayInteger = new HashMap<String, List<Integer>>();
|
||||
|
||||
@JsonProperty("map_array_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
||||
private Map<String, List<Object>> mapArrayAnytype = new HashMap<String, List<Object>>();
|
||||
|
||||
@JsonProperty("map_map_string")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
||||
private Map<String, Map<String, String>> mapMapString = new HashMap<String, Map<String, String>>();
|
||||
|
||||
@JsonProperty("map_map_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<String, Map<String, Object>>();
|
||||
|
||||
@JsonProperty("anytype_1")
|
||||
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
||||
private Object anytype1 = null;
|
||||
|
||||
@JsonProperty("anytype_2")
|
||||
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
|
||||
private Object anytype2 = null;
|
||||
|
||||
@JsonProperty("anytype_3")
|
||||
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
|
||||
private Object anytype3 = null;
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesInteger name(String name) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesNumber name(String name) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesObject name(String name) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesString name(String name) {
|
||||
|
@ -34,10 +34,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
})
|
||||
|
||||
public class Animal {
|
||||
@JsonProperty("className")
|
||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
||||
private String className;
|
||||
|
||||
@JsonProperty("color")
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
private String color = "red";
|
||||
|
||||
public Animal className(String className) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
||||
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||
|
||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class ArrayOfNumberOnly {
|
||||
@JsonProperty("ArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
||||
|
||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
|
@ -29,13 +29,16 @@ import org.openapitools.client.model.ReadOnlyFirst;
|
||||
*/
|
||||
|
||||
public class ArrayTest {
|
||||
@JsonProperty("array_of_string")
|
||||
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
||||
private List<String> arrayOfString = new ArrayList<String>();
|
||||
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
||||
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||
|
||||
@JsonProperty("array_array_of_model")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
|
@ -26,22 +26,28 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class Capitalization {
|
||||
@JsonProperty("smallCamel")
|
||||
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
|
||||
private String smallCamel;
|
||||
|
||||
@JsonProperty("CapitalCamel")
|
||||
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
|
||||
private String capitalCamel;
|
||||
|
||||
@JsonProperty("small_Snake")
|
||||
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
|
||||
private String smallSnake;
|
||||
|
||||
@JsonProperty("Capital_Snake")
|
||||
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
|
||||
private String capitalSnake;
|
||||
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
|
||||
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
|
||||
private String scAETHFlowPoints;
|
||||
|
||||
@JsonProperty("ATT_NAME")
|
||||
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
|
||||
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
|
@ -28,7 +28,8 @@ import org.openapitools.client.model.CatAllOf;
|
||||
*/
|
||||
|
||||
public class Cat extends Animal {
|
||||
@JsonProperty("declawed")
|
||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
||||
public Cat declawed(Boolean declawed) {
|
||||
|
@ -26,7 +26,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class CatAllOf {
|
||||
@JsonProperty("declawed")
|
||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
||||
public CatAllOf declawed(Boolean declawed) {
|
||||
|
@ -26,10 +26,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class Category {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name = "default-name";
|
||||
|
||||
public Category id(Long id) {
|
||||
|
@ -27,7 +27,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||
|
||||
public class ClassModel {
|
||||
@JsonProperty("_class")
|
||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
private String propertyClass;
|
||||
|
||||
public ClassModel propertyClass(String propertyClass) {
|
||||
|
@ -26,7 +26,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class Client {
|
||||
@JsonProperty("client")
|
||||
public static final String JSON_PROPERTY_CLIENT = "client";
|
||||
@JsonProperty(JSON_PROPERTY_CLIENT)
|
||||
private String client;
|
||||
|
||||
public Client client(String client) {
|
||||
|
@ -28,7 +28,8 @@ import org.openapitools.client.model.DogAllOf;
|
||||
*/
|
||||
|
||||
public class Dog extends Animal {
|
||||
@JsonProperty("breed")
|
||||
public static final String JSON_PROPERTY_BREED = "breed";
|
||||
@JsonProperty(JSON_PROPERTY_BREED)
|
||||
private String breed;
|
||||
|
||||
public Dog breed(String breed) {
|
||||
|
@ -26,7 +26,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class DogAllOf {
|
||||
@JsonProperty("breed")
|
||||
public static final String JSON_PROPERTY_BREED = "breed";
|
||||
@JsonProperty(JSON_PROPERTY_BREED)
|
||||
private String breed;
|
||||
|
||||
public DogAllOf breed(String breed) {
|
||||
|
@ -63,7 +63,8 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("just_symbol")
|
||||
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
|
||||
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
|
||||
private JustSymbolEnum justSymbol;
|
||||
|
||||
/**
|
||||
@ -101,7 +102,8 @@ public class EnumArrays {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("array_enum")
|
||||
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
|
||||
private List<ArrayEnumEnum> arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||
|
||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||
|
@ -64,7 +64,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string")
|
||||
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
|
||||
private EnumStringEnum enumString;
|
||||
|
||||
/**
|
||||
@ -104,7 +105,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_string_required")
|
||||
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
|
||||
private EnumStringRequiredEnum enumStringRequired;
|
||||
|
||||
/**
|
||||
@ -142,7 +144,8 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_integer")
|
||||
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
|
||||
private EnumIntegerEnum enumInteger;
|
||||
|
||||
/**
|
||||
@ -180,10 +183,12 @@ public class EnumTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("enum_number")
|
||||
public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
|
||||
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
|
||||
private EnumNumberEnum enumNumber;
|
||||
|
||||
@JsonProperty("outerEnum")
|
||||
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
|
||||
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
|
||||
private OuterEnum outerEnum;
|
||||
|
||||
public EnumTest enumString(EnumStringEnum enumString) {
|
||||
|
@ -28,10 +28,12 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class FileSchemaTestClass {
|
||||
@JsonProperty("file")
|
||||
public static final String JSON_PROPERTY_FILE = "file";
|
||||
@JsonProperty(JSON_PROPERTY_FILE)
|
||||
private java.io.File file = null;
|
||||
|
||||
@JsonProperty("files")
|
||||
public static final String JSON_PROPERTY_FILES = "files";
|
||||
@JsonProperty(JSON_PROPERTY_FILES)
|
||||
private List<java.io.File> files = new ArrayList<java.io.File>();
|
||||
|
||||
public FileSchemaTestClass file(java.io.File file) {
|
||||
|
@ -31,43 +31,56 @@ import org.threeten.bp.OffsetDateTime;
|
||||
*/
|
||||
|
||||
public class FormatTest {
|
||||
@JsonProperty("integer")
|
||||
public static final String JSON_PROPERTY_INTEGER = "integer";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER)
|
||||
private Integer integer;
|
||||
|
||||
@JsonProperty("int32")
|
||||
public static final String JSON_PROPERTY_INT32 = "int32";
|
||||
@JsonProperty(JSON_PROPERTY_INT32)
|
||||
private Integer int32;
|
||||
|
||||
@JsonProperty("int64")
|
||||
public static final String JSON_PROPERTY_INT64 = "int64";
|
||||
@JsonProperty(JSON_PROPERTY_INT64)
|
||||
private Long int64;
|
||||
|
||||
@JsonProperty("number")
|
||||
public static final String JSON_PROPERTY_NUMBER = "number";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
private BigDecimal number;
|
||||
|
||||
@JsonProperty("float")
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
private Float _float;
|
||||
|
||||
@JsonProperty("double")
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
private Double _double;
|
||||
|
||||
@JsonProperty("string")
|
||||
public static final String JSON_PROPERTY_STRING = "string";
|
||||
@JsonProperty(JSON_PROPERTY_STRING)
|
||||
private String string;
|
||||
|
||||
@JsonProperty("byte")
|
||||
public static final String JSON_PROPERTY_BYTE = "byte";
|
||||
@JsonProperty(JSON_PROPERTY_BYTE)
|
||||
private byte[] _byte;
|
||||
|
||||
@JsonProperty("binary")
|
||||
public static final String JSON_PROPERTY_BINARY = "binary";
|
||||
@JsonProperty(JSON_PROPERTY_BINARY)
|
||||
private File binary;
|
||||
|
||||
@JsonProperty("date")
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
private LocalDate date;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("uuid")
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("password")
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
|
@ -26,10 +26,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class HasOnlyReadOnly {
|
||||
@JsonProperty("bar")
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("foo")
|
||||
public static final String JSON_PROPERTY_FOO = "foo";
|
||||
@JsonProperty(JSON_PROPERTY_FOO)
|
||||
private String foo;
|
||||
|
||||
/**
|
||||
|
@ -29,7 +29,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class MapTest {
|
||||
@JsonProperty("map_map_of_string")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "map_map_of_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
|
||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||
|
||||
/**
|
||||
@ -67,13 +68,16 @@ public class MapTest {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("map_of_enum_string")
|
||||
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "map_of_enum_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
|
||||
private Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||
|
||||
@JsonProperty("direct_map")
|
||||
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
|
||||
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
|
||||
private Map<String, Boolean> directMap = new HashMap<String, Boolean>();
|
||||
|
||||
@JsonProperty("indirect_map")
|
||||
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
|
||||
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
|
||||
private Map<String, Boolean> indirectMap = new HashMap<String, Boolean>();
|
||||
|
||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||
|
@ -32,13 +32,16 @@ import org.threeten.bp.OffsetDateTime;
|
||||
*/
|
||||
|
||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
@JsonProperty("uuid")
|
||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||
@JsonProperty(JSON_PROPERTY_UUID)
|
||||
private UUID uuid;
|
||||
|
||||
@JsonProperty("dateTime")
|
||||
public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
|
||||
@JsonProperty(JSON_PROPERTY_DATE_TIME)
|
||||
private OffsetDateTime dateTime;
|
||||
|
||||
@JsonProperty("map")
|
||||
public static final String JSON_PROPERTY_MAP = "map";
|
||||
@JsonProperty(JSON_PROPERTY_MAP)
|
||||
private Map<String, Animal> map = new HashMap<String, Animal>();
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||
|
@ -27,10 +27,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel(description = "Model for testing model name starting with number")
|
||||
|
||||
public class Model200Response {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("class")
|
||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
|
||||
private String propertyClass;
|
||||
|
||||
public Model200Response name(Integer name) {
|
||||
|
@ -26,13 +26,16 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class ModelApiResponse {
|
||||
@JsonProperty("code")
|
||||
public static final String JSON_PROPERTY_CODE = "code";
|
||||
@JsonProperty(JSON_PROPERTY_CODE)
|
||||
private Integer code;
|
||||
|
||||
@JsonProperty("type")
|
||||
public static final String JSON_PROPERTY_TYPE = "type";
|
||||
@JsonProperty(JSON_PROPERTY_TYPE)
|
||||
private String type;
|
||||
|
||||
@JsonProperty("message")
|
||||
public static final String JSON_PROPERTY_MESSAGE = "message";
|
||||
@JsonProperty(JSON_PROPERTY_MESSAGE)
|
||||
private String message;
|
||||
|
||||
public ModelApiResponse code(Integer code) {
|
||||
|
@ -27,7 +27,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel(description = "Model for testing reserved words")
|
||||
|
||||
public class ModelReturn {
|
||||
@JsonProperty("return")
|
||||
public static final String JSON_PROPERTY_RETURN = "return";
|
||||
@JsonProperty(JSON_PROPERTY_RETURN)
|
||||
private Integer _return;
|
||||
|
||||
public ModelReturn _return(Integer _return) {
|
||||
|
@ -27,16 +27,20 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
@ApiModel(description = "Model for testing model name same as property name")
|
||||
|
||||
public class Name {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private Integer name;
|
||||
|
||||
@JsonProperty("snake_case")
|
||||
public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case";
|
||||
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
|
||||
private Integer snakeCase;
|
||||
|
||||
@JsonProperty("property")
|
||||
public static final String JSON_PROPERTY_PROPERTY = "property";
|
||||
@JsonProperty(JSON_PROPERTY_PROPERTY)
|
||||
private String property;
|
||||
|
||||
@JsonProperty("123Number")
|
||||
public static final String JSON_PROPERTY_123NUMBER = "123Number";
|
||||
@JsonProperty(JSON_PROPERTY_123NUMBER)
|
||||
private Integer _123number;
|
||||
|
||||
public Name name(Integer name) {
|
||||
|
@ -27,7 +27,8 @@ import java.math.BigDecimal;
|
||||
*/
|
||||
|
||||
public class NumberOnly {
|
||||
@JsonProperty("JustNumber")
|
||||
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
|
||||
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
|
||||
private BigDecimal justNumber;
|
||||
|
||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||
|
@ -27,16 +27,20 @@ import org.threeten.bp.OffsetDateTime;
|
||||
*/
|
||||
|
||||
public class Order {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("petId")
|
||||
public static final String JSON_PROPERTY_PET_ID = "petId";
|
||||
@JsonProperty(JSON_PROPERTY_PET_ID)
|
||||
private Long petId;
|
||||
|
||||
@JsonProperty("quantity")
|
||||
public static final String JSON_PROPERTY_QUANTITY = "quantity";
|
||||
@JsonProperty(JSON_PROPERTY_QUANTITY)
|
||||
private Integer quantity;
|
||||
|
||||
@JsonProperty("shipDate")
|
||||
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
|
||||
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
|
||||
private OffsetDateTime shipDate;
|
||||
|
||||
/**
|
||||
@ -76,10 +80,12 @@ public class Order {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
private StatusEnum status;
|
||||
|
||||
@JsonProperty("complete")
|
||||
public static final String JSON_PROPERTY_COMPLETE = "complete";
|
||||
@JsonProperty(JSON_PROPERTY_COMPLETE)
|
||||
private Boolean complete = false;
|
||||
|
||||
public Order id(Long id) {
|
||||
|
@ -27,13 +27,16 @@ import java.math.BigDecimal;
|
||||
*/
|
||||
|
||||
public class OuterComposite {
|
||||
@JsonProperty("my_number")
|
||||
public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
|
||||
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
|
||||
private BigDecimal myNumber;
|
||||
|
||||
@JsonProperty("my_string")
|
||||
public static final String JSON_PROPERTY_MY_STRING = "my_string";
|
||||
@JsonProperty(JSON_PROPERTY_MY_STRING)
|
||||
private String myString;
|
||||
|
||||
@JsonProperty("my_boolean")
|
||||
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
|
||||
private Boolean myBoolean;
|
||||
|
||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||
|
@ -30,19 +30,24 @@ import org.openapitools.client.model.Tag;
|
||||
*/
|
||||
|
||||
public class Pet {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("category")
|
||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
private Category category = null;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
@JsonProperty("photoUrls")
|
||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
private List<String> photoUrls = new ArrayList<String>();
|
||||
|
||||
@JsonProperty("tags")
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
private List<Tag> tags = new ArrayList<Tag>();
|
||||
|
||||
/**
|
||||
@ -82,7 +87,8 @@ public class Pet {
|
||||
}
|
||||
}
|
||||
|
||||
@JsonProperty("status")
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet id(Long id) {
|
||||
|
@ -26,10 +26,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class ReadOnlyFirst {
|
||||
@JsonProperty("bar")
|
||||
public static final String JSON_PROPERTY_BAR = "bar";
|
||||
@JsonProperty(JSON_PROPERTY_BAR)
|
||||
private String bar;
|
||||
|
||||
@JsonProperty("baz")
|
||||
public static final String JSON_PROPERTY_BAZ = "baz";
|
||||
@JsonProperty(JSON_PROPERTY_BAZ)
|
||||
private String baz;
|
||||
|
||||
/**
|
||||
|
@ -26,7 +26,8 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class SpecialModelName {
|
||||
@JsonProperty("$special[property.name]")
|
||||
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
|
||||
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
|
||||
private Long $specialPropertyName;
|
||||
|
||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||
|
@ -26,10 +26,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class Tag {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public Tag id(Long id) {
|
||||
|
@ -29,19 +29,24 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class TypeHolderDefault {
|
||||
@JsonProperty("string_item")
|
||||
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
|
||||
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
|
||||
private String stringItem = "what";
|
||||
|
||||
@JsonProperty("number_item")
|
||||
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||
private BigDecimal numberItem;
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
|
||||
private Integer integerItem;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
|
||||
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
|
||||
private Boolean boolItem = true;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||
private List<Integer> arrayItem = new ArrayList<Integer>();
|
||||
|
||||
public TypeHolderDefault stringItem(String stringItem) {
|
||||
|
@ -29,19 +29,24 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class TypeHolderExample {
|
||||
@JsonProperty("string_item")
|
||||
public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
|
||||
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
|
||||
private String stringItem;
|
||||
|
||||
@JsonProperty("number_item")
|
||||
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
|
||||
private BigDecimal numberItem;
|
||||
|
||||
@JsonProperty("integer_item")
|
||||
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
|
||||
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
|
||||
private Integer integerItem;
|
||||
|
||||
@JsonProperty("bool_item")
|
||||
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
|
||||
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
|
||||
private Boolean boolItem;
|
||||
|
||||
@JsonProperty("array_item")
|
||||
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
|
||||
private List<Integer> arrayItem = new ArrayList<Integer>();
|
||||
|
||||
public TypeHolderExample stringItem(String stringItem) {
|
||||
|
@ -26,28 +26,36 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class User {
|
||||
@JsonProperty("id")
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("username")
|
||||
public static final String JSON_PROPERTY_USERNAME = "username";
|
||||
@JsonProperty(JSON_PROPERTY_USERNAME)
|
||||
private String username;
|
||||
|
||||
@JsonProperty("firstName")
|
||||
public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
|
||||
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
|
||||
private String firstName;
|
||||
|
||||
@JsonProperty("lastName")
|
||||
public static final String JSON_PROPERTY_LAST_NAME = "lastName";
|
||||
@JsonProperty(JSON_PROPERTY_LAST_NAME)
|
||||
private String lastName;
|
||||
|
||||
@JsonProperty("email")
|
||||
public static final String JSON_PROPERTY_EMAIL = "email";
|
||||
@JsonProperty(JSON_PROPERTY_EMAIL)
|
||||
private String email;
|
||||
|
||||
@JsonProperty("password")
|
||||
public static final String JSON_PROPERTY_PASSWORD = "password";
|
||||
@JsonProperty(JSON_PROPERTY_PASSWORD)
|
||||
private String password;
|
||||
|
||||
@JsonProperty("phone")
|
||||
public static final String JSON_PROPERTY_PHONE = "phone";
|
||||
@JsonProperty(JSON_PROPERTY_PHONE)
|
||||
private String phone;
|
||||
|
||||
@JsonProperty("userStatus")
|
||||
public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
|
||||
@JsonProperty(JSON_PROPERTY_USER_STATUS)
|
||||
private Integer userStatus;
|
||||
|
||||
public User id(Long id) {
|
||||
|
@ -29,91 +29,120 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class XmlItem {
|
||||
@JsonProperty("attribute_string")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING)
|
||||
private String attributeString;
|
||||
|
||||
@JsonProperty("attribute_number")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
|
||||
private BigDecimal attributeNumber;
|
||||
|
||||
@JsonProperty("attribute_integer")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER)
|
||||
private Integer attributeInteger;
|
||||
|
||||
@JsonProperty("attribute_boolean")
|
||||
public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN)
|
||||
private Boolean attributeBoolean;
|
||||
|
||||
@JsonProperty("wrapped_array")
|
||||
public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
|
||||
private List<Integer> wrappedArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("name_string")
|
||||
public static final String JSON_PROPERTY_NAME_STRING = "name_string";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_STRING)
|
||||
private String nameString;
|
||||
|
||||
@JsonProperty("name_number")
|
||||
public static final String JSON_PROPERTY_NAME_NUMBER = "name_number";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
|
||||
private BigDecimal nameNumber;
|
||||
|
||||
@JsonProperty("name_integer")
|
||||
public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_INTEGER)
|
||||
private Integer nameInteger;
|
||||
|
||||
@JsonProperty("name_boolean")
|
||||
public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_BOOLEAN)
|
||||
private Boolean nameBoolean;
|
||||
|
||||
@JsonProperty("name_array")
|
||||
public static final String JSON_PROPERTY_NAME_ARRAY = "name_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
|
||||
private List<Integer> nameArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("name_wrapped_array")
|
||||
public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "name_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
|
||||
private List<Integer> nameWrappedArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("prefix_string")
|
||||
public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_STRING)
|
||||
private String prefixString;
|
||||
|
||||
@JsonProperty("prefix_number")
|
||||
public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
|
||||
private BigDecimal prefixNumber;
|
||||
|
||||
@JsonProperty("prefix_integer")
|
||||
public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_INTEGER)
|
||||
private Integer prefixInteger;
|
||||
|
||||
@JsonProperty("prefix_boolean")
|
||||
public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN)
|
||||
private Boolean prefixBoolean;
|
||||
|
||||
@JsonProperty("prefix_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
|
||||
private List<Integer> prefixArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("prefix_wrapped_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "prefix_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
|
||||
private List<Integer> prefixWrappedArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("namespace_string")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_STRING)
|
||||
private String namespaceString;
|
||||
|
||||
@JsonProperty("namespace_number")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
|
||||
private BigDecimal namespaceNumber;
|
||||
|
||||
@JsonProperty("namespace_integer")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER)
|
||||
private Integer namespaceInteger;
|
||||
|
||||
@JsonProperty("namespace_boolean")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN)
|
||||
private Boolean namespaceBoolean;
|
||||
|
||||
@JsonProperty("namespace_array")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
|
||||
private List<Integer> namespaceArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("namespace_wrapped_array")
|
||||
public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "namespace_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
|
||||
private List<Integer> namespaceWrappedArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("prefix_ns_string")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING)
|
||||
private String prefixNsString;
|
||||
|
||||
@JsonProperty("prefix_ns_number")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
|
||||
private BigDecimal prefixNsNumber;
|
||||
|
||||
@JsonProperty("prefix_ns_integer")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER)
|
||||
private Integer prefixNsInteger;
|
||||
|
||||
@JsonProperty("prefix_ns_boolean")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN)
|
||||
private Boolean prefixNsBoolean;
|
||||
|
||||
@JsonProperty("prefix_ns_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "prefix_ns_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
|
||||
private List<Integer> prefixNsArray = new ArrayList<Integer>();
|
||||
|
||||
@JsonProperty("prefix_ns_wrapped_array")
|
||||
public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "prefix_ns_wrapped_array";
|
||||
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
|
||||
private List<Integer> prefixNsWrappedArray = new ArrayList<Integer>();
|
||||
|
||||
public XmlItem attributeString(String attributeString) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesAnyType name(String name) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesArray name(String name) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesBoolean name(String name) {
|
||||
|
@ -30,37 +30,48 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesClass {
|
||||
@JsonProperty("map_string")
|
||||
public static final String JSON_PROPERTY_MAP_STRING = "map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_STRING)
|
||||
private Map<String, String> mapString = new HashMap<String, String>();
|
||||
|
||||
@JsonProperty("map_number")
|
||||
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
|
||||
private Map<String, BigDecimal> mapNumber = new HashMap<String, BigDecimal>();
|
||||
|
||||
@JsonProperty("map_integer")
|
||||
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
|
||||
private Map<String, Integer> mapInteger = new HashMap<String, Integer>();
|
||||
|
||||
@JsonProperty("map_boolean")
|
||||
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
|
||||
private Map<String, Boolean> mapBoolean = new HashMap<String, Boolean>();
|
||||
|
||||
@JsonProperty("map_array_integer")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "map_array_integer";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
|
||||
private Map<String, List<Integer>> mapArrayInteger = new HashMap<String, List<Integer>>();
|
||||
|
||||
@JsonProperty("map_array_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "map_array_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
|
||||
private Map<String, List<Object>> mapArrayAnytype = new HashMap<String, List<Object>>();
|
||||
|
||||
@JsonProperty("map_map_string")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_STRING = "map_map_string";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
|
||||
private Map<String, Map<String, String>> mapMapString = new HashMap<String, Map<String, String>>();
|
||||
|
||||
@JsonProperty("map_map_anytype")
|
||||
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "map_map_anytype";
|
||||
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = new HashMap<String, Map<String, Object>>();
|
||||
|
||||
@JsonProperty("anytype_1")
|
||||
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
|
||||
private Object anytype1 = null;
|
||||
|
||||
@JsonProperty("anytype_2")
|
||||
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
|
||||
private Object anytype2 = null;
|
||||
|
||||
@JsonProperty("anytype_3")
|
||||
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
|
||||
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
|
||||
private Object anytype3 = null;
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesInteger name(String name) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesNumber name(String name) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesObject name(String name) {
|
||||
|
@ -28,7 +28,8 @@ import java.util.Map;
|
||||
*/
|
||||
|
||||
public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
@JsonProperty("name")
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesString name(String name) {
|
||||
|
@ -34,10 +34,12 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
})
|
||||
|
||||
public class Animal {
|
||||
@JsonProperty("className")
|
||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
||||
private String className;
|
||||
|
||||
@JsonProperty("color")
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
private String color = "red";
|
||||
|
||||
public Animal className(String className) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class ArrayOfArrayOfNumberOnly {
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
||||
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||
|
||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
|
@ -29,7 +29,8 @@ import java.util.List;
|
||||
*/
|
||||
|
||||
public class ArrayOfNumberOnly {
|
||||
@JsonProperty("ArrayNumber")
|
||||
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
||||
|
||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
|
@ -29,13 +29,16 @@ import org.openapitools.client.model.ReadOnlyFirst;
|
||||
*/
|
||||
|
||||
public class ArrayTest {
|
||||
@JsonProperty("array_of_string")
|
||||
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "array_of_string";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
||||
private List<String> arrayOfString = new ArrayList<String>();
|
||||
|
||||
@JsonProperty("array_array_of_integer")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
||||
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||
|
||||
@JsonProperty("array_array_of_model")
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
|
@ -26,22 +26,28 @@ import io.swagger.annotations.ApiModelProperty;
|
||||
*/
|
||||
|
||||
public class Capitalization {
|
||||
@JsonProperty("smallCamel")
|
||||
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
|
||||
private String smallCamel;
|
||||
|
||||
@JsonProperty("CapitalCamel")
|
||||
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
|
||||
private String capitalCamel;
|
||||
|
||||
@JsonProperty("small_Snake")
|
||||
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
|
||||
private String smallSnake;
|
||||
|
||||
@JsonProperty("Capital_Snake")
|
||||
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
|
||||
private String capitalSnake;
|
||||
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "SCA_ETH_Flow_Points";
|
||||
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
|
||||
private String scAETHFlowPoints;
|
||||
|
||||
@JsonProperty("ATT_NAME")
|
||||
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
|
||||
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
|
@ -28,7 +28,8 @@ import org.openapitools.client.model.CatAllOf;
|
||||
*/
|
||||
|
||||
public class Cat extends Animal {
|
||||
@JsonProperty("declawed")
|
||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||
@JsonProperty(JSON_PROPERTY_DECLAWED)
|
||||
private Boolean declawed;
|
||||
|
||||
public Cat declawed(Boolean declawed) {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user