[Java][client] make it possible to send explicit nulls for nullable fields (#3474)

* [Java][client] make it possible to send explicit nulls for nullable fields

* Regenerate samples
This commit is contained in:
Slavek Kabrda 2019-08-16 10:26:06 +02:00 committed by William Cheng
parent cd9eea2fe5
commit 5182955cca
1117 changed files with 23253 additions and 2935 deletions

View File

@ -120,7 +120,12 @@
<groupId>com.fasterxml.jackson.jaxrs</groupId> <groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId> <artifactId>jackson-jaxrs-json-provider</artifactId>
<version>${jackson-version}</version> <version>${jackson-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
<!-- Joda time: if you use it --> <!-- Joda time: if you use it -->
<dependency> <dependency>
@ -146,6 +151,7 @@
<swagger-annotations-version>1.5.8</swagger-annotations-version> <swagger-annotations-version>1.5.8</swagger-annotations-version>
<jersey-version>2.27</jersey-version> <jersey-version>2.27</jersey-version>
<jackson-version>2.8.9</jackson-version> <jackson-version>2.8.9</jackson-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
<jodatime-version>2.7</jodatime-version> <jodatime-version>2.7</jodatime-version>
<maven-plugin-version>1.0.0</maven-plugin-version> <maven-plugin-version>1.0.0</maven-plugin-version>
<junit-version>4.8.1</junit-version> <junit-version>4.8.1</junit-version>

View File

@ -133,7 +133,12 @@
<groupId>com.fasterxml.jackson.jaxrs</groupId> <groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId> <artifactId>jackson-jaxrs-json-provider</artifactId>
<version>${jackson-version}</version> <version>${jackson-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
<!-- Joda time: if you use it --> <!-- Joda time: if you use it -->
<dependency> <dependency>

View File

@ -16,6 +16,7 @@
<swagger-annotations-version>1.5.8</swagger-annotations-version> <swagger-annotations-version>1.5.8</swagger-annotations-version>
<jersey-version>2.27</jersey-version> <jersey-version>2.27</jersey-version>
<jackson-version>2.8.9</jackson-version> <jackson-version>2.8.9</jackson-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
<jodatime-version>2.7</jodatime-version> <jodatime-version>2.7</jodatime-version>
<maven-plugin-version>1.0.0</maven-plugin-version> <maven-plugin-version>1.0.0</maven-plugin-version>
<junit-version>4.8.1</junit-version> <junit-version>4.8.1</junit-version>

View File

@ -417,6 +417,8 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
importMapping.put("JsonTypeInfo", "com.fasterxml.jackson.annotation.JsonTypeInfo"); importMapping.put("JsonTypeInfo", "com.fasterxml.jackson.annotation.JsonTypeInfo");
importMapping.put("JsonCreator", "com.fasterxml.jackson.annotation.JsonCreator"); importMapping.put("JsonCreator", "com.fasterxml.jackson.annotation.JsonCreator");
importMapping.put("JsonValue", "com.fasterxml.jackson.annotation.JsonValue"); importMapping.put("JsonValue", "com.fasterxml.jackson.annotation.JsonValue");
importMapping.put("JsonIgnore", "com.fasterxml.jackson.annotation.JsonIgnore");
importMapping.put("JsonInclude", "com.fasterxml.jackson.annotation.JsonInclude");
importMapping.put("SerializedName", "com.google.gson.annotations.SerializedName"); importMapping.put("SerializedName", "com.google.gson.annotations.SerializedName");
importMapping.put("TypeAdapter", "com.google.gson.TypeAdapter"); importMapping.put("TypeAdapter", "com.google.gson.TypeAdapter");
importMapping.put("JsonAdapter", "com.google.gson.annotations.JsonAdapter"); importMapping.put("JsonAdapter", "com.google.gson.annotations.JsonAdapter");
@ -800,7 +802,13 @@ public abstract class AbstractJavaCodegen extends DefaultCodegen implements Code
} }
} }
return null; return null;
} else if (ModelUtils.isObjectSchema(p)) {
if (p.getDefault() != null) {
return super.toDefaultValue(p);
}
return null;
} }
return super.toDefaultValue(p); return super.toDefaultValue(p);
} }

View File

@ -24,6 +24,7 @@ import org.openapitools.codegen.languages.features.BeanValidationFeatures;
import org.openapitools.codegen.languages.features.GzipFeatures; import org.openapitools.codegen.languages.features.GzipFeatures;
import org.openapitools.codegen.languages.features.PerformBeanValidationFeatures; import org.openapitools.codegen.languages.features.PerformBeanValidationFeatures;
import org.openapitools.codegen.templating.mustache.CaseFormatLambda; import org.openapitools.codegen.templating.mustache.CaseFormatLambda;
import org.openapitools.codegen.utils.ModelUtils;
import org.openapitools.codegen.utils.ProcessUtils; import org.openapitools.codegen.utils.ProcessUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@ -583,6 +584,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
if (additionalProperties.containsKey("jackson")) { if (additionalProperties.containsKey("jackson")) {
model.imports.add("JsonProperty"); model.imports.add("JsonProperty");
model.imports.add("JsonValue"); model.imports.add("JsonValue");
model.imports.add("JsonInclude");
} }
if (additionalProperties.containsKey("gson")) { if (additionalProperties.containsKey("gson")) {
model.imports.add("SerializedName"); model.imports.add("SerializedName");
@ -623,6 +625,39 @@ public class JavaClientCodegen extends AbstractJavaCodegen
return objs; return objs;
} }
@Override
public Map<String, Object> postProcessModels(Map<String, Object> objs) {
objs = super.postProcessModels(objs);
if (additionalProperties.containsKey("jackson") && !JERSEY1.equals(getLibrary())) {
List<Map<String, String>> imports = (List<Map<String, String>>) objs.get("imports");
List<Object> models = (List<Object>) objs.get("models");
for (Object _mo : models) {
Map<String, Object> mo = (Map<String, Object>) _mo;
CodegenModel cm = (CodegenModel) mo.get("model");
boolean addImports = false;
for (CodegenProperty var : cm.vars) {
boolean isOptionalNullable = Boolean.FALSE.equals(var.required) && Boolean.TRUE.equals(var.isNullable);
// only add JsonNullable and related imports to optional and nullable values
addImports |= isOptionalNullable;
var.getVendorExtensions().put("isJacksonOptionalNullable", isOptionalNullable);
}
if (addImports) {
cm.imports.add("JsonNullable");
Map<String, String> itemJsonNullable = new HashMap<String, String>();
itemJsonNullable.put("import", "org.openapitools.jackson.nullable.JsonNullable");
imports.add(itemJsonNullable);
cm.imports.add("NoSuchElementException");
Map<String, String> itemExc = new HashMap<String, String>();
itemExc.put("import", "java.util.NoSuchElementException");
imports.add(itemExc);
}
}
}
return objs;
}
public void setUseRxJava(boolean useRxJava) { public void setUseRxJava(boolean useRxJava) {
this.useRxJava = useRxJava; this.useRxJava = useRxJava;
doNotUseRx = false; doNotUseRx = false;

View File

@ -0,0 +1,19 @@
{{!
If this is map and items are nullable, make sure that nulls are included.
To determine what JsonInclude.Include method to use, consider the following:
* If the field is required, always include it, even if it is null.
* Else use custom behaviour, IOW use whatever is defined on the object mapper
}}
@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}})
@JsonInclude({{#isMapContainer}}{{#items.isNullable}}content = JsonInclude.Include.ALWAYS, {{/items.isNullable}}{{/isMapContainer}}value = JsonInclude.Include.{{#required}}ALWAYS{{/required}}{{^required}}USE_DEFAULTS{{/required}})
{{#withXml}}
{{^isContainer}}
@JacksonXmlProperty({{#isXmlAttribute}}isAttribute = true, {{/isXmlAttribute}}{{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}localName = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
{{/isContainer}}
{{#isContainer}}
{{#isXmlWrapped}}
// items.xmlName={{items.xmlName}}
@JacksonXmlElementWrapper(useWrapping = {{isXmlWrapped}}, {{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}localName = "{{#items.xmlName}}{{items.xmlName}}{{/items.xmlName}}{{^items.xmlName}}{{items.baseName}}{{/items.xmlName}}")
{{/isXmlWrapped}}
{{/isContainer}}
{{/withXml}}

View File

@ -12,6 +12,7 @@ import org.threeten.bp.*;
import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.databind.SerializationFeature;
import org.openapitools.jackson.nullable.JsonNullableModule;
{{#joda}} {{#joda}}
import com.fasterxml.jackson.datatype.joda.JodaModule; import com.fasterxml.jackson.datatype.joda.JodaModule;
{{/joda}} {{/joda}}
@ -177,6 +178,8 @@ public class ApiClient {
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
objectMapper.registerModule(module); objectMapper.registerModule(module);
{{/threetenbp}} {{/threetenbp}}
JsonNullableModule jnm = new JsonNullableModule();
objectMapper.registerModule(jnm);
return objectMapper; return objectMapper;
} }

View File

@ -244,6 +244,11 @@
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson-databind-version}</version> <version>${jackson-databind-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{#withXml}} {{#withXml}}
<!-- XML Support --> <!-- XML Support -->
@ -310,6 +315,7 @@
<feign-version>{{#useFeign10}}10.2.3{{/useFeign10}}{{^useFeign10}}9.7.0{{/useFeign10}}</feign-version> <feign-version>{{#useFeign10}}10.2.3{{/useFeign10}}{{^useFeign10}}9.7.0{{/useFeign10}}</feign-version>
<feign-form-version>2.1.0</feign-form-version> <feign-form-version>2.1.0</feign-form-version>
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
<jackson-databind-version>2.9.9</jackson-databind-version> <jackson-databind-version>2.9.9</jackson-databind-version>
{{#threetenbp}} {{#threetenbp}}
<jackson-threetenbp-version>2.6.4</jackson-threetenbp-version> <jackson-threetenbp-version>2.6.4</jackson-threetenbp-version>

View File

@ -4,6 +4,7 @@ import {{apiPackage}}.*;
import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.databind.SerializationFeature;
import org.openapitools.jackson.nullable.JsonNullableModule;
{{#joda}} {{#joda}}
import com.fasterxml.jackson.datatype.joda.JodaModule; import com.fasterxml.jackson.datatype.joda.JodaModule;
{{/joda}} {{/joda}}
@ -53,6 +54,8 @@ public class ApiClient {
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
objectMapper.registerModule(module); objectMapper.registerModule(module);
{{/threetenbp}} {{/threetenbp}}
JsonNullableModule jnm = new JsonNullableModule();
objectMapper.registerModule(jnm);
return objectMapper; return objectMapper;
} }

View File

@ -253,6 +253,11 @@
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson-version}</version> <version>${jackson-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{#withXml}} {{#withXml}}
<!-- XML processing: Jackson --> <!-- XML processing: Jackson -->
<dependency> <dependency>
@ -303,6 +308,7 @@
<jersey-common-version>2.25.1</jersey-common-version> <jersey-common-version>2.25.1</jersey-common-version>
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<jackson-databind-version>2.9.9</jackson-databind-version> <jackson-databind-version>2.9.9</jackson-databind-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
{{#joda}} {{#joda}}
<jodatime-version>2.9.9</jodatime-version> <jodatime-version>2.9.9</jodatime-version>
{{/joda}} {{/joda}}

View File

@ -5,6 +5,7 @@ import org.threeten.bp.*;
{{/threetenbp}} {{/threetenbp}}
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.*;
import org.openapitools.jackson.nullable.JsonNullableModule;
{{#java8}} {{#java8}}
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
{{/java8}} {{/java8}}
@ -45,6 +46,8 @@ public class JSON implements ContextResolver<ObjectMapper> {
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
mapper.registerModule(module); mapper.registerModule(module);
{{/threetenbp}} {{/threetenbp}}
JsonNullableModule jnm = new JsonNullableModule();
mapper.registerModule(jnm);
} }
/** /**

View File

@ -276,6 +276,11 @@
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson-databind-version}</version> <version>${jackson-databind-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{#withXml}} {{#withXml}}
<!-- XML processing: JAXB --> <!-- XML processing: JAXB -->
@ -357,6 +362,7 @@
{{/supportJava6}} {{/supportJava6}}
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<jackson-databind-version>2.9.9</jackson-databind-version> <jackson-databind-version>2.9.9</jackson-databind-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
{{#threetenbp}} {{#threetenbp}}
<threetenbp-version>2.6.4</threetenbp-version> <threetenbp-version>2.6.4</threetenbp-version>
{{/threetenbp}} {{/threetenbp}}

View File

@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.openapitools.jackson.nullable.JsonNullableModule;
import java.net.URI; import java.net.URI;
import java.net.URLEncoder; import java.net.URLEncoder;
@ -151,6 +152,8 @@ public class ApiClient {
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
mapper.registerModule(new JavaTimeModule()); mapper.registerModule(new JavaTimeModule());
JsonNullableModule jnm = new JsonNullableModule();
mapper.registerModule(jnm);
URI baseURI = URI.create("{{{basePath}}}"); URI baseURI = URI.create("{{{basePath}}}");
scheme = baseURI.getScheme(); scheme = baseURI.getScheme();
host = baseURI.getHost(); host = baseURI.getHost();

View File

@ -188,6 +188,11 @@
<artifactId>jackson-datatype-jsr310</artifactId> <artifactId>jackson-datatype-jsr310</artifactId>
<version>${jackson-version}</version> <version>${jackson-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
<!-- @Nullable annotation --> <!-- @Nullable annotation -->
<dependency> <dependency>
@ -210,6 +215,7 @@
<maven.compiler.source>11</maven.compiler.source> <maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
<junit-version>4.12</junit-version> <junit-version>4.12</junit-version>
</properties> </properties>
</project> </project>

View File

@ -2,6 +2,7 @@ package {{invokerPackage}};
import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.*;
import org.openapitools.jackson.nullable.JsonNullableModule;
{{#java8}} {{#java8}}
import com.fasterxml.jackson.datatype.jsr310.*; import com.fasterxml.jackson.datatype.jsr310.*;
{{/java8}} {{/java8}}
@ -26,6 +27,8 @@ public class JSON implements ContextResolver<ObjectMapper> {
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
mapper.setDateFormat(new RFC3339DateFormat()); mapper.setDateFormat(new RFC3339DateFormat());
JsonNullableModule jnm = new JsonNullableModule();
mapper.registerModule(jnm);
{{#java8}} {{#java8}}
mapper.registerModule(new JavaTimeModule()); mapper.registerModule(new JavaTimeModule());
{{/java8}} {{/java8}}

View File

@ -212,6 +212,11 @@
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson-databind-version}</version> <version>${jackson-databind-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{#withXml}} {{#withXml}}
<!-- XML processing: Jackson --> <!-- XML processing: Jackson -->
@ -291,6 +296,7 @@
<resteasy-version>3.1.3.Final</resteasy-version> <resteasy-version>3.1.3.Final</resteasy-version>
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<jackson-databind-version>2.9.9</jackson-databind-version> <jackson-databind-version>2.9.9</jackson-databind-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
<threetenbp-version>2.6.4</threetenbp-version> <threetenbp-version>2.6.4</threetenbp-version>
{{^java8}} {{^java8}}
<jodatime-version>2.9.9</jodatime-version> <jodatime-version>2.9.9</jodatime-version>

View File

@ -39,6 +39,7 @@ import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter; import org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import org.openapitools.jackson.nullable.JsonNullableModule;
{{/threetenbp}} {{/threetenbp}}
import java.io.BufferedReader; import java.io.BufferedReader;
@ -661,6 +662,7 @@ public class ApiClient {
messageConverters.add(new MappingJackson2HttpMessageConverter()); messageConverters.add(new MappingJackson2HttpMessageConverter());
XmlMapper xmlMapper = new XmlMapper(); XmlMapper xmlMapper = new XmlMapper();
xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true); xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true);
xmlMapper.registerModule(new JsonNullableModule());
messageConverters.add(new MappingJackson2XmlHttpMessageConverter(xmlMapper)); messageConverters.add(new MappingJackson2XmlHttpMessageConverter(xmlMapper));
RestTemplate restTemplate = new RestTemplate(messageConverters); RestTemplate restTemplate = new RestTemplate(messageConverters);
@ -674,6 +676,7 @@ public class ApiClient {
module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME);
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
mapper.registerModule(module); mapper.registerModule(module);
mapper.registerModule(new JsonNullableModule());
} }
} }
{{/threetenbp}} {{/threetenbp}}

View File

@ -255,6 +255,11 @@
<artifactId>jackson-jaxrs-json-provider</artifactId> <artifactId>jackson-jaxrs-json-provider</artifactId>
<version>${jackson-version}</version> <version>${jackson-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{#withXml}} {{#withXml}}
<!-- XML processing: Jackson --> <!-- XML processing: Jackson -->
@ -306,6 +311,7 @@
<spring-web-version>4.3.9.RELEASE</spring-web-version> <spring-web-version>4.3.9.RELEASE</spring-web-version>
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<jackson-databind-version>2.9.9</jackson-databind-version> <jackson-databind-version>2.9.9</jackson-databind-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
{{#joda}} {{#joda}}
<jodatime-version>2.9.9</jodatime-version> <jodatime-version>2.9.9</jodatime-version>
{{/joda}} {{/joda}}

View File

@ -8,6 +8,8 @@ import java.util.*;
import retrofit2.Retrofit; import retrofit2.Retrofit;
import retrofit2.converter.scalars.ScalarsConverterFactory; import retrofit2.converter.scalars.ScalarsConverterFactory;
import retrofit2.converter.jackson.JacksonConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.openapitools.jackson.nullable.JsonNullableModule;
import play.libs.Json; import play.libs.Json;
import play.libs.ws.WSClient; import play.libs.ws.WSClient;
@ -68,10 +70,14 @@ public class ApiClient {
auth.applyToParams(extraQueryParams, extraHeaders); auth.applyToParams(extraQueryParams, extraHeaders);
} }
ObjectMapper mapper = Json.mapper();
JsonNullableModule jnm = new JsonNullableModule();
mapper.registerModule(jnm);
return new Retrofit.Builder() return new Retrofit.Builder()
.baseUrl(basePath) .baseUrl(basePath)
.addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(ScalarsConverterFactory.create())
.addConverterFactory(JacksonConverterFactory.create(Json.mapper())) .addConverterFactory(JacksonConverterFactory.create(mapper))
.callFactory(new Play24CallFactory(wsClient, extraHeaders, extraQueryParams)) .callFactory(new Play24CallFactory(wsClient, extraHeaders, extraQueryParams))
.addCallAdapterFactory(new Play24CallAdapterFactory()) .addCallAdapterFactory(new Play24CallAdapterFactory())
.build() .build()

View File

@ -8,6 +8,8 @@ import java.util.*;
import retrofit2.Retrofit; import retrofit2.Retrofit;
import retrofit2.converter.scalars.ScalarsConverterFactory; import retrofit2.converter.scalars.ScalarsConverterFactory;
import retrofit2.converter.jackson.JacksonConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.openapitools.jackson.nullable.JsonNullableModule;
import play.libs.Json; import play.libs.Json;
import play.libs.ws.WSClient; import play.libs.ws.WSClient;
@ -67,10 +69,14 @@ public class ApiClient {
auth.applyToParams(extraQueryParams, extraHeaders); auth.applyToParams(extraQueryParams, extraHeaders);
} }
ObjectMapper mapper = Json.mapper();
JsonNullableModule jnm = new JsonNullableModule();
mapper.registerModule(jnm);
return new Retrofit.Builder() return new Retrofit.Builder()
.baseUrl(basePath) .baseUrl(basePath)
.addConverterFactory(ScalarsConverterFactory.create()) .addConverterFactory(ScalarsConverterFactory.create())
.addConverterFactory(JacksonConverterFactory.create(Json.mapper())) .addConverterFactory(JacksonConverterFactory.create(mapper))
.callFactory(new Play25CallFactory(wsClient, extraHeaders, extraQueryParams)) .callFactory(new Play25CallFactory(wsClient, extraHeaders, extraQueryParams))
.addCallAdapterFactory(new Play25CallAdapterFactory()) .addCallAdapterFactory(new Play25CallAdapterFactory())
.build() .build()

View File

@ -13,6 +13,7 @@ import retrofit2.Converter;
import retrofit2.Retrofit; import retrofit2.Retrofit;
import retrofit2.converter.scalars.ScalarsConverterFactory; import retrofit2.converter.scalars.ScalarsConverterFactory;
import retrofit2.converter.jackson.JacksonConverterFactory; import retrofit2.converter.jackson.JacksonConverterFactory;
import org.openapitools.jackson.nullable.JsonNullableModule;
import play.libs.Json; import play.libs.Json;
import play.libs.ws.WSClient; import play.libs.ws.WSClient;
@ -89,6 +90,8 @@ public class ApiClient {
} }
if (defaultMapper == null) { if (defaultMapper == null) {
defaultMapper = Json.mapper(); defaultMapper = Json.mapper();
JsonNullableModule jnm = new JsonNullableModule();
defaultMapper.registerModule(jnm);
} }
return new Retrofit.Builder() return new Retrofit.Builder()

View File

@ -314,6 +314,11 @@
<artifactId>play-java-ws_2.11</artifactId> <artifactId>play-java-ws_2.11</artifactId>
<version>${play-version}</version> <version>${play-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{/play24}} {{/play24}}
{{#play25}} {{#play25}}
<dependency> <dependency>
@ -321,6 +326,11 @@
<artifactId>play-java-ws_2.11</artifactId> <artifactId>play-java-ws_2.11</artifactId>
<version>${play-version}</version> <version>${play-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{/play25}} {{/play25}}
{{#play26}} {{#play26}}
<dependency> <dependency>
@ -333,6 +343,11 @@
<artifactId>validation-api</artifactId> <artifactId>validation-api</artifactId>
<version>1.1.0.Final</version> <version>1.1.0.Final</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{/play26}} {{/play26}}
{{/usePlayWS}} {{/usePlayWS}}
{{#parcelableModel}} {{#parcelableModel}}
@ -373,6 +388,7 @@
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<play-version>2.6.7</play-version> <play-version>2.6.7</play-version>
{{/play26}} {{/play26}}
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
{{/usePlayWS}} {{/usePlayWS}}
<retrofit-version>2.5.0</retrofit-version> <retrofit-version>2.5.0</retrofit-version>
{{#useRxJava}} {{#useRxJava}}

View File

@ -14,6 +14,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.openapitools.jackson.nullable.JsonNullableModule;
import io.vertx.core.*; import io.vertx.core.*;
import io.vertx.core.buffer.Buffer; import io.vertx.core.buffer.Buffer;
import io.vertx.core.file.AsyncFile; import io.vertx.core.file.AsyncFile;
@ -77,6 +78,8 @@ public class ApiClient {
this.objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); this.objectMapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
this.objectMapper.registerModule(new JavaTimeModule()); this.objectMapper.registerModule(new JavaTimeModule());
this.objectMapper.setDateFormat(dateFormat); this.objectMapper.setDateFormat(dateFormat);
JsonNullableModule jnm = new JsonNullableModule();
this.objectMapper.registerModule(jnm);
// Setup authentications (key: authentication name, value: authentication). // Setup authentications (key: authentication name, value: authentication).
this.authentications = new HashMap<>();{{#authMethods}}{{#isBasic}}{{#isBasicBasic}} this.authentications = new HashMap<>();{{#authMethods}}{{#isBasic}}{{#isBasicBasic}}

View File

@ -243,6 +243,11 @@
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson-databind}</version> <version>${jackson-databind}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{#joda}} {{#joda}}
<dependency> <dependency>
<groupId>com.fasterxml.jackson.datatype</groupId> <groupId>com.fasterxml.jackson.datatype</groupId>
@ -286,6 +291,7 @@
<swagger-annotations-version>1.5.22</swagger-annotations-version> <swagger-annotations-version>1.5.22</swagger-annotations-version>
<jackson-version>{{^threetenbp}}2.9.9{{/threetenbp}}{{#threetenbp}}2.6.4{{/threetenbp}}</jackson-version> <jackson-version>{{^threetenbp}}2.9.9{{/threetenbp}}{{#threetenbp}}2.6.4{{/threetenbp}}</jackson-version>
<jackson-databind>{{^threetenbp}}2.9.9{{/threetenbp}}{{#threetenbp}}2.6.4{{/threetenbp}}</jackson-databind> <jackson-databind>{{^threetenbp}}2.9.9{{/threetenbp}}{{#threetenbp}}2.6.4{{/threetenbp}}</jackson-databind>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
<junit-version>4.12</junit-version> <junit-version>4.12</junit-version>
</properties> </properties>
</project> </project>

View File

@ -3,6 +3,7 @@ package {{invokerPackage}};
import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.openapitools.jackson.nullable.JsonNullableModule;
import org.apache.commons.logging.Log; import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory; import org.apache.commons.logging.LogFactory;
import org.springframework.core.ParameterizedTypeReference; import org.springframework.core.ParameterizedTypeReference;
@ -96,6 +97,8 @@ public class ApiClient {
mapper.setDateFormat(dateFormat); mapper.setDateFormat(dateFormat);
mapper.registerModule(new JavaTimeModule()); mapper.registerModule(new JavaTimeModule());
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
JsonNullableModule jnm = new JsonNullableModule();
mapper.registerModule(jnm);
this.webClient = buildWebClient(mapper); this.webClient = buildWebClient(mapper);
this.init(); this.init();

View File

@ -105,6 +105,11 @@
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson-databind-version}</version> <version>${jackson-databind-version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency>
{{#java8}} {{#java8}}
<dependency> <dependency>
@ -140,6 +145,7 @@
<spring-web-version>5.0.7.RELEASE</spring-web-version> <spring-web-version>5.0.7.RELEASE</spring-web-version>
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<jackson-databind-version>2.9.9</jackson-databind-version> <jackson-databind-version>2.9.9</jackson-databind-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
<junit-version>4.12</junit-version> <junit-version>4.12</junit-version>
<reactor-version>3.1.8.RELEASE</reactor-version> <reactor-version>3.1.8.RELEASE</reactor-version>
<reactor-netty-version>0.7.8.RELEASE</reactor-netty-version> <reactor-netty-version>0.7.8.RELEASE</reactor-netty-version>

View File

@ -19,21 +19,6 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
{{/mostInnerItems}} {{/mostInnerItems}}
{{/isContainer}} {{/isContainer}}
{{/isEnum}} {{/isEnum}}
{{#jackson}}
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}}")
{{/isContainer}}
{{#isContainer}}
{{#isXmlWrapped}}
// items.xmlName={{items.xmlName}}
@JacksonXmlElementWrapper(useWrapping = {{isXmlWrapped}}, {{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}localName = "{{#items.xmlName}}{{items.xmlName}}{{/items.xmlName}}{{^items.xmlName}}{{items.baseName}}{{/items.xmlName}}")
{{/isXmlWrapped}}
{{/isContainer}}
{{/withXml}}
{{/jackson}}
{{#withXml}} {{#withXml}}
{{#isXmlAttribute}} {{#isXmlAttribute}}
@XmlAttribute(name = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}") @XmlAttribute(name = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
@ -59,12 +44,25 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}"; public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}";
@SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}}) @SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}})
{{/gson}} {{/gson}}
{{#jackson}}
public static final String JSON_PROPERTY_{{nameInSnakeCase}} = "{{baseName}}";
{{/jackson}}
{{#vendorExtensions.isJacksonOptionalNullable}}
{{#isContainer}}
private JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined();
{{/isContainer}}
{{^isContainer}}
private JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}};
{{/isContainer}}
{{/vendorExtensions.isJacksonOptionalNullable}}
{{^vendorExtensions.isJacksonOptionalNullable}}
{{#isContainer}} {{#isContainer}}
private {{{datatypeWithEnum}}} {{name}}{{#required}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/required}}{{^required}} = null{{/required}}; private {{{datatypeWithEnum}}} {{name}}{{#required}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/required}}{{^required}} = null{{/required}};
{{/isContainer}} {{/isContainer}}
{{^isContainer}} {{^isContainer}}
private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}; private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
{{/isContainer}} {{/isContainer}}
{{/vendorExtensions.isJacksonOptionalNullable}}
{{/vars}} {{/vars}}
{{#parcelableModel}} {{#parcelableModel}}
@ -89,14 +87,28 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
{{/gson}} {{/gson}}
{{/parcelableModel}} {{/parcelableModel}}
{{#vars}} {{#vars}}
{{^isReadOnly}} {{^isReadOnly}}
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
this.{{name}} = {{name}}; {{#vendorExtensions.isJacksonOptionalNullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.isJacksonOptionalNullable}}
{{^vendorExtensions.isJacksonOptionalNullable}}this.{{name}} = {{name}};{{/vendorExtensions.isJacksonOptionalNullable}}
return this; return this;
} }
{{#isListContainer}} {{#isListContainer}}
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) { public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
{{#vendorExtensions.isJacksonOptionalNullable}}
if (this.{{name}} == null || !this.{{name}}.isPresent()) {
this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{{defaultValue}}});
}
try {
this.{{name}}.get().add({{name}}Item);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
{{/vendorExtensions.isJacksonOptionalNullable}}
{{^vendorExtensions.isJacksonOptionalNullable}}
{{^required}} {{^required}}
if (this.{{name}} == null) { if (this.{{name}} == null) {
this.{{name}} = {{{defaultValue}}}; this.{{name}} = {{{defaultValue}}};
@ -104,11 +116,24 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
{{/required}} {{/required}}
this.{{name}}.add({{name}}Item); this.{{name}}.add({{name}}Item);
return this; return this;
{{/vendorExtensions.isJacksonOptionalNullable}}
} }
{{/isListContainer}} {{/isListContainer}}
{{#isMapContainer}} {{#isMapContainer}}
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) { public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
{{#vendorExtensions.isJacksonOptionalNullable}}
if (this.{{name}} == null || !this.{{name}}.isPresent()) {
this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{{defaultValue}}});
}
try {
this.{{name}}.get().put(key, {{name}}Item);
} catch (java.util.NoSuchElementException e) {
// this can never happen, as we make sure above that the value is present
}
return this;
{{/vendorExtensions.isJacksonOptionalNullable}}
{{^vendorExtensions.isJacksonOptionalNullable}}
{{^required}} {{^required}}
if (this.{{name}} == null) { if (this.{{name}} == null) {
this.{{name}} = {{{defaultValue}}}; this.{{name}} = {{{defaultValue}}};
@ -116,6 +141,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
{{/required}} {{/required}}
this.{{name}}.put(key, {{name}}Item); this.{{name}}.put(key, {{name}}Item);
return this; return this;
{{/vendorExtensions.isJacksonOptionalNullable}}
} }
{{/isMapContainer}} {{/isMapContainer}}
@ -147,13 +173,43 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
{{#vendorExtensions.extraAnnotation}} {{#vendorExtensions.extraAnnotation}}
{{{vendorExtensions.extraAnnotation}}} {{{vendorExtensions.extraAnnotation}}}
{{/vendorExtensions.extraAnnotation}} {{/vendorExtensions.extraAnnotation}}
{{^vendorExtensions.isJacksonOptionalNullable}}{{#jackson}}{{> jackson_annotations}}{{/jackson}}{{/vendorExtensions.isJacksonOptionalNullable}}
public {{{datatypeWithEnum}}} {{getter}}() { public {{{datatypeWithEnum}}} {{getter}}() {
{{#vendorExtensions.isJacksonOptionalNullable}}
{{#isReadOnly}}{{! A readonly attribute doesn't have setter => jackson will set null directly if explicitly returned by API, so make sure we have an empty JsonNullable}}
if ({{name}} == null) {
{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}};
}
{{/isReadOnly}}
return {{name}}.orElse(null);
{{/vendorExtensions.isJacksonOptionalNullable}}
{{^vendorExtensions.isJacksonOptionalNullable}}
return {{name}};
{{/vendorExtensions.isJacksonOptionalNullable}}
}
{{#vendorExtensions.isJacksonOptionalNullable}}
{{> jackson_annotations}}
public JsonNullable<{{{datatypeWithEnum}}}> {{getter}}_JsonNullable() {
return {{name}}; return {{name}};
} }
{{/vendorExtensions.isJacksonOptionalNullable}}
{{^isReadOnly}} {{^isReadOnly}}
{{#vendorExtensions.isJacksonOptionalNullable}}
@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}})
public void {{setter}}_JsonNullable(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) {
this.{{name}} = {{name}};
}
{{/vendorExtensions.isJacksonOptionalNullable}}
public void {{setter}}({{{datatypeWithEnum}}} {{name}}) { public void {{setter}}({{{datatypeWithEnum}}} {{name}}) {
{{#vendorExtensions.isJacksonOptionalNullable}}
this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});
{{/vendorExtensions.isJacksonOptionalNullable}}
{{^vendorExtensions.isJacksonOptionalNullable}}
this.{{name}} = {{name}}; this.{{name}} = {{name}};
{{/vendorExtensions.isJacksonOptionalNullable}}
} }
{{/isReadOnly}} {{/isReadOnly}}

View File

@ -13,7 +13,7 @@ class Pet {
Long id Long id
Category category = null Category category
String name String name

View File

@ -236,6 +236,11 @@
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson-databind-version}</version> <version>${jackson-databind-version}</version>
</dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.joschi.jackson</groupId> <groupId>com.github.joschi.jackson</groupId>
@ -277,6 +282,7 @@
<feign-version>9.7.0</feign-version> <feign-version>9.7.0</feign-version>
<feign-form-version>2.1.0</feign-form-version> <feign-form-version>2.1.0</feign-form-version>
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
<jackson-databind-version>2.9.9</jackson-databind-version> <jackson-databind-version>2.9.9</jackson-databind-version>
<jackson-threetenbp-version>2.6.4</jackson-threetenbp-version> <jackson-threetenbp-version>2.6.4</jackson-threetenbp-version>
<junit-version>4.12</junit-version> <junit-version>4.12</junit-version>

View File

@ -10,6 +10,7 @@ import org.threeten.bp.*;
import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.databind.SerializationFeature;
import org.openapitools.jackson.nullable.JsonNullableModule;
import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
import feign.Feign; import feign.Feign;
@ -143,6 +144,8 @@ public class ApiClient {
module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME);
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
objectMapper.registerModule(module); objectMapper.registerModule(module);
JsonNullableModule jnm = new JsonNullableModule();
objectMapper.registerModule(jnm);
return objectMapper; return objectMapper;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesAnyType extends HashMap<String, Object> { public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesAnyType name(String name) { public AdditionalPropertiesAnyType name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,10 +31,11 @@ import java.util.Map;
public class AdditionalPropertiesArray extends HashMap<String, List> { public class AdditionalPropertiesArray extends HashMap<String, List> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesArray name(String name) { public AdditionalPropertiesArray name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> { public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesBoolean name(String name) { public AdditionalPropertiesBoolean name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -31,50 +32,41 @@ import java.util.Map;
public class AdditionalPropertiesClass { public class AdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP_STRING = "map_string"; public static final String JSON_PROPERTY_MAP_STRING = "map_string";
@JsonProperty(JSON_PROPERTY_MAP_STRING)
private Map<String, String> mapString = null; private Map<String, String> mapString = null;
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
private Map<String, BigDecimal> mapNumber = null; private Map<String, BigDecimal> mapNumber = null;
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
private Map<String, Integer> mapInteger = null; private Map<String, Integer> mapInteger = null;
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
private Map<String, Boolean> mapBoolean = null; private Map<String, Boolean> mapBoolean = null;
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "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 = null; private Map<String, List<Integer>> mapArrayInteger = null;
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "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 = null; private Map<String, List<Object>> mapArrayAnytype = null;
public static final String JSON_PROPERTY_MAP_MAP_STRING = "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 = null; private Map<String, Map<String, String>> mapMapString = null;
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "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 = null; private Map<String, Map<String, Object>> mapMapAnytype = null;
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
@JsonProperty(JSON_PROPERTY_ANYTYPE1) private Object anytype1;
private Object anytype1 = null;
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
@JsonProperty(JSON_PROPERTY_ANYTYPE2) private Object anytype2;
private Object anytype2 = null;
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
@JsonProperty(JSON_PROPERTY_ANYTYPE3) private Object anytype3;
private Object anytype3 = null;
public AdditionalPropertiesClass mapString(Map<String, String> mapString) { public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
this.mapString = mapString; this.mapString = mapString;
return this; return this;
} }
@ -93,15 +85,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, String> getMapString() { public Map<String, String> getMapString() {
return mapString; return mapString;
} }
public void setMapString(Map<String, String> mapString) { public void setMapString(Map<String, String> mapString) {
this.mapString = mapString; this.mapString = mapString;
} }
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) { public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
this.mapNumber = mapNumber; this.mapNumber = mapNumber;
return this; return this;
} }
@ -120,15 +119,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, BigDecimal> getMapNumber() { public Map<String, BigDecimal> getMapNumber() {
return mapNumber; return mapNumber;
} }
public void setMapNumber(Map<String, BigDecimal> mapNumber) { public void setMapNumber(Map<String, BigDecimal> mapNumber) {
this.mapNumber = mapNumber; this.mapNumber = mapNumber;
} }
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) { public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger; this.mapInteger = mapInteger;
return this; return this;
} }
@ -147,15 +153,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Integer> getMapInteger() { public Map<String, Integer> getMapInteger() {
return mapInteger; return mapInteger;
} }
public void setMapInteger(Map<String, Integer> mapInteger) { public void setMapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger; this.mapInteger = mapInteger;
} }
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) { public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean; this.mapBoolean = mapBoolean;
return this; return this;
} }
@ -174,15 +187,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getMapBoolean() { public Map<String, Boolean> getMapBoolean() {
return mapBoolean; return mapBoolean;
} }
public void setMapBoolean(Map<String, Boolean> mapBoolean) { public void setMapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean; this.mapBoolean = mapBoolean;
} }
public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) { public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger; this.mapArrayInteger = mapArrayInteger;
return this; return this;
} }
@ -201,15 +221,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, List<Integer>> getMapArrayInteger() { public Map<String, List<Integer>> getMapArrayInteger() {
return mapArrayInteger; return mapArrayInteger;
} }
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) { public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger; this.mapArrayInteger = mapArrayInteger;
} }
public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) { public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype; this.mapArrayAnytype = mapArrayAnytype;
return this; return this;
} }
@ -228,15 +255,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, List<Object>> getMapArrayAnytype() { public Map<String, List<Object>> getMapArrayAnytype() {
return mapArrayAnytype; return mapArrayAnytype;
} }
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) { public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype; this.mapArrayAnytype = mapArrayAnytype;
} }
public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) { public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString; this.mapMapString = mapMapString;
return this; return this;
} }
@ -255,15 +289,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, String>> getMapMapString() { public Map<String, Map<String, String>> getMapMapString() {
return mapMapString; return mapMapString;
} }
public void setMapMapString(Map<String, Map<String, String>> mapMapString) { public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString; this.mapMapString = mapMapString;
} }
public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) { public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype; this.mapMapAnytype = mapMapAnytype;
return this; return this;
} }
@ -282,15 +323,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, Object>> getMapMapAnytype() { public Map<String, Map<String, Object>> getMapMapAnytype() {
return mapMapAnytype; return mapMapAnytype;
} }
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) { public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype; this.mapMapAnytype = mapMapAnytype;
} }
public AdditionalPropertiesClass anytype1(Object anytype1) { public AdditionalPropertiesClass anytype1(Object anytype1) {
this.anytype1 = anytype1; this.anytype1 = anytype1;
return this; return this;
} }
@ -301,15 +349,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAnytype1() { public Object getAnytype1() {
return anytype1; return anytype1;
} }
public void setAnytype1(Object anytype1) { public void setAnytype1(Object anytype1) {
this.anytype1 = anytype1; this.anytype1 = anytype1;
} }
public AdditionalPropertiesClass anytype2(Object anytype2) { public AdditionalPropertiesClass anytype2(Object anytype2) {
this.anytype2 = anytype2; this.anytype2 = anytype2;
return this; return this;
} }
@ -320,15 +375,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAnytype2() { public Object getAnytype2() {
return anytype2; return anytype2;
} }
public void setAnytype2(Object anytype2) { public void setAnytype2(Object anytype2) {
this.anytype2 = anytype2; this.anytype2 = anytype2;
} }
public AdditionalPropertiesClass anytype3(Object anytype3) { public AdditionalPropertiesClass anytype3(Object anytype3) {
this.anytype3 = anytype3; this.anytype3 = anytype3;
return this; return this;
} }
@ -339,10 +401,15 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAnytype3() { public Object getAnytype3() {
return anytype3; return anytype3;
} }
public void setAnytype3(Object anytype3) { public void setAnytype3(Object anytype3) {
this.anytype3 = anytype3; this.anytype3 = anytype3;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesInteger extends HashMap<String, Integer> { public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesInteger name(String name) { public AdditionalPropertiesInteger name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,10 +31,11 @@ import java.util.Map;
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> { public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesNumber name(String name) { public AdditionalPropertiesNumber name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesObject extends HashMap<String, Map> { public class AdditionalPropertiesObject extends HashMap<String, Map> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesObject name(String name) { public AdditionalPropertiesObject name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesString extends HashMap<String, String> { public class AdditionalPropertiesString extends HashMap<String, String> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesString name(String name) { public AdditionalPropertiesString name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonSubTypes;
@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty;
public class Animal { public class Animal {
public static final String JSON_PROPERTY_CLASS_NAME = "className"; public static final String JSON_PROPERTY_CLASS_NAME = "className";
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
private String className; private String className;
public static final String JSON_PROPERTY_COLOR = "color"; public static final String JSON_PROPERTY_COLOR = "color";
@JsonProperty(JSON_PROPERTY_COLOR)
private String color = "red"; private String color = "red";
public Animal className(String className) { public Animal className(String className) {
this.className = className; this.className = className;
return this; return this;
} }
@ -52,15 +53,22 @@ public class Animal {
* @return className * @return className
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getClassName() { public String getClassName() {
return className; return className;
} }
public void setClassName(String className) { public void setClassName(String className) {
this.className = className; this.className = className;
} }
public Animal color(String color) { public Animal color(String color) {
this.color = color; this.color = color;
return this; return this;
} }
@ -71,10 +79,15 @@ public class Animal {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getColor() { public String getColor() {
return color; return color;
} }
public void setColor(String color) { public void setColor(String color) {
this.color = color; this.color = color;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,10 +31,11 @@ import java.util.List;
public class ArrayOfArrayOfNumberOnly { public class ArrayOfArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
private List<List<BigDecimal>> arrayArrayNumber = null; private List<List<BigDecimal>> arrayArrayNumber = null;
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) { public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber; this.arrayArrayNumber = arrayArrayNumber;
return this; return this;
} }
@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber; return arrayArrayNumber;
} }
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) { public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber; this.arrayArrayNumber = arrayArrayNumber;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,10 +31,11 @@ import java.util.List;
public class ArrayOfNumberOnly { public class ArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
private List<BigDecimal> arrayNumber = null; private List<BigDecimal> arrayNumber = null;
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) { public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber; this.arrayNumber = arrayNumber;
return this; return this;
} }
@ -52,10 +54,15 @@ public class ArrayOfNumberOnly {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {
return arrayNumber; return arrayNumber;
} }
public void setArrayNumber(List<BigDecimal> arrayNumber) { public void setArrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber; this.arrayNumber = arrayNumber;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst;
public class ArrayTest { public class ArrayTest {
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "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 = null; private List<String> arrayOfString = null;
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "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 = null; private List<List<Long>> arrayArrayOfInteger = null;
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "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 = null; private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
public ArrayTest arrayOfString(List<String> arrayOfString) { public ArrayTest arrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString; this.arrayOfString = arrayOfString;
return this; return this;
} }
@ -60,15 +60,22 @@ public class ArrayTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
return arrayOfString; return arrayOfString;
} }
public void setArrayOfString(List<String> arrayOfString) { public void setArrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString; this.arrayOfString = arrayOfString;
} }
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) { public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger; this.arrayArrayOfInteger = arrayArrayOfInteger;
return this; return this;
} }
@ -87,15 +94,22 @@ public class ArrayTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger; return arrayArrayOfInteger;
} }
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) { public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger; this.arrayArrayOfInteger = arrayArrayOfInteger;
} }
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) { public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel; this.arrayArrayOfModel = arrayArrayOfModel;
return this; return this;
} }
@ -114,10 +128,15 @@ public class ArrayTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel; return arrayArrayOfModel;
} }
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) { public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel; this.arrayArrayOfModel = arrayArrayOfModel;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty;
public class Capitalization { public class Capitalization {
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
private String smallCamel; private String smallCamel;
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
private String capitalCamel; private String capitalCamel;
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
private String smallSnake; private String smallSnake;
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
private String capitalSnake; private String capitalSnake;
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "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; private String scAETHFlowPoints;
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "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; private String ATT_NAME;
public Capitalization smallCamel(String smallCamel) { public Capitalization smallCamel(String smallCamel) {
this.smallCamel = smallCamel; this.smallCamel = smallCamel;
return this; return this;
} }
@ -61,15 +58,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSmallCamel() { public String getSmallCamel() {
return smallCamel; return smallCamel;
} }
public void setSmallCamel(String smallCamel) { public void setSmallCamel(String smallCamel) {
this.smallCamel = smallCamel; this.smallCamel = smallCamel;
} }
public Capitalization capitalCamel(String capitalCamel) { public Capitalization capitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel; this.capitalCamel = capitalCamel;
return this; return this;
} }
@ -80,15 +84,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCapitalCamel() { public String getCapitalCamel() {
return capitalCamel; return capitalCamel;
} }
public void setCapitalCamel(String capitalCamel) { public void setCapitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel; this.capitalCamel = capitalCamel;
} }
public Capitalization smallSnake(String smallSnake) { public Capitalization smallSnake(String smallSnake) {
this.smallSnake = smallSnake; this.smallSnake = smallSnake;
return this; return this;
} }
@ -99,15 +110,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSmallSnake() { public String getSmallSnake() {
return smallSnake; return smallSnake;
} }
public void setSmallSnake(String smallSnake) { public void setSmallSnake(String smallSnake) {
this.smallSnake = smallSnake; this.smallSnake = smallSnake;
} }
public Capitalization capitalSnake(String capitalSnake) { public Capitalization capitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake; this.capitalSnake = capitalSnake;
return this; return this;
} }
@ -118,15 +136,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCapitalSnake() { public String getCapitalSnake() {
return capitalSnake; return capitalSnake;
} }
public void setCapitalSnake(String capitalSnake) { public void setCapitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake; this.capitalSnake = capitalSnake;
} }
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints; this.scAETHFlowPoints = scAETHFlowPoints;
return this; return this;
} }
@ -137,15 +162,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getScAETHFlowPoints() { public String getScAETHFlowPoints() {
return scAETHFlowPoints; return scAETHFlowPoints;
} }
public void setScAETHFlowPoints(String scAETHFlowPoints) { public void setScAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints; this.scAETHFlowPoints = scAETHFlowPoints;
} }
public Capitalization ATT_NAME(String ATT_NAME) { public Capitalization ATT_NAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME; this.ATT_NAME = ATT_NAME;
return this; return this;
} }
@ -156,10 +188,15 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Name of the pet ") @ApiModelProperty(value = "Name of the pet ")
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getATTNAME() { public String getATTNAME() {
return ATT_NAME; return ATT_NAME;
} }
public void setATTNAME(String ATT_NAME) { public void setATTNAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME; this.ATT_NAME = ATT_NAME;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf;
public class Cat extends Animal { public class Cat extends Animal {
public static final String JSON_PROPERTY_DECLAWED = "declawed"; public static final String JSON_PROPERTY_DECLAWED = "declawed";
@JsonProperty(JSON_PROPERTY_DECLAWED)
private Boolean declawed; private Boolean declawed;
public Cat declawed(Boolean declawed) { public Cat declawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
return this; return this;
} }
@ -43,10 +45,15 @@ public class Cat extends Animal {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isDeclawed() { public Boolean isDeclawed() {
return declawed; return declawed;
} }
public void setDeclawed(Boolean declawed) { public void setDeclawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty;
public class CatAllOf { public class CatAllOf {
public static final String JSON_PROPERTY_DECLAWED = "declawed"; public static final String JSON_PROPERTY_DECLAWED = "declawed";
@JsonProperty(JSON_PROPERTY_DECLAWED)
private Boolean declawed; private Boolean declawed;
public CatAllOf declawed(Boolean declawed) { public CatAllOf declawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
return this; return this;
} }
@ -41,10 +43,15 @@ public class CatAllOf {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isDeclawed() { public Boolean isDeclawed() {
return declawed; return declawed;
} }
public void setDeclawed(Boolean declawed) { public void setDeclawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty;
public class Category { public class Category {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
private Long id; private Long id;
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name = "default-name"; private String name = "default-name";
public Category id(Long id) { public Category id(Long id) {
this.id = id; this.id = id;
return this; return this;
} }
@ -45,15 +46,22 @@ public class Category {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Category name(String name) { public Category name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -63,10 +71,15 @@ public class Category {
* @return name * @return name
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty;
public class ClassModel { public class ClassModel {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
private String propertyClass; private String propertyClass;
public ClassModel propertyClass(String propertyClass) { public ClassModel propertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
return this; return this;
} }
@ -42,10 +44,15 @@ public class ClassModel {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;
} }
public void setPropertyClass(String propertyClass) { public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty;
public class Client { public class Client {
public static final String JSON_PROPERTY_CLIENT = "client"; public static final String JSON_PROPERTY_CLIENT = "client";
@JsonProperty(JSON_PROPERTY_CLIENT)
private String client; private String client;
public Client client(String client) { public Client client(String client) {
this.client = client; this.client = client;
return this; return this;
} }
@ -41,10 +43,15 @@ public class Client {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClient() { public String getClient() {
return client; return client;
} }
public void setClient(String client) { public void setClient(String client) {
this.client = client; this.client = client;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf;
public class Dog extends Animal { public class Dog extends Animal {
public static final String JSON_PROPERTY_BREED = "breed"; public static final String JSON_PROPERTY_BREED = "breed";
@JsonProperty(JSON_PROPERTY_BREED)
private String breed; private String breed;
public Dog breed(String breed) { public Dog breed(String breed) {
this.breed = breed; this.breed = breed;
return this; return this;
} }
@ -43,10 +45,15 @@ public class Dog extends Animal {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBreed() { public String getBreed() {
return breed; return breed;
} }
public void setBreed(String breed) { public void setBreed(String breed) {
this.breed = breed; this.breed = breed;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty;
public class DogAllOf { public class DogAllOf {
public static final String JSON_PROPERTY_BREED = "breed"; public static final String JSON_PROPERTY_BREED = "breed";
@JsonProperty(JSON_PROPERTY_BREED)
private String breed; private String breed;
public DogAllOf breed(String breed) { public DogAllOf breed(String breed) {
this.breed = breed; this.breed = breed;
return this; return this;
} }
@ -41,10 +43,15 @@ public class DogAllOf {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBreed() { public String getBreed() {
return breed; return breed;
} }
public void setBreed(String breed) { public void setBreed(String breed) {
this.breed = breed; this.breed = breed;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -64,7 +65,6 @@ public class EnumArrays {
} }
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
private JustSymbolEnum justSymbol; private JustSymbolEnum justSymbol;
/** /**
@ -103,10 +103,11 @@ public class EnumArrays {
} }
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
private List<ArrayEnumEnum> arrayEnum = null; private List<ArrayEnumEnum> arrayEnum = null;
public EnumArrays justSymbol(JustSymbolEnum justSymbol) { public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol; this.justSymbol = justSymbol;
return this; return this;
} }
@ -117,15 +118,22 @@ public class EnumArrays {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
return justSymbol; return justSymbol;
} }
public void setJustSymbol(JustSymbolEnum justSymbol) { public void setJustSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol; this.justSymbol = justSymbol;
} }
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) { public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum; this.arrayEnum = arrayEnum;
return this; return this;
} }
@ -144,10 +152,15 @@ public class EnumArrays {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum; return arrayEnum;
} }
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) { public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum; this.arrayEnum = arrayEnum;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -65,7 +66,6 @@ public class EnumTest {
} }
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
private EnumStringEnum enumString; private EnumStringEnum enumString;
/** /**
@ -106,7 +106,6 @@ public class EnumTest {
} }
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
private EnumStringRequiredEnum enumStringRequired; private EnumStringRequiredEnum enumStringRequired;
/** /**
@ -145,7 +144,6 @@ public class EnumTest {
} }
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
private EnumIntegerEnum enumInteger; private EnumIntegerEnum enumInteger;
/** /**
@ -184,14 +182,14 @@ public class EnumTest {
} }
public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
private EnumNumberEnum enumNumber; private EnumNumberEnum enumNumber;
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
private OuterEnum outerEnum; private OuterEnum outerEnum;
public EnumTest enumString(EnumStringEnum enumString) { public EnumTest enumString(EnumStringEnum enumString) {
this.enumString = enumString; this.enumString = enumString;
return this; return this;
} }
@ -202,15 +200,22 @@ public class EnumTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
return enumString; return enumString;
} }
public void setEnumString(EnumStringEnum enumString) { public void setEnumString(EnumStringEnum enumString) {
this.enumString = enumString; this.enumString = enumString;
} }
public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired; this.enumStringRequired = enumStringRequired;
return this; return this;
} }
@ -220,15 +225,22 @@ public class EnumTest {
* @return enumStringRequired * @return enumStringRequired
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public EnumStringRequiredEnum getEnumStringRequired() { public EnumStringRequiredEnum getEnumStringRequired() {
return enumStringRequired; return enumStringRequired;
} }
public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired; this.enumStringRequired = enumStringRequired;
} }
public EnumTest enumInteger(EnumIntegerEnum enumInteger) { public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger; this.enumInteger = enumInteger;
return this; return this;
} }
@ -239,15 +251,22 @@ public class EnumTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
return enumInteger; return enumInteger;
} }
public void setEnumInteger(EnumIntegerEnum enumInteger) { public void setEnumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger; this.enumInteger = enumInteger;
} }
public EnumTest enumNumber(EnumNumberEnum enumNumber) { public EnumTest enumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber; this.enumNumber = enumNumber;
return this; return this;
} }
@ -258,15 +277,22 @@ public class EnumTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
return enumNumber; return enumNumber;
} }
public void setEnumNumber(EnumNumberEnum enumNumber) { public void setEnumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber; this.enumNumber = enumNumber;
} }
public EnumTest outerEnum(OuterEnum outerEnum) { public EnumTest outerEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum; this.outerEnum = outerEnum;
return this; return this;
} }
@ -277,10 +303,15 @@ public class EnumTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OuterEnum getOuterEnum() { public OuterEnum getOuterEnum() {
return outerEnum; return outerEnum;
} }
public void setOuterEnum(OuterEnum outerEnum) { public void setOuterEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum; this.outerEnum = outerEnum;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,14 +30,14 @@ import java.util.List;
public class FileSchemaTestClass { public class FileSchemaTestClass {
public static final String JSON_PROPERTY_FILE = "file"; public static final String JSON_PROPERTY_FILE = "file";
@JsonProperty(JSON_PROPERTY_FILE) private java.io.File file;
private java.io.File file = null;
public static final String JSON_PROPERTY_FILES = "files"; public static final String JSON_PROPERTY_FILES = "files";
@JsonProperty(JSON_PROPERTY_FILES)
private List<java.io.File> files = null; private List<java.io.File> files = null;
public FileSchemaTestClass file(java.io.File file) { public FileSchemaTestClass file(java.io.File file) {
this.file = file; this.file = file;
return this; return this;
} }
@ -47,15 +48,22 @@ public class FileSchemaTestClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.io.File getFile() { public java.io.File getFile() {
return file; return file;
} }
public void setFile(java.io.File file) { public void setFile(java.io.File file) {
this.file = file; this.file = file;
} }
public FileSchemaTestClass files(List<java.io.File> files) { public FileSchemaTestClass files(List<java.io.File> files) {
this.files = files; this.files = files;
return this; return this;
} }
@ -74,10 +82,15 @@ public class FileSchemaTestClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<java.io.File> getFiles() { public List<java.io.File> getFiles() {
return files; return files;
} }
public void setFiles(List<java.io.File> files) { public void setFiles(List<java.io.File> files) {
this.files = files; this.files = files;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -32,58 +33,47 @@ import org.threeten.bp.OffsetDateTime;
public class FormatTest { public class FormatTest {
public static final String JSON_PROPERTY_INTEGER = "integer"; public static final String JSON_PROPERTY_INTEGER = "integer";
@JsonProperty(JSON_PROPERTY_INTEGER)
private Integer integer; private Integer integer;
public static final String JSON_PROPERTY_INT32 = "int32"; public static final String JSON_PROPERTY_INT32 = "int32";
@JsonProperty(JSON_PROPERTY_INT32)
private Integer int32; private Integer int32;
public static final String JSON_PROPERTY_INT64 = "int64"; public static final String JSON_PROPERTY_INT64 = "int64";
@JsonProperty(JSON_PROPERTY_INT64)
private Long int64; private Long int64;
public static final String JSON_PROPERTY_NUMBER = "number"; public static final String JSON_PROPERTY_NUMBER = "number";
@JsonProperty(JSON_PROPERTY_NUMBER)
private BigDecimal number; private BigDecimal number;
public static final String JSON_PROPERTY_FLOAT = "float"; public static final String JSON_PROPERTY_FLOAT = "float";
@JsonProperty(JSON_PROPERTY_FLOAT)
private Float _float; private Float _float;
public static final String JSON_PROPERTY_DOUBLE = "double"; public static final String JSON_PROPERTY_DOUBLE = "double";
@JsonProperty(JSON_PROPERTY_DOUBLE)
private Double _double; private Double _double;
public static final String JSON_PROPERTY_STRING = "string"; public static final String JSON_PROPERTY_STRING = "string";
@JsonProperty(JSON_PROPERTY_STRING)
private String string; private String string;
public static final String JSON_PROPERTY_BYTE = "byte"; public static final String JSON_PROPERTY_BYTE = "byte";
@JsonProperty(JSON_PROPERTY_BYTE)
private byte[] _byte; private byte[] _byte;
public static final String JSON_PROPERTY_BINARY = "binary"; public static final String JSON_PROPERTY_BINARY = "binary";
@JsonProperty(JSON_PROPERTY_BINARY)
private File binary; private File binary;
public static final String JSON_PROPERTY_DATE = "date"; public static final String JSON_PROPERTY_DATE = "date";
@JsonProperty(JSON_PROPERTY_DATE)
private LocalDate date; private LocalDate date;
public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
@JsonProperty(JSON_PROPERTY_DATE_TIME)
private OffsetDateTime dateTime; private OffsetDateTime dateTime;
public static final String JSON_PROPERTY_UUID = "uuid"; public static final String JSON_PROPERTY_UUID = "uuid";
@JsonProperty(JSON_PROPERTY_UUID)
private UUID uuid; private UUID uuid;
public static final String JSON_PROPERTY_PASSWORD = "password"; public static final String JSON_PROPERTY_PASSWORD = "password";
@JsonProperty(JSON_PROPERTY_PASSWORD)
private String password; private String password;
public FormatTest integer(Integer integer) { public FormatTest integer(Integer integer) {
this.integer = integer; this.integer = integer;
return this; return this;
} }
@ -96,15 +86,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInteger() { public Integer getInteger() {
return integer; return integer;
} }
public void setInteger(Integer integer) { public void setInteger(Integer integer) {
this.integer = integer; this.integer = integer;
} }
public FormatTest int32(Integer int32) { public FormatTest int32(Integer int32) {
this.int32 = int32; this.int32 = int32;
return this; return this;
} }
@ -117,15 +114,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT32)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInt32() { public Integer getInt32() {
return int32; return int32;
} }
public void setInt32(Integer int32) { public void setInt32(Integer int32) {
this.int32 = int32; this.int32 = int32;
} }
public FormatTest int64(Long int64) { public FormatTest int64(Long int64) {
this.int64 = int64; this.int64 = int64;
return this; return this;
} }
@ -136,15 +140,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT64)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getInt64() { public Long getInt64() {
return int64; return int64;
} }
public void setInt64(Long int64) { public void setInt64(Long int64) {
this.int64 = int64; this.int64 = int64;
} }
public FormatTest number(BigDecimal number) { public FormatTest number(BigDecimal number) {
this.number = number; this.number = number;
return this; return this;
} }
@ -156,15 +167,22 @@ public class FormatTest {
* @return number * @return number
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getNumber() { public BigDecimal getNumber() {
return number; return number;
} }
public void setNumber(BigDecimal number) { public void setNumber(BigDecimal number) {
this.number = number; this.number = number;
} }
public FormatTest _float(Float _float) { public FormatTest _float(Float _float) {
this._float = _float; this._float = _float;
return this; return this;
} }
@ -177,15 +195,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Float getFloat() { public Float getFloat() {
return _float; return _float;
} }
public void setFloat(Float _float) { public void setFloat(Float _float) {
this._float = _float; this._float = _float;
} }
public FormatTest _double(Double _double) { public FormatTest _double(Double _double) {
this._double = _double; this._double = _double;
return this; return this;
} }
@ -198,15 +223,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getDouble() { public Double getDouble() {
return _double; return _double;
} }
public void setDouble(Double _double) { public void setDouble(Double _double) {
this._double = _double; this._double = _double;
} }
public FormatTest string(String string) { public FormatTest string(String string) {
this.string = string; this.string = string;
return this; return this;
} }
@ -217,15 +249,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getString() { public String getString() {
return string; return string;
} }
public void setString(String string) { public void setString(String string) {
this.string = string; this.string = string;
} }
public FormatTest _byte(byte[] _byte) { public FormatTest _byte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
return this; return this;
} }
@ -235,15 +274,22 @@ public class FormatTest {
* @return _byte * @return _byte
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public byte[] getByte() { public byte[] getByte() {
return _byte; return _byte;
} }
public void setByte(byte[] _byte) { public void setByte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
} }
public FormatTest binary(File binary) { public FormatTest binary(File binary) {
this.binary = binary; this.binary = binary;
return this; return this;
} }
@ -254,15 +300,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BINARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public File getBinary() { public File getBinary() {
return binary; return binary;
} }
public void setBinary(File binary) { public void setBinary(File binary) {
this.binary = binary; this.binary = binary;
} }
public FormatTest date(LocalDate date) { public FormatTest date(LocalDate date) {
this.date = date; this.date = date;
return this; return this;
} }
@ -272,15 +325,22 @@ public class FormatTest {
* @return date * @return date
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public LocalDate getDate() { public LocalDate getDate() {
return date; return date;
} }
public void setDate(LocalDate date) { public void setDate(LocalDate date) {
this.date = date; this.date = date;
} }
public FormatTest dateTime(OffsetDateTime dateTime) { public FormatTest dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
return this; return this;
} }
@ -291,15 +351,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getDateTime() { public OffsetDateTime getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(OffsetDateTime dateTime) { public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public FormatTest uuid(UUID uuid) { public FormatTest uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
return this; return this;
} }
@ -310,15 +377,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
public FormatTest password(String password) { public FormatTest password(String password) {
this.password = password; this.password = password;
return this; return this;
} }
@ -328,10 +402,15 @@ public class FormatTest {
* @return password * @return password
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPassword() { public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty;
public class HasOnlyReadOnly { public class HasOnlyReadOnly {
public static final String JSON_PROPERTY_BAR = "bar"; public static final String JSON_PROPERTY_BAR = "bar";
@JsonProperty(JSON_PROPERTY_BAR)
private String bar; private String bar;
public static final String JSON_PROPERTY_FOO = "foo"; public static final String JSON_PROPERTY_FOO = "foo";
@JsonProperty(JSON_PROPERTY_FOO)
private String foo; private String foo;
/** /**
* Get bar * Get bar
* @return bar * @return bar
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBar() { public String getBar() {
return bar; return bar;
} }
/** /**
* Get foo * Get foo
* @return foo * @return foo
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FOO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFoo() { public String getFoo() {
return foo; return foo;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,7 +31,6 @@ import java.util.Map;
public class MapTest { public class MapTest {
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "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 = null; private Map<String, Map<String, String>> mapMapOfString = null;
/** /**
@ -69,18 +69,17 @@ public class MapTest {
} }
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "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 = null; private Map<String, InnerEnum> mapOfEnumString = null;
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
private Map<String, Boolean> directMap = null; private Map<String, Boolean> directMap = null;
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
private Map<String, Boolean> indirectMap = null; private Map<String, Boolean> indirectMap = null;
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) { public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString; this.mapMapOfString = mapMapOfString;
return this; return this;
} }
@ -99,15 +98,22 @@ public class MapTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString; return mapMapOfString;
} }
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) { public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString; this.mapMapOfString = mapMapOfString;
} }
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) { public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString; this.mapOfEnumString = mapOfEnumString;
return this; return this;
} }
@ -126,15 +132,22 @@ public class MapTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString; return mapOfEnumString;
} }
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) { public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString; this.mapOfEnumString = mapOfEnumString;
} }
public MapTest directMap(Map<String, Boolean> directMap) { public MapTest directMap(Map<String, Boolean> directMap) {
this.directMap = directMap; this.directMap = directMap;
return this; return this;
} }
@ -153,15 +166,22 @@ public class MapTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getDirectMap() { public Map<String, Boolean> getDirectMap() {
return directMap; return directMap;
} }
public void setDirectMap(Map<String, Boolean> directMap) { public void setDirectMap(Map<String, Boolean> directMap) {
this.directMap = directMap; this.directMap = directMap;
} }
public MapTest indirectMap(Map<String, Boolean> indirectMap) { public MapTest indirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
return this; return this;
} }
@ -180,10 +200,15 @@ public class MapTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getIndirectMap() { public Map<String, Boolean> getIndirectMap() {
return indirectMap; return indirectMap;
} }
public void setIndirectMap(Map<String, Boolean> indirectMap) { public void setIndirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -33,18 +34,17 @@ import org.threeten.bp.OffsetDateTime;
public class MixedPropertiesAndAdditionalPropertiesClass { public class MixedPropertiesAndAdditionalPropertiesClass {
public static final String JSON_PROPERTY_UUID = "uuid"; public static final String JSON_PROPERTY_UUID = "uuid";
@JsonProperty(JSON_PROPERTY_UUID)
private UUID uuid; private UUID uuid;
public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
@JsonProperty(JSON_PROPERTY_DATE_TIME)
private OffsetDateTime dateTime; private OffsetDateTime dateTime;
public static final String JSON_PROPERTY_MAP = "map"; public static final String JSON_PROPERTY_MAP = "map";
@JsonProperty(JSON_PROPERTY_MAP)
private Map<String, Animal> map = null; private Map<String, Animal> map = null;
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) { public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
return this; return this;
} }
@ -55,15 +55,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) { public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
return this; return this;
} }
@ -74,15 +81,22 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getDateTime() { public OffsetDateTime getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(OffsetDateTime dateTime) { public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) { public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
this.map = map; this.map = map;
return this; return this;
} }
@ -101,10 +115,15 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Animal> getMap() { public Map<String, Animal> getMap() {
return map; return map;
} }
public void setMap(Map<String, Animal> map) { public void setMap(Map<String, Animal> map) {
this.map = map; this.map = map;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -28,14 +29,14 @@ import io.swagger.annotations.ApiModelProperty;
public class Model200Response { public class Model200Response {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private Integer name; private Integer name;
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
private String propertyClass; private String propertyClass;
public Model200Response name(Integer name) { public Model200Response name(Integer name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -46,15 +47,22 @@ public class Model200Response {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getName() { public Integer getName() {
return name; return name;
} }
public void setName(Integer name) { public void setName(Integer name) {
this.name = name; this.name = name;
} }
public Model200Response propertyClass(String propertyClass) { public Model200Response propertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
return this; return this;
} }
@ -65,10 +73,15 @@ public class Model200Response {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;
} }
public void setPropertyClass(String propertyClass) { public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,18 +28,17 @@ import io.swagger.annotations.ApiModelProperty;
public class ModelApiResponse { public class ModelApiResponse {
public static final String JSON_PROPERTY_CODE = "code"; public static final String JSON_PROPERTY_CODE = "code";
@JsonProperty(JSON_PROPERTY_CODE)
private Integer code; private Integer code;
public static final String JSON_PROPERTY_TYPE = "type"; public static final String JSON_PROPERTY_TYPE = "type";
@JsonProperty(JSON_PROPERTY_TYPE)
private String type; private String type;
public static final String JSON_PROPERTY_MESSAGE = "message"; public static final String JSON_PROPERTY_MESSAGE = "message";
@JsonProperty(JSON_PROPERTY_MESSAGE)
private String message; private String message;
public ModelApiResponse code(Integer code) { public ModelApiResponse code(Integer code) {
this.code = code; this.code = code;
return this; return this;
} }
@ -49,15 +49,22 @@ public class ModelApiResponse {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CODE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getCode() { public Integer getCode() {
return code; return code;
} }
public void setCode(Integer code) { public void setCode(Integer code) {
this.code = code; this.code = code;
} }
public ModelApiResponse type(String type) { public ModelApiResponse type(String type) {
this.type = type; this.type = type;
return this; return this;
} }
@ -68,15 +75,22 @@ public class ModelApiResponse {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getType() { public String getType() {
return type; return type;
} }
public void setType(String type) { public void setType(String type) {
this.type = type; this.type = type;
} }
public ModelApiResponse message(String message) { public ModelApiResponse message(String message) {
this.message = message; this.message = message;
return this; return this;
} }
@ -87,10 +101,15 @@ public class ModelApiResponse {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MESSAGE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMessage() { public String getMessage() {
return message; return message;
} }
public void setMessage(String message) { public void setMessage(String message) {
this.message = message; this.message = message;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty;
public class ModelReturn { public class ModelReturn {
public static final String JSON_PROPERTY_RETURN = "return"; public static final String JSON_PROPERTY_RETURN = "return";
@JsonProperty(JSON_PROPERTY_RETURN)
private Integer _return; private Integer _return;
public ModelReturn _return(Integer _return) { public ModelReturn _return(Integer _return) {
this._return = _return; this._return = _return;
return this; return this;
} }
@ -42,10 +44,15 @@ public class ModelReturn {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_RETURN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getReturn() { public Integer getReturn() {
return _return; return _return;
} }
public void setReturn(Integer _return) { public void setReturn(Integer _return) {
this._return = _return; this._return = _return;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -28,22 +29,20 @@ import io.swagger.annotations.ApiModelProperty;
public class Name { public class Name {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private Integer name; private Integer name;
public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case"; public static final String JSON_PROPERTY_SNAKE_CASE = "snake_case";
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
private Integer snakeCase; private Integer snakeCase;
public static final String JSON_PROPERTY_PROPERTY = "property"; public static final String JSON_PROPERTY_PROPERTY = "property";
@JsonProperty(JSON_PROPERTY_PROPERTY)
private String property; private String property;
public static final String JSON_PROPERTY_123NUMBER = "123Number"; public static final String JSON_PROPERTY_123NUMBER = "123Number";
@JsonProperty(JSON_PROPERTY_123NUMBER)
private Integer _123number; private Integer _123number;
public Name name(Integer name) { public Name name(Integer name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -53,25 +52,38 @@ public class Name {
* @return name * @return name
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getName() { public Integer getName() {
return name; return name;
} }
public void setName(Integer name) { public void setName(Integer name) {
this.name = name; this.name = name;
} }
/** /**
* Get snakeCase * Get snakeCase
* @return snakeCase * @return snakeCase
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SNAKE_CASE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getSnakeCase() { public Integer getSnakeCase() {
return snakeCase; return snakeCase;
} }
public Name property(String property) { public Name property(String property) {
this.property = property; this.property = property;
return this; return this;
} }
@ -82,25 +94,36 @@ public class Name {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getProperty() { public String getProperty() {
return property; return property;
} }
public void setProperty(String property) { public void setProperty(String property) {
this.property = property; this.property = property;
} }
/** /**
* Get _123number * Get _123number
* @return _123number * @return _123number
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_123NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer get123number() { public Integer get123number() {
return _123number; return _123number;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -28,10 +29,11 @@ import java.math.BigDecimal;
public class NumberOnly { public class NumberOnly {
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber"; public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
private BigDecimal justNumber; private BigDecimal justNumber;
public NumberOnly justNumber(BigDecimal justNumber) { public NumberOnly justNumber(BigDecimal justNumber) {
this.justNumber = justNumber; this.justNumber = justNumber;
return this; return this;
} }
@ -42,10 +44,15 @@ public class NumberOnly {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getJustNumber() { public BigDecimal getJustNumber() {
return justNumber; return justNumber;
} }
public void setJustNumber(BigDecimal justNumber) { public void setJustNumber(BigDecimal justNumber) {
this.justNumber = justNumber; this.justNumber = justNumber;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -28,19 +29,15 @@ import org.threeten.bp.OffsetDateTime;
public class Order { public class Order {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
private Long id; private Long id;
public static final String JSON_PROPERTY_PET_ID = "petId"; public static final String JSON_PROPERTY_PET_ID = "petId";
@JsonProperty(JSON_PROPERTY_PET_ID)
private Long petId; private Long petId;
public static final String JSON_PROPERTY_QUANTITY = "quantity"; public static final String JSON_PROPERTY_QUANTITY = "quantity";
@JsonProperty(JSON_PROPERTY_QUANTITY)
private Integer quantity; private Integer quantity;
public static final String JSON_PROPERTY_SHIP_DATE = "shipDate"; public static final String JSON_PROPERTY_SHIP_DATE = "shipDate";
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
private OffsetDateTime shipDate; private OffsetDateTime shipDate;
/** /**
@ -81,14 +78,14 @@ public class Order {
} }
public static final String JSON_PROPERTY_STATUS = "status"; public static final String JSON_PROPERTY_STATUS = "status";
@JsonProperty(JSON_PROPERTY_STATUS)
private StatusEnum status; private StatusEnum status;
public static final String JSON_PROPERTY_COMPLETE = "complete"; public static final String JSON_PROPERTY_COMPLETE = "complete";
@JsonProperty(JSON_PROPERTY_COMPLETE)
private Boolean complete = false; private Boolean complete = false;
public Order id(Long id) { public Order id(Long id) {
this.id = id; this.id = id;
return this; return this;
} }
@ -99,15 +96,22 @@ public class Order {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Order petId(Long petId) { public Order petId(Long petId) {
this.petId = petId; this.petId = petId;
return this; return this;
} }
@ -118,15 +122,22 @@ public class Order {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PET_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getPetId() { public Long getPetId() {
return petId; return petId;
} }
public void setPetId(Long petId) { public void setPetId(Long petId) {
this.petId = petId; this.petId = petId;
} }
public Order quantity(Integer quantity) { public Order quantity(Integer quantity) {
this.quantity = quantity; this.quantity = quantity;
return this; return this;
} }
@ -137,15 +148,22 @@ public class Order {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_QUANTITY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getQuantity() { public Integer getQuantity() {
return quantity; return quantity;
} }
public void setQuantity(Integer quantity) { public void setQuantity(Integer quantity) {
this.quantity = quantity; this.quantity = quantity;
} }
public Order shipDate(OffsetDateTime shipDate) { public Order shipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
return this; return this;
} }
@ -156,15 +174,22 @@ public class Order {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SHIP_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getShipDate() { public OffsetDateTime getShipDate() {
return shipDate; return shipDate;
} }
public void setShipDate(OffsetDateTime shipDate) { public void setShipDate(OffsetDateTime shipDate) {
this.shipDate = shipDate; this.shipDate = shipDate;
} }
public Order status(StatusEnum status) { public Order status(StatusEnum status) {
this.status = status; this.status = status;
return this; return this;
} }
@ -175,15 +200,22 @@ public class Order {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Order Status") @ApiModelProperty(value = "Order Status")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }
public Order complete(Boolean complete) { public Order complete(Boolean complete) {
this.complete = complete; this.complete = complete;
return this; return this;
} }
@ -194,10 +226,15 @@ public class Order {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COMPLETE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isComplete() { public Boolean isComplete() {
return complete; return complete;
} }
public void setComplete(Boolean complete) { public void setComplete(Boolean complete) {
this.complete = complete; this.complete = complete;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -28,18 +29,17 @@ import java.math.BigDecimal;
public class OuterComposite { public class OuterComposite {
public static final String JSON_PROPERTY_MY_NUMBER = "my_number"; public static final String JSON_PROPERTY_MY_NUMBER = "my_number";
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
private BigDecimal myNumber; private BigDecimal myNumber;
public static final String JSON_PROPERTY_MY_STRING = "my_string"; public static final String JSON_PROPERTY_MY_STRING = "my_string";
@JsonProperty(JSON_PROPERTY_MY_STRING)
private String myString; private String myString;
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean"; public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
private Boolean myBoolean; private Boolean myBoolean;
public OuterComposite myNumber(BigDecimal myNumber) { public OuterComposite myNumber(BigDecimal myNumber) {
this.myNumber = myNumber; this.myNumber = myNumber;
return this; return this;
} }
@ -50,15 +50,22 @@ public class OuterComposite {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getMyNumber() { public BigDecimal getMyNumber() {
return myNumber; return myNumber;
} }
public void setMyNumber(BigDecimal myNumber) { public void setMyNumber(BigDecimal myNumber) {
this.myNumber = myNumber; this.myNumber = myNumber;
} }
public OuterComposite myString(String myString) { public OuterComposite myString(String myString) {
this.myString = myString; this.myString = myString;
return this; return this;
} }
@ -69,15 +76,22 @@ public class OuterComposite {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getMyString() { public String getMyString() {
return myString; return myString;
} }
public void setMyString(String myString) { public void setMyString(String myString) {
this.myString = myString; this.myString = myString;
} }
public OuterComposite myBoolean(Boolean myBoolean) { public OuterComposite myBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean; this.myBoolean = myBoolean;
return this; return this;
} }
@ -88,10 +102,15 @@ public class OuterComposite {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MY_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isMyBoolean() { public Boolean isMyBoolean() {
return myBoolean; return myBoolean;
} }
public void setMyBoolean(Boolean myBoolean) { public void setMyBoolean(Boolean myBoolean) {
this.myBoolean = myBoolean; this.myBoolean = myBoolean;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -31,23 +32,18 @@ import org.openapitools.client.model.Tag;
public class Pet { public class Pet {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
private Long id; private Long id;
public static final String JSON_PROPERTY_CATEGORY = "category"; public static final String JSON_PROPERTY_CATEGORY = "category";
@JsonProperty(JSON_PROPERTY_CATEGORY) private Category category;
private Category category = null;
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls"; public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
private List<String> photoUrls = new ArrayList<String>(); private List<String> photoUrls = new ArrayList<String>();
public static final String JSON_PROPERTY_TAGS = "tags"; public static final String JSON_PROPERTY_TAGS = "tags";
@JsonProperty(JSON_PROPERTY_TAGS)
private List<Tag> tags = null; private List<Tag> tags = null;
/** /**
@ -88,10 +84,11 @@ public class Pet {
} }
public static final String JSON_PROPERTY_STATUS = "status"; public static final String JSON_PROPERTY_STATUS = "status";
@JsonProperty(JSON_PROPERTY_STATUS)
private StatusEnum status; private StatusEnum status;
public Pet id(Long id) { public Pet id(Long id) {
this.id = id; this.id = id;
return this; return this;
} }
@ -102,15 +99,22 @@ public class Pet {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Pet category(Category category) { public Pet category(Category category) {
this.category = category; this.category = category;
return this; return this;
} }
@ -121,15 +125,22 @@ public class Pet {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CATEGORY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Category getCategory() { public Category getCategory() {
return category; return category;
} }
public void setCategory(Category category) { public void setCategory(Category category) {
this.category = category; this.category = category;
} }
public Pet name(String name) { public Pet name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -139,15 +150,22 @@ public class Pet {
* @return name * @return name
**/ **/
@ApiModelProperty(example = "doggie", required = true, value = "") @ApiModelProperty(example = "doggie", required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }
public Pet photoUrls(List<String> photoUrls) { public Pet photoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
return this; return this;
} }
@ -162,15 +180,22 @@ public class Pet {
* @return photoUrls * @return photoUrls
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<String> getPhotoUrls() { public List<String> getPhotoUrls() {
return photoUrls; return photoUrls;
} }
public void setPhotoUrls(List<String> photoUrls) { public void setPhotoUrls(List<String> photoUrls) {
this.photoUrls = photoUrls; this.photoUrls = photoUrls;
} }
public Pet tags(List<Tag> tags) { public Pet tags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
return this; return this;
} }
@ -189,15 +214,22 @@ public class Pet {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_TAGS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Tag> getTags() { public List<Tag> getTags() {
return tags; return tags;
} }
public void setTags(List<Tag> tags) { public void setTags(List<Tag> tags) {
this.tags = tags; this.tags = tags;
} }
public Pet status(StatusEnum status) { public Pet status(StatusEnum status) {
this.status = status; this.status = status;
return this; return this;
} }
@ -208,10 +240,15 @@ public class Pet {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "pet status in the store") @ApiModelProperty(value = "pet status in the store")
@JsonProperty(JSON_PROPERTY_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public StatusEnum getStatus() { public StatusEnum getStatus() {
return status; return status;
} }
public void setStatus(StatusEnum status) { public void setStatus(StatusEnum status) {
this.status = status; this.status = status;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,24 +28,30 @@ import io.swagger.annotations.ApiModelProperty;
public class ReadOnlyFirst { public class ReadOnlyFirst {
public static final String JSON_PROPERTY_BAR = "bar"; public static final String JSON_PROPERTY_BAR = "bar";
@JsonProperty(JSON_PROPERTY_BAR)
private String bar; private String bar;
public static final String JSON_PROPERTY_BAZ = "baz"; public static final String JSON_PROPERTY_BAZ = "baz";
@JsonProperty(JSON_PROPERTY_BAZ)
private String baz; private String baz;
/** /**
* Get bar * Get bar
* @return bar * @return bar
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBar() { public String getBar() {
return bar; return bar;
} }
public ReadOnlyFirst baz(String baz) { public ReadOnlyFirst baz(String baz) {
this.baz = baz; this.baz = baz;
return this; return this;
} }
@ -55,10 +62,15 @@ public class ReadOnlyFirst {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAZ)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBaz() { public String getBaz() {
return baz; return baz;
} }
public void setBaz(String baz) { public void setBaz(String baz) {
this.baz = baz; this.baz = baz;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty;
public class SpecialModelName { public class SpecialModelName {
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]"; public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
private Long $specialPropertyName; private Long $specialPropertyName;
public SpecialModelName $specialPropertyName(Long $specialPropertyName) { public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName; this.$specialPropertyName = $specialPropertyName;
return this; return this;
} }
@ -41,10 +43,15 @@ public class SpecialModelName {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long get$SpecialPropertyName() { public Long get$SpecialPropertyName() {
return $specialPropertyName; return $specialPropertyName;
} }
public void set$SpecialPropertyName(Long $specialPropertyName) { public void set$SpecialPropertyName(Long $specialPropertyName) {
this.$specialPropertyName = $specialPropertyName; this.$specialPropertyName = $specialPropertyName;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty;
public class Tag { public class Tag {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
private Long id; private Long id;
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public Tag id(Long id) { public Tag id(Long id) {
this.id = id; this.id = id;
return this; return this;
} }
@ -45,15 +46,22 @@ public class Tag {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Tag name(String name) { public Tag name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -64,10 +72,15 @@ public class Tag {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,26 +31,23 @@ import java.util.List;
public class TypeHolderDefault { public class TypeHolderDefault {
public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
private String stringItem = "what"; private String stringItem = "what";
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
private BigDecimal numberItem; private BigDecimal numberItem;
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
private Integer integerItem; private Integer integerItem;
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
private Boolean boolItem = true; private Boolean boolItem = true;
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
private List<Integer> arrayItem = new ArrayList<Integer>(); private List<Integer> arrayItem = new ArrayList<Integer>();
public TypeHolderDefault stringItem(String stringItem) { public TypeHolderDefault stringItem(String stringItem) {
this.stringItem = stringItem; this.stringItem = stringItem;
return this; return this;
} }
@ -59,15 +57,22 @@ public class TypeHolderDefault {
* @return stringItem * @return stringItem
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getStringItem() { public String getStringItem() {
return stringItem; return stringItem;
} }
public void setStringItem(String stringItem) { public void setStringItem(String stringItem) {
this.stringItem = stringItem; this.stringItem = stringItem;
} }
public TypeHolderDefault numberItem(BigDecimal numberItem) { public TypeHolderDefault numberItem(BigDecimal numberItem) {
this.numberItem = numberItem; this.numberItem = numberItem;
return this; return this;
} }
@ -77,15 +82,22 @@ public class TypeHolderDefault {
* @return numberItem * @return numberItem
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getNumberItem() { public BigDecimal getNumberItem() {
return numberItem; return numberItem;
} }
public void setNumberItem(BigDecimal numberItem) { public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem; this.numberItem = numberItem;
} }
public TypeHolderDefault integerItem(Integer integerItem) { public TypeHolderDefault integerItem(Integer integerItem) {
this.integerItem = integerItem; this.integerItem = integerItem;
return this; return this;
} }
@ -95,15 +107,22 @@ public class TypeHolderDefault {
* @return integerItem * @return integerItem
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getIntegerItem() { public Integer getIntegerItem() {
return integerItem; return integerItem;
} }
public void setIntegerItem(Integer integerItem) { public void setIntegerItem(Integer integerItem) {
this.integerItem = integerItem; this.integerItem = integerItem;
} }
public TypeHolderDefault boolItem(Boolean boolItem) { public TypeHolderDefault boolItem(Boolean boolItem) {
this.boolItem = boolItem; this.boolItem = boolItem;
return this; return this;
} }
@ -113,15 +132,22 @@ public class TypeHolderDefault {
* @return boolItem * @return boolItem
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean isBoolItem() { public Boolean isBoolItem() {
return boolItem; return boolItem;
} }
public void setBoolItem(Boolean boolItem) { public void setBoolItem(Boolean boolItem) {
this.boolItem = boolItem; this.boolItem = boolItem;
} }
public TypeHolderDefault arrayItem(List<Integer> arrayItem) { public TypeHolderDefault arrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem; this.arrayItem = arrayItem;
return this; return this;
} }
@ -136,10 +162,15 @@ public class TypeHolderDefault {
* @return arrayItem * @return arrayItem
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<Integer> getArrayItem() { public List<Integer> getArrayItem() {
return arrayItem; return arrayItem;
} }
public void setArrayItem(List<Integer> arrayItem) { public void setArrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem; this.arrayItem = arrayItem;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,26 +31,23 @@ import java.util.List;
public class TypeHolderExample { public class TypeHolderExample {
public static final String JSON_PROPERTY_STRING_ITEM = "string_item"; public static final String JSON_PROPERTY_STRING_ITEM = "string_item";
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
private String stringItem; private String stringItem;
public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item"; public static final String JSON_PROPERTY_NUMBER_ITEM = "number_item";
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
private BigDecimal numberItem; private BigDecimal numberItem;
public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item"; public static final String JSON_PROPERTY_INTEGER_ITEM = "integer_item";
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
private Integer integerItem; private Integer integerItem;
public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item"; public static final String JSON_PROPERTY_BOOL_ITEM = "bool_item";
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
private Boolean boolItem; private Boolean boolItem;
public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item"; public static final String JSON_PROPERTY_ARRAY_ITEM = "array_item";
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
private List<Integer> arrayItem = new ArrayList<Integer>(); private List<Integer> arrayItem = new ArrayList<Integer>();
public TypeHolderExample stringItem(String stringItem) { public TypeHolderExample stringItem(String stringItem) {
this.stringItem = stringItem; this.stringItem = stringItem;
return this; return this;
} }
@ -59,15 +57,22 @@ public class TypeHolderExample {
* @return stringItem * @return stringItem
**/ **/
@ApiModelProperty(example = "what", required = true, value = "") @ApiModelProperty(example = "what", required = true, value = "")
@JsonProperty(JSON_PROPERTY_STRING_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getStringItem() { public String getStringItem() {
return stringItem; return stringItem;
} }
public void setStringItem(String stringItem) { public void setStringItem(String stringItem) {
this.stringItem = stringItem; this.stringItem = stringItem;
} }
public TypeHolderExample numberItem(BigDecimal numberItem) { public TypeHolderExample numberItem(BigDecimal numberItem) {
this.numberItem = numberItem; this.numberItem = numberItem;
return this; return this;
} }
@ -77,15 +82,22 @@ public class TypeHolderExample {
* @return numberItem * @return numberItem
**/ **/
@ApiModelProperty(example = "1.234", required = true, value = "") @ApiModelProperty(example = "1.234", required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getNumberItem() { public BigDecimal getNumberItem() {
return numberItem; return numberItem;
} }
public void setNumberItem(BigDecimal numberItem) { public void setNumberItem(BigDecimal numberItem) {
this.numberItem = numberItem; this.numberItem = numberItem;
} }
public TypeHolderExample integerItem(Integer integerItem) { public TypeHolderExample integerItem(Integer integerItem) {
this.integerItem = integerItem; this.integerItem = integerItem;
return this; return this;
} }
@ -95,15 +107,22 @@ public class TypeHolderExample {
* @return integerItem * @return integerItem
**/ **/
@ApiModelProperty(example = "-2", required = true, value = "") @ApiModelProperty(example = "-2", required = true, value = "")
@JsonProperty(JSON_PROPERTY_INTEGER_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Integer getIntegerItem() { public Integer getIntegerItem() {
return integerItem; return integerItem;
} }
public void setIntegerItem(Integer integerItem) { public void setIntegerItem(Integer integerItem) {
this.integerItem = integerItem; this.integerItem = integerItem;
} }
public TypeHolderExample boolItem(Boolean boolItem) { public TypeHolderExample boolItem(Boolean boolItem) {
this.boolItem = boolItem; this.boolItem = boolItem;
return this; return this;
} }
@ -113,15 +132,22 @@ public class TypeHolderExample {
* @return boolItem * @return boolItem
**/ **/
@ApiModelProperty(example = "true", required = true, value = "") @ApiModelProperty(example = "true", required = true, value = "")
@JsonProperty(JSON_PROPERTY_BOOL_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public Boolean isBoolItem() { public Boolean isBoolItem() {
return boolItem; return boolItem;
} }
public void setBoolItem(Boolean boolItem) { public void setBoolItem(Boolean boolItem) {
this.boolItem = boolItem; this.boolItem = boolItem;
} }
public TypeHolderExample arrayItem(List<Integer> arrayItem) { public TypeHolderExample arrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem; this.arrayItem = arrayItem;
return this; return this;
} }
@ -136,10 +162,15 @@ public class TypeHolderExample {
* @return arrayItem * @return arrayItem
**/ **/
@ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "") @ApiModelProperty(example = "[0, 1, 2, 3]", required = true, value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ITEM)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public List<Integer> getArrayItem() { public List<Integer> getArrayItem() {
return arrayItem; return arrayItem;
} }
public void setArrayItem(List<Integer> arrayItem) { public void setArrayItem(List<Integer> arrayItem) {
this.arrayItem = arrayItem; this.arrayItem = arrayItem;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,38 +28,32 @@ import io.swagger.annotations.ApiModelProperty;
public class User { public class User {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
private Long id; private Long id;
public static final String JSON_PROPERTY_USERNAME = "username"; public static final String JSON_PROPERTY_USERNAME = "username";
@JsonProperty(JSON_PROPERTY_USERNAME)
private String username; private String username;
public static final String JSON_PROPERTY_FIRST_NAME = "firstName"; public static final String JSON_PROPERTY_FIRST_NAME = "firstName";
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
private String firstName; private String firstName;
public static final String JSON_PROPERTY_LAST_NAME = "lastName"; public static final String JSON_PROPERTY_LAST_NAME = "lastName";
@JsonProperty(JSON_PROPERTY_LAST_NAME)
private String lastName; private String lastName;
public static final String JSON_PROPERTY_EMAIL = "email"; public static final String JSON_PROPERTY_EMAIL = "email";
@JsonProperty(JSON_PROPERTY_EMAIL)
private String email; private String email;
public static final String JSON_PROPERTY_PASSWORD = "password"; public static final String JSON_PROPERTY_PASSWORD = "password";
@JsonProperty(JSON_PROPERTY_PASSWORD)
private String password; private String password;
public static final String JSON_PROPERTY_PHONE = "phone"; public static final String JSON_PROPERTY_PHONE = "phone";
@JsonProperty(JSON_PROPERTY_PHONE)
private String phone; private String phone;
public static final String JSON_PROPERTY_USER_STATUS = "userStatus"; public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
@JsonProperty(JSON_PROPERTY_USER_STATUS)
private Integer userStatus; private Integer userStatus;
public User id(Long id) { public User id(Long id) {
this.id = id; this.id = id;
return this; return this;
} }
@ -69,15 +64,22 @@ public class User {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public User username(String username) { public User username(String username) {
this.username = username; this.username = username;
return this; return this;
} }
@ -88,15 +90,22 @@ public class User {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_USERNAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getUsername() { public String getUsername() {
return username; return username;
} }
public void setUsername(String username) { public void setUsername(String username) {
this.username = username; this.username = username;
} }
public User firstName(String firstName) { public User firstName(String firstName) {
this.firstName = firstName; this.firstName = firstName;
return this; return this;
} }
@ -107,15 +116,22 @@ public class User {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FIRST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
} }
public void setFirstName(String firstName) { public void setFirstName(String firstName) {
this.firstName = firstName; this.firstName = firstName;
} }
public User lastName(String lastName) { public User lastName(String lastName) {
this.lastName = lastName; this.lastName = lastName;
return this; return this;
} }
@ -126,15 +142,22 @@ public class User {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_LAST_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getLastName() { public String getLastName() {
return lastName; return lastName;
} }
public void setLastName(String lastName) { public void setLastName(String lastName) {
this.lastName = lastName; this.lastName = lastName;
} }
public User email(String email) { public User email(String email) {
this.email = email; this.email = email;
return this; return this;
} }
@ -145,15 +168,22 @@ public class User {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_EMAIL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEmail() { public String getEmail() {
return email; return email;
} }
public void setEmail(String email) { public void setEmail(String email) {
this.email = email; this.email = email;
} }
public User password(String password) { public User password(String password) {
this.password = password; this.password = password;
return this; return this;
} }
@ -164,15 +194,22 @@ public class User {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPassword() { public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }
public User phone(String phone) { public User phone(String phone) {
this.phone = phone; this.phone = phone;
return this; return this;
} }
@ -183,15 +220,22 @@ public class User {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PHONE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPhone() { public String getPhone() {
return phone; return phone;
} }
public void setPhone(String phone) { public void setPhone(String phone) {
this.phone = phone; this.phone = phone;
} }
public User userStatus(Integer userStatus) { public User userStatus(Integer userStatus) {
this.userStatus = userStatus; this.userStatus = userStatus;
return this; return this;
} }
@ -202,10 +246,15 @@ public class User {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "User Status") @ApiModelProperty(value = "User Status")
@JsonProperty(JSON_PROPERTY_USER_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getUserStatus() { public Integer getUserStatus() {
return userStatus; return userStatus;
} }
public void setUserStatus(Integer userStatus) { public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus; this.userStatus = userStatus;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,122 +31,95 @@ import java.util.List;
public class XmlItem { public class XmlItem {
public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string"; public static final String JSON_PROPERTY_ATTRIBUTE_STRING = "attribute_string";
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING)
private String attributeString; private String attributeString;
public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number"; public static final String JSON_PROPERTY_ATTRIBUTE_NUMBER = "attribute_number";
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
private BigDecimal attributeNumber; private BigDecimal attributeNumber;
public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer"; public static final String JSON_PROPERTY_ATTRIBUTE_INTEGER = "attribute_integer";
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER)
private Integer attributeInteger; private Integer attributeInteger;
public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean"; public static final String JSON_PROPERTY_ATTRIBUTE_BOOLEAN = "attribute_boolean";
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN)
private Boolean attributeBoolean; private Boolean attributeBoolean;
public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array"; public static final String JSON_PROPERTY_WRAPPED_ARRAY = "wrapped_array";
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
private List<Integer> wrappedArray = null; private List<Integer> wrappedArray = null;
public static final String JSON_PROPERTY_NAME_STRING = "name_string"; public static final String JSON_PROPERTY_NAME_STRING = "name_string";
@JsonProperty(JSON_PROPERTY_NAME_STRING)
private String nameString; private String nameString;
public static final String JSON_PROPERTY_NAME_NUMBER = "name_number"; public static final String JSON_PROPERTY_NAME_NUMBER = "name_number";
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
private BigDecimal nameNumber; private BigDecimal nameNumber;
public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer"; public static final String JSON_PROPERTY_NAME_INTEGER = "name_integer";
@JsonProperty(JSON_PROPERTY_NAME_INTEGER)
private Integer nameInteger; private Integer nameInteger;
public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean"; public static final String JSON_PROPERTY_NAME_BOOLEAN = "name_boolean";
@JsonProperty(JSON_PROPERTY_NAME_BOOLEAN)
private Boolean nameBoolean; private Boolean nameBoolean;
public static final String JSON_PROPERTY_NAME_ARRAY = "name_array"; public static final String JSON_PROPERTY_NAME_ARRAY = "name_array";
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
private List<Integer> nameArray = null; private List<Integer> nameArray = null;
public static final String JSON_PROPERTY_NAME_WRAPPED_ARRAY = "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 = null; private List<Integer> nameWrappedArray = null;
public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string"; public static final String JSON_PROPERTY_PREFIX_STRING = "prefix_string";
@JsonProperty(JSON_PROPERTY_PREFIX_STRING)
private String prefixString; private String prefixString;
public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number"; public static final String JSON_PROPERTY_PREFIX_NUMBER = "prefix_number";
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
private BigDecimal prefixNumber; private BigDecimal prefixNumber;
public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer"; public static final String JSON_PROPERTY_PREFIX_INTEGER = "prefix_integer";
@JsonProperty(JSON_PROPERTY_PREFIX_INTEGER)
private Integer prefixInteger; private Integer prefixInteger;
public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean"; public static final String JSON_PROPERTY_PREFIX_BOOLEAN = "prefix_boolean";
@JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN)
private Boolean prefixBoolean; private Boolean prefixBoolean;
public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array"; public static final String JSON_PROPERTY_PREFIX_ARRAY = "prefix_array";
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
private List<Integer> prefixArray = null; private List<Integer> prefixArray = null;
public static final String JSON_PROPERTY_PREFIX_WRAPPED_ARRAY = "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 = null; private List<Integer> prefixWrappedArray = null;
public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string"; public static final String JSON_PROPERTY_NAMESPACE_STRING = "namespace_string";
@JsonProperty(JSON_PROPERTY_NAMESPACE_STRING)
private String namespaceString; private String namespaceString;
public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number"; public static final String JSON_PROPERTY_NAMESPACE_NUMBER = "namespace_number";
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
private BigDecimal namespaceNumber; private BigDecimal namespaceNumber;
public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer"; public static final String JSON_PROPERTY_NAMESPACE_INTEGER = "namespace_integer";
@JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER)
private Integer namespaceInteger; private Integer namespaceInteger;
public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean"; public static final String JSON_PROPERTY_NAMESPACE_BOOLEAN = "namespace_boolean";
@JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN)
private Boolean namespaceBoolean; private Boolean namespaceBoolean;
public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array"; public static final String JSON_PROPERTY_NAMESPACE_ARRAY = "namespace_array";
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
private List<Integer> namespaceArray = null; private List<Integer> namespaceArray = null;
public static final String JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY = "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 = null; private List<Integer> namespaceWrappedArray = null;
public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string"; public static final String JSON_PROPERTY_PREFIX_NS_STRING = "prefix_ns_string";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING)
private String prefixNsString; private String prefixNsString;
public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number"; public static final String JSON_PROPERTY_PREFIX_NS_NUMBER = "prefix_ns_number";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
private BigDecimal prefixNsNumber; private BigDecimal prefixNsNumber;
public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer"; public static final String JSON_PROPERTY_PREFIX_NS_INTEGER = "prefix_ns_integer";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER)
private Integer prefixNsInteger; private Integer prefixNsInteger;
public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean"; public static final String JSON_PROPERTY_PREFIX_NS_BOOLEAN = "prefix_ns_boolean";
@JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN)
private Boolean prefixNsBoolean; private Boolean prefixNsBoolean;
public static final String JSON_PROPERTY_PREFIX_NS_ARRAY = "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 = null; private List<Integer> prefixNsArray = null;
public static final String JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY = "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 = null; private List<Integer> prefixNsWrappedArray = null;
public XmlItem attributeString(String attributeString) { public XmlItem attributeString(String attributeString) {
this.attributeString = attributeString; this.attributeString = attributeString;
return this; return this;
} }
@ -156,15 +130,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getAttributeString() { public String getAttributeString() {
return attributeString; return attributeString;
} }
public void setAttributeString(String attributeString) { public void setAttributeString(String attributeString) {
this.attributeString = attributeString; this.attributeString = attributeString;
} }
public XmlItem attributeNumber(BigDecimal attributeNumber) { public XmlItem attributeNumber(BigDecimal attributeNumber) {
this.attributeNumber = attributeNumber; this.attributeNumber = attributeNumber;
return this; return this;
} }
@ -175,15 +156,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getAttributeNumber() { public BigDecimal getAttributeNumber() {
return attributeNumber; return attributeNumber;
} }
public void setAttributeNumber(BigDecimal attributeNumber) { public void setAttributeNumber(BigDecimal attributeNumber) {
this.attributeNumber = attributeNumber; this.attributeNumber = attributeNumber;
} }
public XmlItem attributeInteger(Integer attributeInteger) { public XmlItem attributeInteger(Integer attributeInteger) {
this.attributeInteger = attributeInteger; this.attributeInteger = attributeInteger;
return this; return this;
} }
@ -194,15 +182,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getAttributeInteger() { public Integer getAttributeInteger() {
return attributeInteger; return attributeInteger;
} }
public void setAttributeInteger(Integer attributeInteger) { public void setAttributeInteger(Integer attributeInteger) {
this.attributeInteger = attributeInteger; this.attributeInteger = attributeInteger;
} }
public XmlItem attributeBoolean(Boolean attributeBoolean) { public XmlItem attributeBoolean(Boolean attributeBoolean) {
this.attributeBoolean = attributeBoolean; this.attributeBoolean = attributeBoolean;
return this; return this;
} }
@ -213,15 +208,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_ATTRIBUTE_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isAttributeBoolean() { public Boolean isAttributeBoolean() {
return attributeBoolean; return attributeBoolean;
} }
public void setAttributeBoolean(Boolean attributeBoolean) { public void setAttributeBoolean(Boolean attributeBoolean) {
this.attributeBoolean = attributeBoolean; this.attributeBoolean = attributeBoolean;
} }
public XmlItem wrappedArray(List<Integer> wrappedArray) { public XmlItem wrappedArray(List<Integer> wrappedArray) {
this.wrappedArray = wrappedArray; this.wrappedArray = wrappedArray;
return this; return this;
} }
@ -240,15 +242,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getWrappedArray() { public List<Integer> getWrappedArray() {
return wrappedArray; return wrappedArray;
} }
public void setWrappedArray(List<Integer> wrappedArray) { public void setWrappedArray(List<Integer> wrappedArray) {
this.wrappedArray = wrappedArray; this.wrappedArray = wrappedArray;
} }
public XmlItem nameString(String nameString) { public XmlItem nameString(String nameString) {
this.nameString = nameString; this.nameString = nameString;
return this; return this;
} }
@ -259,15 +268,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_NAME_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNameString() { public String getNameString() {
return nameString; return nameString;
} }
public void setNameString(String nameString) { public void setNameString(String nameString) {
this.nameString = nameString; this.nameString = nameString;
} }
public XmlItem nameNumber(BigDecimal nameNumber) { public XmlItem nameNumber(BigDecimal nameNumber) {
this.nameNumber = nameNumber; this.nameNumber = nameNumber;
return this; return this;
} }
@ -278,15 +294,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_NAME_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getNameNumber() { public BigDecimal getNameNumber() {
return nameNumber; return nameNumber;
} }
public void setNameNumber(BigDecimal nameNumber) { public void setNameNumber(BigDecimal nameNumber) {
this.nameNumber = nameNumber; this.nameNumber = nameNumber;
} }
public XmlItem nameInteger(Integer nameInteger) { public XmlItem nameInteger(Integer nameInteger) {
this.nameInteger = nameInteger; this.nameInteger = nameInteger;
return this; return this;
} }
@ -297,15 +320,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_NAME_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getNameInteger() { public Integer getNameInteger() {
return nameInteger; return nameInteger;
} }
public void setNameInteger(Integer nameInteger) { public void setNameInteger(Integer nameInteger) {
this.nameInteger = nameInteger; this.nameInteger = nameInteger;
} }
public XmlItem nameBoolean(Boolean nameBoolean) { public XmlItem nameBoolean(Boolean nameBoolean) {
this.nameBoolean = nameBoolean; this.nameBoolean = nameBoolean;
return this; return this;
} }
@ -316,15 +346,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_NAME_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isNameBoolean() { public Boolean isNameBoolean() {
return nameBoolean; return nameBoolean;
} }
public void setNameBoolean(Boolean nameBoolean) { public void setNameBoolean(Boolean nameBoolean) {
this.nameBoolean = nameBoolean; this.nameBoolean = nameBoolean;
} }
public XmlItem nameArray(List<Integer> nameArray) { public XmlItem nameArray(List<Integer> nameArray) {
this.nameArray = nameArray; this.nameArray = nameArray;
return this; return this;
} }
@ -343,15 +380,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getNameArray() { public List<Integer> getNameArray() {
return nameArray; return nameArray;
} }
public void setNameArray(List<Integer> nameArray) { public void setNameArray(List<Integer> nameArray) {
this.nameArray = nameArray; this.nameArray = nameArray;
} }
public XmlItem nameWrappedArray(List<Integer> nameWrappedArray) { public XmlItem nameWrappedArray(List<Integer> nameWrappedArray) {
this.nameWrappedArray = nameWrappedArray; this.nameWrappedArray = nameWrappedArray;
return this; return this;
} }
@ -370,15 +414,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getNameWrappedArray() { public List<Integer> getNameWrappedArray() {
return nameWrappedArray; return nameWrappedArray;
} }
public void setNameWrappedArray(List<Integer> nameWrappedArray) { public void setNameWrappedArray(List<Integer> nameWrappedArray) {
this.nameWrappedArray = nameWrappedArray; this.nameWrappedArray = nameWrappedArray;
} }
public XmlItem prefixString(String prefixString) { public XmlItem prefixString(String prefixString) {
this.prefixString = prefixString; this.prefixString = prefixString;
return this; return this;
} }
@ -389,15 +440,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPrefixString() { public String getPrefixString() {
return prefixString; return prefixString;
} }
public void setPrefixString(String prefixString) { public void setPrefixString(String prefixString) {
this.prefixString = prefixString; this.prefixString = prefixString;
} }
public XmlItem prefixNumber(BigDecimal prefixNumber) { public XmlItem prefixNumber(BigDecimal prefixNumber) {
this.prefixNumber = prefixNumber; this.prefixNumber = prefixNumber;
return this; return this;
} }
@ -408,15 +466,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getPrefixNumber() { public BigDecimal getPrefixNumber() {
return prefixNumber; return prefixNumber;
} }
public void setPrefixNumber(BigDecimal prefixNumber) { public void setPrefixNumber(BigDecimal prefixNumber) {
this.prefixNumber = prefixNumber; this.prefixNumber = prefixNumber;
} }
public XmlItem prefixInteger(Integer prefixInteger) { public XmlItem prefixInteger(Integer prefixInteger) {
this.prefixInteger = prefixInteger; this.prefixInteger = prefixInteger;
return this; return this;
} }
@ -427,15 +492,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getPrefixInteger() { public Integer getPrefixInteger() {
return prefixInteger; return prefixInteger;
} }
public void setPrefixInteger(Integer prefixInteger) { public void setPrefixInteger(Integer prefixInteger) {
this.prefixInteger = prefixInteger; this.prefixInteger = prefixInteger;
} }
public XmlItem prefixBoolean(Boolean prefixBoolean) { public XmlItem prefixBoolean(Boolean prefixBoolean) {
this.prefixBoolean = prefixBoolean; this.prefixBoolean = prefixBoolean;
return this; return this;
} }
@ -446,15 +518,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isPrefixBoolean() { public Boolean isPrefixBoolean() {
return prefixBoolean; return prefixBoolean;
} }
public void setPrefixBoolean(Boolean prefixBoolean) { public void setPrefixBoolean(Boolean prefixBoolean) {
this.prefixBoolean = prefixBoolean; this.prefixBoolean = prefixBoolean;
} }
public XmlItem prefixArray(List<Integer> prefixArray) { public XmlItem prefixArray(List<Integer> prefixArray) {
this.prefixArray = prefixArray; this.prefixArray = prefixArray;
return this; return this;
} }
@ -473,15 +552,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getPrefixArray() { public List<Integer> getPrefixArray() {
return prefixArray; return prefixArray;
} }
public void setPrefixArray(List<Integer> prefixArray) { public void setPrefixArray(List<Integer> prefixArray) {
this.prefixArray = prefixArray; this.prefixArray = prefixArray;
} }
public XmlItem prefixWrappedArray(List<Integer> prefixWrappedArray) { public XmlItem prefixWrappedArray(List<Integer> prefixWrappedArray) {
this.prefixWrappedArray = prefixWrappedArray; this.prefixWrappedArray = prefixWrappedArray;
return this; return this;
} }
@ -500,15 +586,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getPrefixWrappedArray() { public List<Integer> getPrefixWrappedArray() {
return prefixWrappedArray; return prefixWrappedArray;
} }
public void setPrefixWrappedArray(List<Integer> prefixWrappedArray) { public void setPrefixWrappedArray(List<Integer> prefixWrappedArray) {
this.prefixWrappedArray = prefixWrappedArray; this.prefixWrappedArray = prefixWrappedArray;
} }
public XmlItem namespaceString(String namespaceString) { public XmlItem namespaceString(String namespaceString) {
this.namespaceString = namespaceString; this.namespaceString = namespaceString;
return this; return this;
} }
@ -519,15 +612,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getNamespaceString() { public String getNamespaceString() {
return namespaceString; return namespaceString;
} }
public void setNamespaceString(String namespaceString) { public void setNamespaceString(String namespaceString) {
this.namespaceString = namespaceString; this.namespaceString = namespaceString;
} }
public XmlItem namespaceNumber(BigDecimal namespaceNumber) { public XmlItem namespaceNumber(BigDecimal namespaceNumber) {
this.namespaceNumber = namespaceNumber; this.namespaceNumber = namespaceNumber;
return this; return this;
} }
@ -538,15 +638,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getNamespaceNumber() { public BigDecimal getNamespaceNumber() {
return namespaceNumber; return namespaceNumber;
} }
public void setNamespaceNumber(BigDecimal namespaceNumber) { public void setNamespaceNumber(BigDecimal namespaceNumber) {
this.namespaceNumber = namespaceNumber; this.namespaceNumber = namespaceNumber;
} }
public XmlItem namespaceInteger(Integer namespaceInteger) { public XmlItem namespaceInteger(Integer namespaceInteger) {
this.namespaceInteger = namespaceInteger; this.namespaceInteger = namespaceInteger;
return this; return this;
} }
@ -557,15 +664,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getNamespaceInteger() { public Integer getNamespaceInteger() {
return namespaceInteger; return namespaceInteger;
} }
public void setNamespaceInteger(Integer namespaceInteger) { public void setNamespaceInteger(Integer namespaceInteger) {
this.namespaceInteger = namespaceInteger; this.namespaceInteger = namespaceInteger;
} }
public XmlItem namespaceBoolean(Boolean namespaceBoolean) { public XmlItem namespaceBoolean(Boolean namespaceBoolean) {
this.namespaceBoolean = namespaceBoolean; this.namespaceBoolean = namespaceBoolean;
return this; return this;
} }
@ -576,15 +690,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isNamespaceBoolean() { public Boolean isNamespaceBoolean() {
return namespaceBoolean; return namespaceBoolean;
} }
public void setNamespaceBoolean(Boolean namespaceBoolean) { public void setNamespaceBoolean(Boolean namespaceBoolean) {
this.namespaceBoolean = namespaceBoolean; this.namespaceBoolean = namespaceBoolean;
} }
public XmlItem namespaceArray(List<Integer> namespaceArray) { public XmlItem namespaceArray(List<Integer> namespaceArray) {
this.namespaceArray = namespaceArray; this.namespaceArray = namespaceArray;
return this; return this;
} }
@ -603,15 +724,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getNamespaceArray() { public List<Integer> getNamespaceArray() {
return namespaceArray; return namespaceArray;
} }
public void setNamespaceArray(List<Integer> namespaceArray) { public void setNamespaceArray(List<Integer> namespaceArray) {
this.namespaceArray = namespaceArray; this.namespaceArray = namespaceArray;
} }
public XmlItem namespaceWrappedArray(List<Integer> namespaceWrappedArray) { public XmlItem namespaceWrappedArray(List<Integer> namespaceWrappedArray) {
this.namespaceWrappedArray = namespaceWrappedArray; this.namespaceWrappedArray = namespaceWrappedArray;
return this; return this;
} }
@ -630,15 +758,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAMESPACE_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getNamespaceWrappedArray() { public List<Integer> getNamespaceWrappedArray() {
return namespaceWrappedArray; return namespaceWrappedArray;
} }
public void setNamespaceWrappedArray(List<Integer> namespaceWrappedArray) { public void setNamespaceWrappedArray(List<Integer> namespaceWrappedArray) {
this.namespaceWrappedArray = namespaceWrappedArray; this.namespaceWrappedArray = namespaceWrappedArray;
} }
public XmlItem prefixNsString(String prefixNsString) { public XmlItem prefixNsString(String prefixNsString) {
this.prefixNsString = prefixNsString; this.prefixNsString = prefixNsString;
return this; return this;
} }
@ -649,15 +784,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "string", value = "") @ApiModelProperty(example = "string", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPrefixNsString() { public String getPrefixNsString() {
return prefixNsString; return prefixNsString;
} }
public void setPrefixNsString(String prefixNsString) { public void setPrefixNsString(String prefixNsString) {
this.prefixNsString = prefixNsString; this.prefixNsString = prefixNsString;
} }
public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) { public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) {
this.prefixNsNumber = prefixNsNumber; this.prefixNsNumber = prefixNsNumber;
return this; return this;
} }
@ -668,15 +810,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "1.234", value = "") @ApiModelProperty(example = "1.234", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public BigDecimal getPrefixNsNumber() { public BigDecimal getPrefixNsNumber() {
return prefixNsNumber; return prefixNsNumber;
} }
public void setPrefixNsNumber(BigDecimal prefixNsNumber) { public void setPrefixNsNumber(BigDecimal prefixNsNumber) {
this.prefixNsNumber = prefixNsNumber; this.prefixNsNumber = prefixNsNumber;
} }
public XmlItem prefixNsInteger(Integer prefixNsInteger) { public XmlItem prefixNsInteger(Integer prefixNsInteger) {
this.prefixNsInteger = prefixNsInteger; this.prefixNsInteger = prefixNsInteger;
return this; return this;
} }
@ -687,15 +836,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "-2", value = "") @ApiModelProperty(example = "-2", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getPrefixNsInteger() { public Integer getPrefixNsInteger() {
return prefixNsInteger; return prefixNsInteger;
} }
public void setPrefixNsInteger(Integer prefixNsInteger) { public void setPrefixNsInteger(Integer prefixNsInteger) {
this.prefixNsInteger = prefixNsInteger; this.prefixNsInteger = prefixNsInteger;
} }
public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) { public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) {
this.prefixNsBoolean = prefixNsBoolean; this.prefixNsBoolean = prefixNsBoolean;
return this; return this;
} }
@ -706,15 +862,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "true", value = "") @ApiModelProperty(example = "true", value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isPrefixNsBoolean() { public Boolean isPrefixNsBoolean() {
return prefixNsBoolean; return prefixNsBoolean;
} }
public void setPrefixNsBoolean(Boolean prefixNsBoolean) { public void setPrefixNsBoolean(Boolean prefixNsBoolean) {
this.prefixNsBoolean = prefixNsBoolean; this.prefixNsBoolean = prefixNsBoolean;
} }
public XmlItem prefixNsArray(List<Integer> prefixNsArray) { public XmlItem prefixNsArray(List<Integer> prefixNsArray) {
this.prefixNsArray = prefixNsArray; this.prefixNsArray = prefixNsArray;
return this; return this;
} }
@ -733,15 +896,22 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getPrefixNsArray() { public List<Integer> getPrefixNsArray() {
return prefixNsArray; return prefixNsArray;
} }
public void setPrefixNsArray(List<Integer> prefixNsArray) { public void setPrefixNsArray(List<Integer> prefixNsArray) {
this.prefixNsArray = prefixNsArray; this.prefixNsArray = prefixNsArray;
} }
public XmlItem prefixNsWrappedArray(List<Integer> prefixNsWrappedArray) { public XmlItem prefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
this.prefixNsWrappedArray = prefixNsWrappedArray; this.prefixNsWrappedArray = prefixNsWrappedArray;
return this; return this;
} }
@ -760,10 +930,15 @@ public class XmlItem {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<Integer> getPrefixNsWrappedArray() { public List<Integer> getPrefixNsWrappedArray() {
return prefixNsWrappedArray; return prefixNsWrappedArray;
} }
public void setPrefixNsWrappedArray(List<Integer> prefixNsWrappedArray) { public void setPrefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
this.prefixNsWrappedArray = prefixNsWrappedArray; this.prefixNsWrappedArray = prefixNsWrappedArray;
} }

View File

@ -236,6 +236,11 @@
<groupId>com.fasterxml.jackson.core</groupId> <groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId> <artifactId>jackson-databind</artifactId>
<version>${jackson-databind-version}</version> <version>${jackson-databind-version}</version>
</dependency>
<dependency>
<groupId>org.openapitools</groupId>
<artifactId>jackson-databind-nullable</artifactId>
<version>${jackson-databind-nullable-version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.github.joschi.jackson</groupId> <groupId>com.github.joschi.jackson</groupId>
@ -277,6 +282,7 @@
<feign-version>10.2.3</feign-version> <feign-version>10.2.3</feign-version>
<feign-form-version>2.1.0</feign-form-version> <feign-form-version>2.1.0</feign-form-version>
<jackson-version>2.9.9</jackson-version> <jackson-version>2.9.9</jackson-version>
<jackson-databind-nullable-version>0.2.0</jackson-databind-nullable-version>
<jackson-databind-version>2.9.9</jackson-databind-version> <jackson-databind-version>2.9.9</jackson-databind-version>
<jackson-threetenbp-version>2.6.4</jackson-threetenbp-version> <jackson-threetenbp-version>2.6.4</jackson-threetenbp-version>
<junit-version>4.12</junit-version> <junit-version>4.12</junit-version>

View File

@ -10,6 +10,7 @@ import org.threeten.bp.*;
import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson.databind.SerializationFeature;
import org.openapitools.jackson.nullable.JsonNullableModule;
import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule; import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
import feign.Feign; import feign.Feign;
@ -143,6 +144,8 @@ public class ApiClient {
module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME); module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME);
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME); module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
objectMapper.registerModule(module); objectMapper.registerModule(module);
JsonNullableModule jnm = new JsonNullableModule();
objectMapper.registerModule(jnm);
return objectMapper; return objectMapper;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesAnyType extends HashMap<String, Object> { public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesAnyType name(String name) { public AdditionalPropertiesAnyType name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,10 +31,11 @@ import java.util.Map;
public class AdditionalPropertiesArray extends HashMap<String, List> { public class AdditionalPropertiesArray extends HashMap<String, List> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesArray name(String name) { public AdditionalPropertiesArray name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -44,10 +46,15 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> { public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesBoolean name(String name) { public AdditionalPropertiesBoolean name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -31,50 +32,41 @@ import java.util.Map;
public class AdditionalPropertiesClass { public class AdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP_STRING = "map_string"; public static final String JSON_PROPERTY_MAP_STRING = "map_string";
@JsonProperty(JSON_PROPERTY_MAP_STRING)
private Map<String, String> mapString = null; private Map<String, String> mapString = null;
public static final String JSON_PROPERTY_MAP_NUMBER = "map_number"; public static final String JSON_PROPERTY_MAP_NUMBER = "map_number";
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
private Map<String, BigDecimal> mapNumber = null; private Map<String, BigDecimal> mapNumber = null;
public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer"; public static final String JSON_PROPERTY_MAP_INTEGER = "map_integer";
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
private Map<String, Integer> mapInteger = null; private Map<String, Integer> mapInteger = null;
public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean"; public static final String JSON_PROPERTY_MAP_BOOLEAN = "map_boolean";
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
private Map<String, Boolean> mapBoolean = null; private Map<String, Boolean> mapBoolean = null;
public static final String JSON_PROPERTY_MAP_ARRAY_INTEGER = "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 = null; private Map<String, List<Integer>> mapArrayInteger = null;
public static final String JSON_PROPERTY_MAP_ARRAY_ANYTYPE = "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 = null; private Map<String, List<Object>> mapArrayAnytype = null;
public static final String JSON_PROPERTY_MAP_MAP_STRING = "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 = null; private Map<String, Map<String, String>> mapMapString = null;
public static final String JSON_PROPERTY_MAP_MAP_ANYTYPE = "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 = null; private Map<String, Map<String, Object>> mapMapAnytype = null;
public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1"; public static final String JSON_PROPERTY_ANYTYPE1 = "anytype_1";
@JsonProperty(JSON_PROPERTY_ANYTYPE1) private Object anytype1;
private Object anytype1 = null;
public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2"; public static final String JSON_PROPERTY_ANYTYPE2 = "anytype_2";
@JsonProperty(JSON_PROPERTY_ANYTYPE2) private Object anytype2;
private Object anytype2 = null;
public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3"; public static final String JSON_PROPERTY_ANYTYPE3 = "anytype_3";
@JsonProperty(JSON_PROPERTY_ANYTYPE3) private Object anytype3;
private Object anytype3 = null;
public AdditionalPropertiesClass mapString(Map<String, String> mapString) { public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
this.mapString = mapString; this.mapString = mapString;
return this; return this;
} }
@ -93,15 +85,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, String> getMapString() { public Map<String, String> getMapString() {
return mapString; return mapString;
} }
public void setMapString(Map<String, String> mapString) { public void setMapString(Map<String, String> mapString) {
this.mapString = mapString; this.mapString = mapString;
} }
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) { public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
this.mapNumber = mapNumber; this.mapNumber = mapNumber;
return this; return this;
} }
@ -120,15 +119,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, BigDecimal> getMapNumber() { public Map<String, BigDecimal> getMapNumber() {
return mapNumber; return mapNumber;
} }
public void setMapNumber(Map<String, BigDecimal> mapNumber) { public void setMapNumber(Map<String, BigDecimal> mapNumber) {
this.mapNumber = mapNumber; this.mapNumber = mapNumber;
} }
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) { public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger; this.mapInteger = mapInteger;
return this; return this;
} }
@ -147,15 +153,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Integer> getMapInteger() { public Map<String, Integer> getMapInteger() {
return mapInteger; return mapInteger;
} }
public void setMapInteger(Map<String, Integer> mapInteger) { public void setMapInteger(Map<String, Integer> mapInteger) {
this.mapInteger = mapInteger; this.mapInteger = mapInteger;
} }
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) { public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean; this.mapBoolean = mapBoolean;
return this; return this;
} }
@ -174,15 +187,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_BOOLEAN)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getMapBoolean() { public Map<String, Boolean> getMapBoolean() {
return mapBoolean; return mapBoolean;
} }
public void setMapBoolean(Map<String, Boolean> mapBoolean) { public void setMapBoolean(Map<String, Boolean> mapBoolean) {
this.mapBoolean = mapBoolean; this.mapBoolean = mapBoolean;
} }
public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) { public AdditionalPropertiesClass mapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger; this.mapArrayInteger = mapArrayInteger;
return this; return this;
} }
@ -201,15 +221,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, List<Integer>> getMapArrayInteger() { public Map<String, List<Integer>> getMapArrayInteger() {
return mapArrayInteger; return mapArrayInteger;
} }
public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) { public void setMapArrayInteger(Map<String, List<Integer>> mapArrayInteger) {
this.mapArrayInteger = mapArrayInteger; this.mapArrayInteger = mapArrayInteger;
} }
public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) { public AdditionalPropertiesClass mapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype; this.mapArrayAnytype = mapArrayAnytype;
return this; return this;
} }
@ -228,15 +255,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_ARRAY_ANYTYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, List<Object>> getMapArrayAnytype() { public Map<String, List<Object>> getMapArrayAnytype() {
return mapArrayAnytype; return mapArrayAnytype;
} }
public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) { public void setMapArrayAnytype(Map<String, List<Object>> mapArrayAnytype) {
this.mapArrayAnytype = mapArrayAnytype; this.mapArrayAnytype = mapArrayAnytype;
} }
public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) { public AdditionalPropertiesClass mapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString; this.mapMapString = mapMapString;
return this; return this;
} }
@ -255,15 +289,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, String>> getMapMapString() { public Map<String, Map<String, String>> getMapMapString() {
return mapMapString; return mapMapString;
} }
public void setMapMapString(Map<String, Map<String, String>> mapMapString) { public void setMapMapString(Map<String, Map<String, String>> mapMapString) {
this.mapMapString = mapMapString; this.mapMapString = mapMapString;
} }
public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) { public AdditionalPropertiesClass mapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype; this.mapMapAnytype = mapMapAnytype;
return this; return this;
} }
@ -282,15 +323,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_ANYTYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, Object>> getMapMapAnytype() { public Map<String, Map<String, Object>> getMapMapAnytype() {
return mapMapAnytype; return mapMapAnytype;
} }
public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) { public void setMapMapAnytype(Map<String, Map<String, Object>> mapMapAnytype) {
this.mapMapAnytype = mapMapAnytype; this.mapMapAnytype = mapMapAnytype;
} }
public AdditionalPropertiesClass anytype1(Object anytype1) { public AdditionalPropertiesClass anytype1(Object anytype1) {
this.anytype1 = anytype1; this.anytype1 = anytype1;
return this; return this;
} }
@ -301,15 +349,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAnytype1() { public Object getAnytype1() {
return anytype1; return anytype1;
} }
public void setAnytype1(Object anytype1) { public void setAnytype1(Object anytype1) {
this.anytype1 = anytype1; this.anytype1 = anytype1;
} }
public AdditionalPropertiesClass anytype2(Object anytype2) { public AdditionalPropertiesClass anytype2(Object anytype2) {
this.anytype2 = anytype2; this.anytype2 = anytype2;
return this; return this;
} }
@ -320,15 +375,22 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAnytype2() { public Object getAnytype2() {
return anytype2; return anytype2;
} }
public void setAnytype2(Object anytype2) { public void setAnytype2(Object anytype2) {
this.anytype2 = anytype2; this.anytype2 = anytype2;
} }
public AdditionalPropertiesClass anytype3(Object anytype3) { public AdditionalPropertiesClass anytype3(Object anytype3) {
this.anytype3 = anytype3; this.anytype3 = anytype3;
return this; return this;
} }
@ -339,10 +401,15 @@ public class AdditionalPropertiesClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ANYTYPE3)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Object getAnytype3() { public Object getAnytype3() {
return anytype3; return anytype3;
} }
public void setAnytype3(Object anytype3) { public void setAnytype3(Object anytype3) {
this.anytype3 = anytype3; this.anytype3 = anytype3;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesInteger extends HashMap<String, Integer> { public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesInteger name(String name) { public AdditionalPropertiesInteger name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,10 +31,11 @@ import java.util.Map;
public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> { public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesNumber name(String name) { public AdditionalPropertiesNumber name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -44,10 +46,15 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesObject extends HashMap<String, Map> { public class AdditionalPropertiesObject extends HashMap<String, Map> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesObject name(String name) { public AdditionalPropertiesObject name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import java.util.Map;
public class AdditionalPropertiesString extends HashMap<String, String> { public class AdditionalPropertiesString extends HashMap<String, String> {
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name; private String name;
public AdditionalPropertiesString name(String name) { public AdditionalPropertiesString name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -43,10 +45,15 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonSubTypes;
@ -35,14 +36,14 @@ import io.swagger.annotations.ApiModelProperty;
public class Animal { public class Animal {
public static final String JSON_PROPERTY_CLASS_NAME = "className"; public static final String JSON_PROPERTY_CLASS_NAME = "className";
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
private String className; private String className;
public static final String JSON_PROPERTY_COLOR = "color"; public static final String JSON_PROPERTY_COLOR = "color";
@JsonProperty(JSON_PROPERTY_COLOR)
private String color = "red"; private String color = "red";
public Animal className(String className) { public Animal className(String className) {
this.className = className; this.className = className;
return this; return this;
} }
@ -52,15 +53,22 @@ public class Animal {
* @return className * @return className
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getClassName() { public String getClassName() {
return className; return className;
} }
public void setClassName(String className) { public void setClassName(String className) {
this.className = className; this.className = className;
} }
public Animal color(String color) { public Animal color(String color) {
this.color = color; this.color = color;
return this; return this;
} }
@ -71,10 +79,15 @@ public class Animal {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_COLOR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getColor() { public String getColor() {
return color; return color;
} }
public void setColor(String color) { public void setColor(String color) {
this.color = color; this.color = color;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,10 +31,11 @@ import java.util.List;
public class ArrayOfArrayOfNumberOnly { public class ArrayOfArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber"; public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
private List<List<BigDecimal>> arrayArrayNumber = null; private List<List<BigDecimal>> arrayArrayNumber = null;
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) { public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber; this.arrayArrayNumber = arrayArrayNumber;
return this; return this;
} }
@ -52,10 +54,15 @@ public class ArrayOfArrayOfNumberOnly {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<BigDecimal>> getArrayArrayNumber() { public List<List<BigDecimal>> getArrayArrayNumber() {
return arrayArrayNumber; return arrayArrayNumber;
} }
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) { public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
this.arrayArrayNumber = arrayArrayNumber; this.arrayArrayNumber = arrayArrayNumber;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,10 +31,11 @@ import java.util.List;
public class ArrayOfNumberOnly { public class ArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber"; public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
private List<BigDecimal> arrayNumber = null; private List<BigDecimal> arrayNumber = null;
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) { public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber; this.arrayNumber = arrayNumber;
return this; return this;
} }
@ -52,10 +54,15 @@ public class ArrayOfNumberOnly {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<BigDecimal> getArrayNumber() { public List<BigDecimal> getArrayNumber() {
return arrayNumber; return arrayNumber;
} }
public void setArrayNumber(List<BigDecimal> arrayNumber) { public void setArrayNumber(List<BigDecimal> arrayNumber) {
this.arrayNumber = arrayNumber; this.arrayNumber = arrayNumber;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,18 +31,17 @@ import org.openapitools.client.model.ReadOnlyFirst;
public class ArrayTest { public class ArrayTest {
public static final String JSON_PROPERTY_ARRAY_OF_STRING = "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 = null; private List<String> arrayOfString = null;
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "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 = null; private List<List<Long>> arrayArrayOfInteger = null;
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "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 = null; private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
public ArrayTest arrayOfString(List<String> arrayOfString) { public ArrayTest arrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString; this.arrayOfString = arrayOfString;
return this; return this;
} }
@ -60,15 +60,22 @@ public class ArrayTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getArrayOfString() { public List<String> getArrayOfString() {
return arrayOfString; return arrayOfString;
} }
public void setArrayOfString(List<String> arrayOfString) { public void setArrayOfString(List<String> arrayOfString) {
this.arrayOfString = arrayOfString; this.arrayOfString = arrayOfString;
} }
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) { public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger; this.arrayArrayOfInteger = arrayArrayOfInteger;
return this; return this;
} }
@ -87,15 +94,22 @@ public class ArrayTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<Long>> getArrayArrayOfInteger() { public List<List<Long>> getArrayArrayOfInteger() {
return arrayArrayOfInteger; return arrayArrayOfInteger;
} }
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) { public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
this.arrayArrayOfInteger = arrayArrayOfInteger; this.arrayArrayOfInteger = arrayArrayOfInteger;
} }
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) { public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel; this.arrayArrayOfModel = arrayArrayOfModel;
return this; return this;
} }
@ -114,10 +128,15 @@ public class ArrayTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() { public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
return arrayArrayOfModel; return arrayArrayOfModel;
} }
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) { public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
this.arrayArrayOfModel = arrayArrayOfModel; this.arrayArrayOfModel = arrayArrayOfModel;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,30 +28,26 @@ import io.swagger.annotations.ApiModelProperty;
public class Capitalization { public class Capitalization {
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel"; public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
private String smallCamel; private String smallCamel;
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel"; public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
private String capitalCamel; private String capitalCamel;
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake"; public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
private String smallSnake; private String smallSnake;
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake"; public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
private String capitalSnake; private String capitalSnake;
public static final String JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS = "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; private String scAETHFlowPoints;
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "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; private String ATT_NAME;
public Capitalization smallCamel(String smallCamel) { public Capitalization smallCamel(String smallCamel) {
this.smallCamel = smallCamel; this.smallCamel = smallCamel;
return this; return this;
} }
@ -61,15 +58,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSmallCamel() { public String getSmallCamel() {
return smallCamel; return smallCamel;
} }
public void setSmallCamel(String smallCamel) { public void setSmallCamel(String smallCamel) {
this.smallCamel = smallCamel; this.smallCamel = smallCamel;
} }
public Capitalization capitalCamel(String capitalCamel) { public Capitalization capitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel; this.capitalCamel = capitalCamel;
return this; return this;
} }
@ -80,15 +84,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCapitalCamel() { public String getCapitalCamel() {
return capitalCamel; return capitalCamel;
} }
public void setCapitalCamel(String capitalCamel) { public void setCapitalCamel(String capitalCamel) {
this.capitalCamel = capitalCamel; this.capitalCamel = capitalCamel;
} }
public Capitalization smallSnake(String smallSnake) { public Capitalization smallSnake(String smallSnake) {
this.smallSnake = smallSnake; this.smallSnake = smallSnake;
return this; return this;
} }
@ -99,15 +110,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSmallSnake() { public String getSmallSnake() {
return smallSnake; return smallSnake;
} }
public void setSmallSnake(String smallSnake) { public void setSmallSnake(String smallSnake) {
this.smallSnake = smallSnake; this.smallSnake = smallSnake;
} }
public Capitalization capitalSnake(String capitalSnake) { public Capitalization capitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake; this.capitalSnake = capitalSnake;
return this; return this;
} }
@ -118,15 +136,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCapitalSnake() { public String getCapitalSnake() {
return capitalSnake; return capitalSnake;
} }
public void setCapitalSnake(String capitalSnake) { public void setCapitalSnake(String capitalSnake) {
this.capitalSnake = capitalSnake; this.capitalSnake = capitalSnake;
} }
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) { public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints; this.scAETHFlowPoints = scAETHFlowPoints;
return this; return this;
} }
@ -137,15 +162,22 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getScAETHFlowPoints() { public String getScAETHFlowPoints() {
return scAETHFlowPoints; return scAETHFlowPoints;
} }
public void setScAETHFlowPoints(String scAETHFlowPoints) { public void setScAETHFlowPoints(String scAETHFlowPoints) {
this.scAETHFlowPoints = scAETHFlowPoints; this.scAETHFlowPoints = scAETHFlowPoints;
} }
public Capitalization ATT_NAME(String ATT_NAME) { public Capitalization ATT_NAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME; this.ATT_NAME = ATT_NAME;
return this; return this;
} }
@ -156,10 +188,15 @@ public class Capitalization {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "Name of the pet ") @ApiModelProperty(value = "Name of the pet ")
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getATTNAME() { public String getATTNAME() {
return ATT_NAME; return ATT_NAME;
} }
public void setATTNAME(String ATT_NAME) { public void setATTNAME(String ATT_NAME) {
this.ATT_NAME = ATT_NAME; this.ATT_NAME = ATT_NAME;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import org.openapitools.client.model.CatAllOf;
public class Cat extends Animal { public class Cat extends Animal {
public static final String JSON_PROPERTY_DECLAWED = "declawed"; public static final String JSON_PROPERTY_DECLAWED = "declawed";
@JsonProperty(JSON_PROPERTY_DECLAWED)
private Boolean declawed; private Boolean declawed;
public Cat declawed(Boolean declawed) { public Cat declawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
return this; return this;
} }
@ -43,10 +45,15 @@ public class Cat extends Animal {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isDeclawed() { public Boolean isDeclawed() {
return declawed; return declawed;
} }
public void setDeclawed(Boolean declawed) { public void setDeclawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty;
public class CatAllOf { public class CatAllOf {
public static final String JSON_PROPERTY_DECLAWED = "declawed"; public static final String JSON_PROPERTY_DECLAWED = "declawed";
@JsonProperty(JSON_PROPERTY_DECLAWED)
private Boolean declawed; private Boolean declawed;
public CatAllOf declawed(Boolean declawed) { public CatAllOf declawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
return this; return this;
} }
@ -41,10 +43,15 @@ public class CatAllOf {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DECLAWED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean isDeclawed() { public Boolean isDeclawed() {
return declawed; return declawed;
} }
public void setDeclawed(Boolean declawed) { public void setDeclawed(Boolean declawed) {
this.declawed = declawed; this.declawed = declawed;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,14 +28,14 @@ import io.swagger.annotations.ApiModelProperty;
public class Category { public class Category {
public static final String JSON_PROPERTY_ID = "id"; public static final String JSON_PROPERTY_ID = "id";
@JsonProperty(JSON_PROPERTY_ID)
private Long id; private Long id;
public static final String JSON_PROPERTY_NAME = "name"; public static final String JSON_PROPERTY_NAME = "name";
@JsonProperty(JSON_PROPERTY_NAME)
private String name = "default-name"; private String name = "default-name";
public Category id(Long id) { public Category id(Long id) {
this.id = id; this.id = id;
return this; return this;
} }
@ -45,15 +46,22 @@ public class Category {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getId() { public Long getId() {
return id; return id;
} }
public void setId(Long id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
public Category name(String name) { public Category name(String name) {
this.name = name; this.name = name;
return this; return this;
} }
@ -63,10 +71,15 @@ public class Category {
* @return name * @return name
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NAME)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) { public void setName(String name) {
this.name = name; this.name = name;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -28,10 +29,11 @@ import io.swagger.annotations.ApiModelProperty;
public class ClassModel { public class ClassModel {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class"; public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
private String propertyClass; private String propertyClass;
public ClassModel propertyClass(String propertyClass) { public ClassModel propertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
return this; return this;
} }
@ -42,10 +44,15 @@ public class ClassModel {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_PROPERTY_CLASS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getPropertyClass() { public String getPropertyClass() {
return propertyClass; return propertyClass;
} }
public void setPropertyClass(String propertyClass) { public void setPropertyClass(String propertyClass) {
this.propertyClass = propertyClass; this.propertyClass = propertyClass;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty;
public class Client { public class Client {
public static final String JSON_PROPERTY_CLIENT = "client"; public static final String JSON_PROPERTY_CLIENT = "client";
@JsonProperty(JSON_PROPERTY_CLIENT)
private String client; private String client;
public Client client(String client) { public Client client(String client) {
this.client = client; this.client = client;
return this; return this;
} }
@ -41,10 +43,15 @@ public class Client {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_CLIENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getClient() { public String getClient() {
return client; return client;
} }
public void setClient(String client) { public void setClient(String client) {
this.client = client; this.client = client;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,10 +30,11 @@ import org.openapitools.client.model.DogAllOf;
public class Dog extends Animal { public class Dog extends Animal {
public static final String JSON_PROPERTY_BREED = "breed"; public static final String JSON_PROPERTY_BREED = "breed";
@JsonProperty(JSON_PROPERTY_BREED)
private String breed; private String breed;
public Dog breed(String breed) { public Dog breed(String breed) {
this.breed = breed; this.breed = breed;
return this; return this;
} }
@ -43,10 +45,15 @@ public class Dog extends Animal {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBreed() { public String getBreed() {
return breed; return breed;
} }
public void setBreed(String breed) { public void setBreed(String breed) {
this.breed = breed; this.breed = breed;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,10 +28,11 @@ import io.swagger.annotations.ApiModelProperty;
public class DogAllOf { public class DogAllOf {
public static final String JSON_PROPERTY_BREED = "breed"; public static final String JSON_PROPERTY_BREED = "breed";
@JsonProperty(JSON_PROPERTY_BREED)
private String breed; private String breed;
public DogAllOf breed(String breed) { public DogAllOf breed(String breed) {
this.breed = breed; this.breed = breed;
return this; return this;
} }
@ -41,10 +43,15 @@ public class DogAllOf {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BREED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBreed() { public String getBreed() {
return breed; return breed;
} }
public void setBreed(String breed) { public void setBreed(String breed) {
this.breed = breed; this.breed = breed;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -64,7 +65,6 @@ public class EnumArrays {
} }
public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol"; public static final String JSON_PROPERTY_JUST_SYMBOL = "just_symbol";
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
private JustSymbolEnum justSymbol; private JustSymbolEnum justSymbol;
/** /**
@ -103,10 +103,11 @@ public class EnumArrays {
} }
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum"; public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
private List<ArrayEnumEnum> arrayEnum = null; private List<ArrayEnumEnum> arrayEnum = null;
public EnumArrays justSymbol(JustSymbolEnum justSymbol) { public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol; this.justSymbol = justSymbol;
return this; return this;
} }
@ -117,15 +118,22 @@ public class EnumArrays {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_JUST_SYMBOL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JustSymbolEnum getJustSymbol() { public JustSymbolEnum getJustSymbol() {
return justSymbol; return justSymbol;
} }
public void setJustSymbol(JustSymbolEnum justSymbol) { public void setJustSymbol(JustSymbolEnum justSymbol) {
this.justSymbol = justSymbol; this.justSymbol = justSymbol;
} }
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) { public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum; this.arrayEnum = arrayEnum;
return this; return this;
} }
@ -144,10 +152,15 @@ public class EnumArrays {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ARRAY_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<ArrayEnumEnum> getArrayEnum() { public List<ArrayEnumEnum> getArrayEnum() {
return arrayEnum; return arrayEnum;
} }
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) { public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
this.arrayEnum = arrayEnum; this.arrayEnum = arrayEnum;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -65,7 +66,6 @@ public class EnumTest {
} }
public static final String JSON_PROPERTY_ENUM_STRING = "enum_string"; public static final String JSON_PROPERTY_ENUM_STRING = "enum_string";
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
private EnumStringEnum enumString; private EnumStringEnum enumString;
/** /**
@ -106,7 +106,6 @@ public class EnumTest {
} }
public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required"; public static final String JSON_PROPERTY_ENUM_STRING_REQUIRED = "enum_string_required";
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
private EnumStringRequiredEnum enumStringRequired; private EnumStringRequiredEnum enumStringRequired;
/** /**
@ -145,7 +144,6 @@ public class EnumTest {
} }
public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer"; public static final String JSON_PROPERTY_ENUM_INTEGER = "enum_integer";
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
private EnumIntegerEnum enumInteger; private EnumIntegerEnum enumInteger;
/** /**
@ -184,14 +182,14 @@ public class EnumTest {
} }
public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number"; public static final String JSON_PROPERTY_ENUM_NUMBER = "enum_number";
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
private EnumNumberEnum enumNumber; private EnumNumberEnum enumNumber;
public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum"; public static final String JSON_PROPERTY_OUTER_ENUM = "outerEnum";
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
private OuterEnum outerEnum; private OuterEnum outerEnum;
public EnumTest enumString(EnumStringEnum enumString) { public EnumTest enumString(EnumStringEnum enumString) {
this.enumString = enumString; this.enumString = enumString;
return this; return this;
} }
@ -202,15 +200,22 @@ public class EnumTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumStringEnum getEnumString() { public EnumStringEnum getEnumString() {
return enumString; return enumString;
} }
public void setEnumString(EnumStringEnum enumString) { public void setEnumString(EnumStringEnum enumString) {
this.enumString = enumString; this.enumString = enumString;
} }
public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) { public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired; this.enumStringRequired = enumStringRequired;
return this; return this;
} }
@ -220,15 +225,22 @@ public class EnumTest {
* @return enumStringRequired * @return enumStringRequired
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_ENUM_STRING_REQUIRED)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public EnumStringRequiredEnum getEnumStringRequired() { public EnumStringRequiredEnum getEnumStringRequired() {
return enumStringRequired; return enumStringRequired;
} }
public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) { public void setEnumStringRequired(EnumStringRequiredEnum enumStringRequired) {
this.enumStringRequired = enumStringRequired; this.enumStringRequired = enumStringRequired;
} }
public EnumTest enumInteger(EnumIntegerEnum enumInteger) { public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger; this.enumInteger = enumInteger;
return this; return this;
} }
@ -239,15 +251,22 @@ public class EnumTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumIntegerEnum getEnumInteger() { public EnumIntegerEnum getEnumInteger() {
return enumInteger; return enumInteger;
} }
public void setEnumInteger(EnumIntegerEnum enumInteger) { public void setEnumInteger(EnumIntegerEnum enumInteger) {
this.enumInteger = enumInteger; this.enumInteger = enumInteger;
} }
public EnumTest enumNumber(EnumNumberEnum enumNumber) { public EnumTest enumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber; this.enumNumber = enumNumber;
return this; return this;
} }
@ -258,15 +277,22 @@ public class EnumTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ENUM_NUMBER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public EnumNumberEnum getEnumNumber() { public EnumNumberEnum getEnumNumber() {
return enumNumber; return enumNumber;
} }
public void setEnumNumber(EnumNumberEnum enumNumber) { public void setEnumNumber(EnumNumberEnum enumNumber) {
this.enumNumber = enumNumber; this.enumNumber = enumNumber;
} }
public EnumTest outerEnum(OuterEnum outerEnum) { public EnumTest outerEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum; this.outerEnum = outerEnum;
return this; return this;
} }
@ -277,10 +303,15 @@ public class EnumTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_OUTER_ENUM)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OuterEnum getOuterEnum() { public OuterEnum getOuterEnum() {
return outerEnum; return outerEnum;
} }
public void setOuterEnum(OuterEnum outerEnum) { public void setOuterEnum(OuterEnum outerEnum) {
this.outerEnum = outerEnum; this.outerEnum = outerEnum;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -29,14 +30,14 @@ import java.util.List;
public class FileSchemaTestClass { public class FileSchemaTestClass {
public static final String JSON_PROPERTY_FILE = "file"; public static final String JSON_PROPERTY_FILE = "file";
@JsonProperty(JSON_PROPERTY_FILE) private java.io.File file;
private java.io.File file = null;
public static final String JSON_PROPERTY_FILES = "files"; public static final String JSON_PROPERTY_FILES = "files";
@JsonProperty(JSON_PROPERTY_FILES)
private List<java.io.File> files = null; private List<java.io.File> files = null;
public FileSchemaTestClass file(java.io.File file) { public FileSchemaTestClass file(java.io.File file) {
this.file = file; this.file = file;
return this; return this;
} }
@ -47,15 +48,22 @@ public class FileSchemaTestClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.io.File getFile() { public java.io.File getFile() {
return file; return file;
} }
public void setFile(java.io.File file) { public void setFile(java.io.File file) {
this.file = file; this.file = file;
} }
public FileSchemaTestClass files(List<java.io.File> files) { public FileSchemaTestClass files(List<java.io.File> files) {
this.files = files; this.files = files;
return this; return this;
} }
@ -74,10 +82,15 @@ public class FileSchemaTestClass {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FILES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<java.io.File> getFiles() { public List<java.io.File> getFiles() {
return files; return files;
} }
public void setFiles(List<java.io.File> files) { public void setFiles(List<java.io.File> files) {
this.files = files; this.files = files;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -32,58 +33,47 @@ import org.threeten.bp.OffsetDateTime;
public class FormatTest { public class FormatTest {
public static final String JSON_PROPERTY_INTEGER = "integer"; public static final String JSON_PROPERTY_INTEGER = "integer";
@JsonProperty(JSON_PROPERTY_INTEGER)
private Integer integer; private Integer integer;
public static final String JSON_PROPERTY_INT32 = "int32"; public static final String JSON_PROPERTY_INT32 = "int32";
@JsonProperty(JSON_PROPERTY_INT32)
private Integer int32; private Integer int32;
public static final String JSON_PROPERTY_INT64 = "int64"; public static final String JSON_PROPERTY_INT64 = "int64";
@JsonProperty(JSON_PROPERTY_INT64)
private Long int64; private Long int64;
public static final String JSON_PROPERTY_NUMBER = "number"; public static final String JSON_PROPERTY_NUMBER = "number";
@JsonProperty(JSON_PROPERTY_NUMBER)
private BigDecimal number; private BigDecimal number;
public static final String JSON_PROPERTY_FLOAT = "float"; public static final String JSON_PROPERTY_FLOAT = "float";
@JsonProperty(JSON_PROPERTY_FLOAT)
private Float _float; private Float _float;
public static final String JSON_PROPERTY_DOUBLE = "double"; public static final String JSON_PROPERTY_DOUBLE = "double";
@JsonProperty(JSON_PROPERTY_DOUBLE)
private Double _double; private Double _double;
public static final String JSON_PROPERTY_STRING = "string"; public static final String JSON_PROPERTY_STRING = "string";
@JsonProperty(JSON_PROPERTY_STRING)
private String string; private String string;
public static final String JSON_PROPERTY_BYTE = "byte"; public static final String JSON_PROPERTY_BYTE = "byte";
@JsonProperty(JSON_PROPERTY_BYTE)
private byte[] _byte; private byte[] _byte;
public static final String JSON_PROPERTY_BINARY = "binary"; public static final String JSON_PROPERTY_BINARY = "binary";
@JsonProperty(JSON_PROPERTY_BINARY)
private File binary; private File binary;
public static final String JSON_PROPERTY_DATE = "date"; public static final String JSON_PROPERTY_DATE = "date";
@JsonProperty(JSON_PROPERTY_DATE)
private LocalDate date; private LocalDate date;
public static final String JSON_PROPERTY_DATE_TIME = "dateTime"; public static final String JSON_PROPERTY_DATE_TIME = "dateTime";
@JsonProperty(JSON_PROPERTY_DATE_TIME)
private OffsetDateTime dateTime; private OffsetDateTime dateTime;
public static final String JSON_PROPERTY_UUID = "uuid"; public static final String JSON_PROPERTY_UUID = "uuid";
@JsonProperty(JSON_PROPERTY_UUID)
private UUID uuid; private UUID uuid;
public static final String JSON_PROPERTY_PASSWORD = "password"; public static final String JSON_PROPERTY_PASSWORD = "password";
@JsonProperty(JSON_PROPERTY_PASSWORD)
private String password; private String password;
public FormatTest integer(Integer integer) { public FormatTest integer(Integer integer) {
this.integer = integer; this.integer = integer;
return this; return this;
} }
@ -96,15 +86,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INTEGER)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInteger() { public Integer getInteger() {
return integer; return integer;
} }
public void setInteger(Integer integer) { public void setInteger(Integer integer) {
this.integer = integer; this.integer = integer;
} }
public FormatTest int32(Integer int32) { public FormatTest int32(Integer int32) {
this.int32 = int32; this.int32 = int32;
return this; return this;
} }
@ -117,15 +114,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT32)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Integer getInt32() { public Integer getInt32() {
return int32; return int32;
} }
public void setInt32(Integer int32) { public void setInt32(Integer int32) {
this.int32 = int32; this.int32 = int32;
} }
public FormatTest int64(Long int64) { public FormatTest int64(Long int64) {
this.int64 = int64; this.int64 = int64;
return this; return this;
} }
@ -136,15 +140,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INT64)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Long getInt64() { public Long getInt64() {
return int64; return int64;
} }
public void setInt64(Long int64) { public void setInt64(Long int64) {
this.int64 = int64; this.int64 = int64;
} }
public FormatTest number(BigDecimal number) { public FormatTest number(BigDecimal number) {
this.number = number; this.number = number;
return this; return this;
} }
@ -156,15 +167,22 @@ public class FormatTest {
* @return number * @return number
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_NUMBER)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public BigDecimal getNumber() { public BigDecimal getNumber() {
return number; return number;
} }
public void setNumber(BigDecimal number) { public void setNumber(BigDecimal number) {
this.number = number; this.number = number;
} }
public FormatTest _float(Float _float) { public FormatTest _float(Float _float) {
this._float = _float; this._float = _float;
return this; return this;
} }
@ -177,15 +195,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FLOAT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Float getFloat() { public Float getFloat() {
return _float; return _float;
} }
public void setFloat(Float _float) { public void setFloat(Float _float) {
this._float = _float; this._float = _float;
} }
public FormatTest _double(Double _double) { public FormatTest _double(Double _double) {
this._double = _double; this._double = _double;
return this; return this;
} }
@ -198,15 +223,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DOUBLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Double getDouble() { public Double getDouble() {
return _double; return _double;
} }
public void setDouble(Double _double) { public void setDouble(Double _double) {
this._double = _double; this._double = _double;
} }
public FormatTest string(String string) { public FormatTest string(String string) {
this.string = string; this.string = string;
return this; return this;
} }
@ -217,15 +249,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getString() { public String getString() {
return string; return string;
} }
public void setString(String string) { public void setString(String string) {
this.string = string; this.string = string;
} }
public FormatTest _byte(byte[] _byte) { public FormatTest _byte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
return this; return this;
} }
@ -235,15 +274,22 @@ public class FormatTest {
* @return _byte * @return _byte
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_BYTE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public byte[] getByte() { public byte[] getByte() {
return _byte; return _byte;
} }
public void setByte(byte[] _byte) { public void setByte(byte[] _byte) {
this._byte = _byte; this._byte = _byte;
} }
public FormatTest binary(File binary) { public FormatTest binary(File binary) {
this.binary = binary; this.binary = binary;
return this; return this;
} }
@ -254,15 +300,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BINARY)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public File getBinary() { public File getBinary() {
return binary; return binary;
} }
public void setBinary(File binary) { public void setBinary(File binary) {
this.binary = binary; this.binary = binary;
} }
public FormatTest date(LocalDate date) { public FormatTest date(LocalDate date) {
this.date = date; this.date = date;
return this; return this;
} }
@ -272,15 +325,22 @@ public class FormatTest {
* @return date * @return date
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_DATE)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public LocalDate getDate() { public LocalDate getDate() {
return date; return date;
} }
public void setDate(LocalDate date) { public void setDate(LocalDate date) {
this.date = date; this.date = date;
} }
public FormatTest dateTime(OffsetDateTime dateTime) { public FormatTest dateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
return this; return this;
} }
@ -291,15 +351,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DATE_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public OffsetDateTime getDateTime() { public OffsetDateTime getDateTime() {
return dateTime; return dateTime;
} }
public void setDateTime(OffsetDateTime dateTime) { public void setDateTime(OffsetDateTime dateTime) {
this.dateTime = dateTime; this.dateTime = dateTime;
} }
public FormatTest uuid(UUID uuid) { public FormatTest uuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
return this; return this;
} }
@ -310,15 +377,22 @@ public class FormatTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "") @ApiModelProperty(example = "72f98069-206d-4f12-9f12-3d1e525a8e84", value = "")
@JsonProperty(JSON_PROPERTY_UUID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public UUID getUuid() { public UUID getUuid() {
return uuid; return uuid;
} }
public void setUuid(UUID uuid) { public void setUuid(UUID uuid) {
this.uuid = uuid; this.uuid = uuid;
} }
public FormatTest password(String password) { public FormatTest password(String password) {
this.password = password; this.password = password;
return this; return this;
} }
@ -328,10 +402,15 @@ public class FormatTest {
* @return password * @return password
**/ **/
@ApiModelProperty(required = true, value = "") @ApiModelProperty(required = true, value = "")
@JsonProperty(JSON_PROPERTY_PASSWORD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public String getPassword() { public String getPassword() {
return password; return password;
} }
public void setPassword(String password) { public void setPassword(String password) {
this.password = password; this.password = password;
} }

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -27,34 +28,44 @@ import io.swagger.annotations.ApiModelProperty;
public class HasOnlyReadOnly { public class HasOnlyReadOnly {
public static final String JSON_PROPERTY_BAR = "bar"; public static final String JSON_PROPERTY_BAR = "bar";
@JsonProperty(JSON_PROPERTY_BAR)
private String bar; private String bar;
public static final String JSON_PROPERTY_FOO = "foo"; public static final String JSON_PROPERTY_FOO = "foo";
@JsonProperty(JSON_PROPERTY_FOO)
private String foo; private String foo;
/** /**
* Get bar * Get bar
* @return bar * @return bar
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_BAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getBar() { public String getBar() {
return bar; return bar;
} }
/** /**
* Get foo * Get foo
* @return foo * @return foo
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FOO)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getFoo() { public String getFoo() {
return foo; return foo;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {

View File

@ -15,6 +15,7 @@ package org.openapitools.client.model;
import java.util.Objects; import java.util.Objects;
import java.util.Arrays; import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.annotation.JsonValue;
@ -30,7 +31,6 @@ import java.util.Map;
public class MapTest { public class MapTest {
public static final String JSON_PROPERTY_MAP_MAP_OF_STRING = "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 = null; private Map<String, Map<String, String>> mapMapOfString = null;
/** /**
@ -69,18 +69,17 @@ public class MapTest {
} }
public static final String JSON_PROPERTY_MAP_OF_ENUM_STRING = "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 = null; private Map<String, InnerEnum> mapOfEnumString = null;
public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map"; public static final String JSON_PROPERTY_DIRECT_MAP = "direct_map";
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
private Map<String, Boolean> directMap = null; private Map<String, Boolean> directMap = null;
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map"; public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
private Map<String, Boolean> indirectMap = null; private Map<String, Boolean> indirectMap = null;
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) { public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString; this.mapMapOfString = mapMapOfString;
return this; return this;
} }
@ -99,15 +98,22 @@ public class MapTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_MAP_OF_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Map<String, String>> getMapMapOfString() { public Map<String, Map<String, String>> getMapMapOfString() {
return mapMapOfString; return mapMapOfString;
} }
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) { public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
this.mapMapOfString = mapMapOfString; this.mapMapOfString = mapMapOfString;
} }
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) { public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString; this.mapOfEnumString = mapOfEnumString;
return this; return this;
} }
@ -126,15 +132,22 @@ public class MapTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_MAP_OF_ENUM_STRING)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, InnerEnum> getMapOfEnumString() { public Map<String, InnerEnum> getMapOfEnumString() {
return mapOfEnumString; return mapOfEnumString;
} }
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) { public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
this.mapOfEnumString = mapOfEnumString; this.mapOfEnumString = mapOfEnumString;
} }
public MapTest directMap(Map<String, Boolean> directMap) { public MapTest directMap(Map<String, Boolean> directMap) {
this.directMap = directMap; this.directMap = directMap;
return this; return this;
} }
@ -153,15 +166,22 @@ public class MapTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_DIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getDirectMap() { public Map<String, Boolean> getDirectMap() {
return directMap; return directMap;
} }
public void setDirectMap(Map<String, Boolean> directMap) { public void setDirectMap(Map<String, Boolean> directMap) {
this.directMap = directMap; this.directMap = directMap;
} }
public MapTest indirectMap(Map<String, Boolean> indirectMap) { public MapTest indirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
return this; return this;
} }
@ -180,10 +200,15 @@ public class MapTest {
**/ **/
@javax.annotation.Nullable @javax.annotation.Nullable
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_INDIRECT_MAP)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Map<String, Boolean> getIndirectMap() { public Map<String, Boolean> getIndirectMap() {
return indirectMap; return indirectMap;
} }
public void setIndirectMap(Map<String, Boolean> indirectMap) { public void setIndirectMap(Map<String, Boolean> indirectMap) {
this.indirectMap = indirectMap; this.indirectMap = indirectMap;
} }

Some files were not shown because too many files have changed in this diff Show More