forked from loafle/openapi-generator-original
[Java][Native] Support oneOf/anyOf schemas (#7263)
* Java-native add models of oneOf/anyOf * Java-native refresh samples * Java-native add a sample project for openapi3
This commit is contained in:
parent
f76d72edf1
commit
edf153eede
11
bin/configs/java-native-openapi3.yaml
Normal file
11
bin/configs/java-native-openapi3.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
generatorName: java
|
||||||
|
outputDir: samples/openapi3/client/petstore/java/native
|
||||||
|
library: native
|
||||||
|
inputSpec: modules/openapi-generator/src/test/resources/3_0/java/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml
|
||||||
|
templateDir: modules/openapi-generator/src/main/resources/Java
|
||||||
|
additionalProperties:
|
||||||
|
artifactId: petstore-openapi3-native
|
||||||
|
hideGenerationTimestamp: true
|
||||||
|
serverPort: "8082"
|
||||||
|
useOneOfDiscriminatorLookup: true
|
||||||
|
disallowAdditionalPropertiesIfNotPresent: false
|
@ -418,6 +418,8 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
setJava8Mode(true);
|
setJava8Mode(true);
|
||||||
additionalProperties.put("java8", "true");
|
additionalProperties.put("java8", "true");
|
||||||
supportingFiles.add(new SupportingFile("ApiResponse.mustache", invokerFolder, "ApiResponse.java"));
|
supportingFiles.add(new SupportingFile("ApiResponse.mustache", invokerFolder, "ApiResponse.java"));
|
||||||
|
supportingFiles.add(new SupportingFile("JSON.mustache", invokerFolder, "JSON.java"));
|
||||||
|
supportingFiles.add(new SupportingFile("AbstractOpenApiSchema.mustache", (sourceFolder + File.separator + modelPackage().replace('.', File.separatorChar)).replace('/', File.separatorChar), "AbstractOpenApiSchema.java"));
|
||||||
forceSerializationLibrary(SERIALIZATION_LIBRARY_JACKSON);
|
forceSerializationLibrary(SERIALIZATION_LIBRARY_JACKSON);
|
||||||
} else if (RESTEASY.equals(getLibrary())) {
|
} else if (RESTEASY.equals(getLibrary())) {
|
||||||
supportingFiles.add(new SupportingFile("JSON.mustache", invokerFolder, "JSON.java"));
|
supportingFiles.add(new SupportingFile("JSON.mustache", invokerFolder, "JSON.java"));
|
||||||
@ -536,8 +538,8 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
if (SERIALIZATION_LIBRARY_JACKSON.equals(getSerializationLibrary())) {
|
if (SERIALIZATION_LIBRARY_JACKSON.equals(getSerializationLibrary())) {
|
||||||
additionalProperties.put(SERIALIZATION_LIBRARY_JACKSON, "true");
|
additionalProperties.put(SERIALIZATION_LIBRARY_JACKSON, "true");
|
||||||
additionalProperties.remove(SERIALIZATION_LIBRARY_GSON);
|
additionalProperties.remove(SERIALIZATION_LIBRARY_GSON);
|
||||||
|
supportingFiles.add(new SupportingFile("RFC3339DateFormat.mustache", invokerFolder, "RFC3339DateFormat.java"));
|
||||||
if (!NATIVE.equals(getLibrary())) {
|
if (!NATIVE.equals(getLibrary())) {
|
||||||
supportingFiles.add(new SupportingFile("RFC3339DateFormat.mustache", invokerFolder, "RFC3339DateFormat.java"));
|
|
||||||
if ("threetenbp".equals(dateLibrary) && !usePlayWS) {
|
if ("threetenbp".equals(dateLibrary) && !usePlayWS) {
|
||||||
supportingFiles.add(new SupportingFile("CustomInstantDeserializer.mustache", invokerFolder, "CustomInstantDeserializer.java"));
|
supportingFiles.add(new SupportingFile("CustomInstantDeserializer.mustache", invokerFolder, "CustomInstantDeserializer.java"));
|
||||||
}
|
}
|
||||||
@ -822,7 +824,6 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
imports2Classnames.put("JsonNullable", "org.openapitools.jackson.nullable.JsonNullable");
|
imports2Classnames.put("JsonNullable", "org.openapitools.jackson.nullable.JsonNullable");
|
||||||
imports2Classnames.put("NoSuchElementException", "java.util.NoSuchElementException");
|
imports2Classnames.put("NoSuchElementException", "java.util.NoSuchElementException");
|
||||||
imports2Classnames.put("JsonIgnore", "com.fasterxml.jackson.annotation.JsonIgnore");
|
imports2Classnames.put("JsonIgnore", "com.fasterxml.jackson.annotation.JsonIgnore");
|
||||||
|
|
||||||
for (Map.Entry<String, String> entry : imports2Classnames.entrySet()) {
|
for (Map.Entry<String, String> entry : imports2Classnames.entrySet()) {
|
||||||
cm.imports.add(entry.getKey());
|
cm.imports.add(entry.getKey());
|
||||||
Map<String, String> importsItem = new HashMap<String, String>();
|
Map<String, String> importsItem = new HashMap<String, String>();
|
||||||
@ -838,7 +839,7 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
CodegenModel cm = (CodegenModel) mo.get("model");
|
CodegenModel cm = (CodegenModel) mo.get("model");
|
||||||
|
|
||||||
cm.getVendorExtensions().putIfAbsent("x-implements", new ArrayList<String>());
|
cm.getVendorExtensions().putIfAbsent("x-implements", new ArrayList<String>());
|
||||||
if (JERSEY2.equals(getLibrary())) {
|
if (JERSEY2.equals(getLibrary()) || NATIVE.equals(getLibrary())) {
|
||||||
cm.getVendorExtensions().put("x-implements", new ArrayList<String>());
|
cm.getVendorExtensions().put("x-implements", new ArrayList<String>());
|
||||||
|
|
||||||
if (cm.oneOf != null && !cm.oneOf.isEmpty() && cm.oneOf.contains("ModelNull")) {
|
if (cm.oneOf != null && !cm.oneOf.isEmpty() && cm.oneOf.contains("ModelNull")) {
|
||||||
@ -978,7 +979,6 @@ public class JavaClientCodegen extends AbstractJavaCodegen
|
|||||||
for (String i : Arrays.asList("JsonSubTypes", "JsonTypeInfo")) {
|
for (String i : Arrays.asList("JsonSubTypes", "JsonTypeInfo")) {
|
||||||
Map<String, String> oneImport = new HashMap<>();
|
Map<String, String> oneImport = new HashMap<>();
|
||||||
oneImport.put("import", importMapping.get(i));
|
oneImport.put("import", importMapping.get(i));
|
||||||
|
|
||||||
if (!imports.contains(oneImport)) {
|
if (!imports.contains(oneImport)) {
|
||||||
imports.add(oneImport);
|
imports.add(oneImport);
|
||||||
}
|
}
|
||||||
|
138
modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache
vendored
Normal file
138
modules/openapi-generator/src/main/resources/Java/libraries/native/AbstractOpenApiSchema.mustache
vendored
Normal file
@ -0,0 +1,138 @@
|
|||||||
|
{{>licenseInfo}}
|
||||||
|
|
||||||
|
package {{invokerPackage}}.model;
|
||||||
|
|
||||||
|
import {{invokerPackage}}.ApiException;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.lang.reflect.Type;
|
||||||
|
import java.util.Map;
|
||||||
|
import javax.ws.rs.core.GenericType;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
|
||||||
|
*/
|
||||||
|
{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}
|
||||||
|
public abstract class AbstractOpenApiSchema {
|
||||||
|
|
||||||
|
// store the actual instance of the schema/object
|
||||||
|
private Object instance;
|
||||||
|
|
||||||
|
// is nullable
|
||||||
|
private Boolean isNullable;
|
||||||
|
|
||||||
|
// schema type (e.g. oneOf, anyOf)
|
||||||
|
private final String schemaType;
|
||||||
|
|
||||||
|
public AbstractOpenApiSchema(String schemaType, Boolean isNullable) {
|
||||||
|
this.schemaType = schemaType;
|
||||||
|
this.isNullable = isNullable;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
|
||||||
|
*
|
||||||
|
* @return an instance of the actual schema/object
|
||||||
|
*/
|
||||||
|
public abstract Map<String, GenericType> getSchemas();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the actual instance
|
||||||
|
*
|
||||||
|
* @return an instance of the actual schema/object
|
||||||
|
*/
|
||||||
|
@JsonValue
|
||||||
|
public Object getActualInstance() {return instance;}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the actual instance
|
||||||
|
*
|
||||||
|
* @param instance the actual instance of the schema/object
|
||||||
|
*/
|
||||||
|
public void setActualInstance(Object instance) {this.instance = instance;}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well
|
||||||
|
*
|
||||||
|
* @return an instance of the actual schema/object
|
||||||
|
*/
|
||||||
|
public Object getActualInstanceRecursively() {
|
||||||
|
return getActualInstanceRecursively(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Object getActualInstanceRecursively(AbstractOpenApiSchema object) {
|
||||||
|
if (object.getActualInstance() == null) {
|
||||||
|
return null;
|
||||||
|
} else if (object.getActualInstance() instanceof AbstractOpenApiSchema) {
|
||||||
|
return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance());
|
||||||
|
} else {
|
||||||
|
return object.getActualInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the schema type (e.g. anyOf, oneOf)
|
||||||
|
*
|
||||||
|
* @return the schema type
|
||||||
|
*/
|
||||||
|
public String getSchemaType() {
|
||||||
|
return schemaType;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ").append(getClass()).append(" {\n");
|
||||||
|
sb.append(" instance: ").append(toIndentedString(instance)).append("\n");
|
||||||
|
sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n");
|
||||||
|
sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AbstractOpenApiSchema a = (AbstractOpenApiSchema) o;
|
||||||
|
return Objects.equals(this.instance, a.instance) &&
|
||||||
|
Objects.equals(this.isNullable, a.isNullable) &&
|
||||||
|
Objects.equals(this.schemaType, a.schemaType);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(instance, isNullable, schemaType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is nullalble
|
||||||
|
*
|
||||||
|
* @return true if it's nullable
|
||||||
|
*/
|
||||||
|
public Boolean isNullable() {
|
||||||
|
if (Boolean.TRUE.equals(isNullable)) {
|
||||||
|
return Boolean.TRUE;
|
||||||
|
} else {
|
||||||
|
return Boolean.FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
{{>libraries/native/additional_properties}}
|
||||||
|
|
||||||
|
}
|
@ -5,7 +5,7 @@ package {{invokerPackage}};
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
{{#caseInsensitiveResponseHeaders}}
|
{{#caseInsensitiveResponseHeaders}}
|
||||||
import java.util.Map.Entry;
|
import java.util.Map.Entry;
|
||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
{{/caseInsensitiveResponseHeaders}}
|
{{/caseInsensitiveResponseHeaders}}
|
||||||
|
|
||||||
|
276
modules/openapi-generator/src/main/resources/Java/libraries/native/JSON.mustache
vendored
Normal file
276
modules/openapi-generator/src/main/resources/Java/libraries/native/JSON.mustache
vendored
Normal file
@ -0,0 +1,276 @@
|
|||||||
|
package {{invokerPackage}};
|
||||||
|
|
||||||
|
{{#threetenbp}}
|
||||||
|
import org.threeten.bp.*;
|
||||||
|
{{/threetenbp}}
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
import com.fasterxml.jackson.databind.*;
|
||||||
|
{{#openApiNullable}}
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullableModule;
|
||||||
|
{{/openApiNullable}}
|
||||||
|
{{#java8}}
|
||||||
|
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
||||||
|
{{/java8}}
|
||||||
|
{{#joda}}
|
||||||
|
import com.fasterxml.jackson.datatype.joda.JodaModule;
|
||||||
|
{{/joda}}
|
||||||
|
{{#threetenbp}}
|
||||||
|
import com.fasterxml.jackson.datatype.threetenbp.ThreeTenModule;
|
||||||
|
{{/threetenbp}}
|
||||||
|
{{#models.0}}
|
||||||
|
import {{modelPackage}}.*;
|
||||||
|
{{/models.0}}
|
||||||
|
|
||||||
|
import java.text.DateFormat;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import javax.ws.rs.core.GenericType;
|
||||||
|
import javax.ws.rs.ext.ContextResolver;
|
||||||
|
|
||||||
|
{{>generatedAnnotation}}
|
||||||
|
public class JSON implements ContextResolver<ObjectMapper> {
|
||||||
|
private ObjectMapper mapper;
|
||||||
|
|
||||||
|
public JSON() {
|
||||||
|
mapper = new ObjectMapper();
|
||||||
|
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||||
|
mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false);
|
||||||
|
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true);
|
||||||
|
mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true);
|
||||||
|
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||||
|
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
|
||||||
|
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
|
||||||
|
mapper.setDateFormat(new RFC3339DateFormat());
|
||||||
|
{{#java8}}
|
||||||
|
mapper.registerModule(new JavaTimeModule());
|
||||||
|
{{/java8}}
|
||||||
|
{{#joda}}
|
||||||
|
mapper.registerModule(new JodaModule());
|
||||||
|
{{/joda}}
|
||||||
|
{{#threetenbp}}
|
||||||
|
ThreeTenModule module = new ThreeTenModule();
|
||||||
|
module.addDeserializer(Instant.class, CustomInstantDeserializer.INSTANT);
|
||||||
|
module.addDeserializer(OffsetDateTime.class, CustomInstantDeserializer.OFFSET_DATE_TIME);
|
||||||
|
module.addDeserializer(ZonedDateTime.class, CustomInstantDeserializer.ZONED_DATE_TIME);
|
||||||
|
mapper.registerModule(module);
|
||||||
|
{{/threetenbp}}
|
||||||
|
{{#openApiNullable}}
|
||||||
|
JsonNullableModule jnm = new JsonNullableModule();
|
||||||
|
mapper.registerModule(jnm);
|
||||||
|
{{/openApiNullable}}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the date format for JSON (de)serialization with Date properties.
|
||||||
|
* @param dateFormat Date format
|
||||||
|
*/
|
||||||
|
public void setDateFormat(DateFormat dateFormat) {
|
||||||
|
mapper.setDateFormat(dateFormat);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ObjectMapper getContext(Class<?> type) {
|
||||||
|
return mapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the object mapper
|
||||||
|
*
|
||||||
|
* @return object mapper
|
||||||
|
*/
|
||||||
|
public ObjectMapper getMapper() { return mapper; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the target model class that should be used to deserialize the input data.
|
||||||
|
* The discriminator mappings are used to determine the target model class.
|
||||||
|
*
|
||||||
|
* @param node The input data.
|
||||||
|
* @param modelClass The class that contains the discriminator mappings.
|
||||||
|
*/
|
||||||
|
public static Class<?> getClassForElement(JsonNode node, Class<?> modelClass) {
|
||||||
|
ClassDiscriminatorMapping cdm = modelDiscriminators.get(modelClass);
|
||||||
|
if (cdm != null) {
|
||||||
|
return cdm.getClassForElement(node, new HashSet<Class<?>>());
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper class to register the discriminator mappings.
|
||||||
|
*/
|
||||||
|
private static class ClassDiscriminatorMapping {
|
||||||
|
// The model class name.
|
||||||
|
Class<?> modelClass;
|
||||||
|
// The name of the discriminator property.
|
||||||
|
String discriminatorName;
|
||||||
|
// The discriminator mappings for a model class.
|
||||||
|
Map<String, Class<?>> discriminatorMappings;
|
||||||
|
|
||||||
|
// Constructs a new class discriminator.
|
||||||
|
ClassDiscriminatorMapping(Class<?> cls, String propertyName, Map<String, Class<?>> mappings) {
|
||||||
|
modelClass = cls;
|
||||||
|
discriminatorName = propertyName;
|
||||||
|
discriminatorMappings = new HashMap<String, Class<?>>();
|
||||||
|
if (mappings != null) {
|
||||||
|
discriminatorMappings.putAll(mappings);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Return the name of the discriminator property for this model class.
|
||||||
|
String getDiscriminatorPropertyName() {
|
||||||
|
return discriminatorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Return the discriminator value or null if the discriminator is not
|
||||||
|
// present in the payload.
|
||||||
|
String getDiscriminatorValue(JsonNode node) {
|
||||||
|
// Determine the value of the discriminator property in the input data.
|
||||||
|
if (discriminatorName != null) {
|
||||||
|
// Get the value of the discriminator property, if present in the input payload.
|
||||||
|
node = node.get(discriminatorName);
|
||||||
|
if (node != null && node.isValueNode()) {
|
||||||
|
String discrValue = node.asText();
|
||||||
|
if (discrValue != null) {
|
||||||
|
return discrValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the target model class that should be used to deserialize the input data.
|
||||||
|
* This function can be invoked for anyOf/oneOf composed models with discriminator mappings.
|
||||||
|
* The discriminator mappings are used to determine the target model class.
|
||||||
|
*
|
||||||
|
* @param node The input data.
|
||||||
|
* @param visitedClasses The set of classes that have already been visited.
|
||||||
|
*/
|
||||||
|
Class<?> getClassForElement(JsonNode node, Set<Class<?>> visitedClasses) {
|
||||||
|
if (visitedClasses.contains(modelClass)) {
|
||||||
|
// Class has already been visited.
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
// Determine the value of the discriminator property in the input data.
|
||||||
|
String discrValue = getDiscriminatorValue(node);
|
||||||
|
if (discrValue == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
Class<?> cls = discriminatorMappings.get(discrValue);
|
||||||
|
// It may not be sufficient to return this cls directly because that target class
|
||||||
|
// may itself be a composed schema, possibly with its own discriminator.
|
||||||
|
visitedClasses.add(modelClass);
|
||||||
|
for (Class<?> childClass : discriminatorMappings.values()) {
|
||||||
|
ClassDiscriminatorMapping childCdm = modelDiscriminators.get(childClass);
|
||||||
|
if (childCdm == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!discriminatorName.equals(childCdm.discriminatorName)) {
|
||||||
|
discrValue = getDiscriminatorValue(node);
|
||||||
|
if (discrValue == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (childCdm != null) {
|
||||||
|
// Recursively traverse the discriminator mappings.
|
||||||
|
Class<?> childDiscr = childCdm.getClassForElement(node, visitedClasses);
|
||||||
|
if (childDiscr != null) {
|
||||||
|
return childDiscr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return cls;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy.
|
||||||
|
*
|
||||||
|
* The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy,
|
||||||
|
* so it's not possible to use the instanceof keyword.
|
||||||
|
*
|
||||||
|
* @param modelClass A OpenAPI model class.
|
||||||
|
* @param inst The instance object.
|
||||||
|
*/
|
||||||
|
public static boolean isInstanceOf(Class<?> modelClass, Object inst, Set<Class<?>> visitedClasses) {
|
||||||
|
if (modelClass.isInstance(inst)) {
|
||||||
|
// This handles the 'allOf' use case with single parent inheritance.
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (visitedClasses.contains(modelClass)) {
|
||||||
|
// This is to prevent infinite recursion when the composed schemas have
|
||||||
|
// a circular dependency.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
visitedClasses.add(modelClass);
|
||||||
|
|
||||||
|
// Traverse the oneOf/anyOf composed schemas.
|
||||||
|
Map<String, GenericType> descendants = modelDescendants.get(modelClass);
|
||||||
|
if (descendants != null) {
|
||||||
|
for (GenericType childType : descendants.values()) {
|
||||||
|
if (isInstanceOf(childType.getRawType(), inst, visitedClasses)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A map of discriminators for all model classes.
|
||||||
|
*/
|
||||||
|
private static Map<Class<?>, ClassDiscriminatorMapping> modelDiscriminators = new HashMap<Class<?>, ClassDiscriminatorMapping>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A map of oneOf/anyOf descendants for each model class.
|
||||||
|
*/
|
||||||
|
private static Map<Class<?>, Map<String, GenericType>> modelDescendants = new HashMap<Class<?>, Map<String, GenericType>>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register a model class discriminator.
|
||||||
|
*
|
||||||
|
* @param modelClass the model class
|
||||||
|
* @param discriminatorPropertyName the name of the discriminator property
|
||||||
|
* @param mappings a map with the discriminator mappings.
|
||||||
|
*/
|
||||||
|
public static void registerDiscriminator(Class<?> modelClass, String discriminatorPropertyName, Map<String, Class<?>> mappings) {
|
||||||
|
ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings);
|
||||||
|
modelDiscriminators.put(modelClass, m);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register the oneOf/anyOf descendants of the modelClass.
|
||||||
|
*
|
||||||
|
* @param modelClass the model class
|
||||||
|
* @param descendants a map of oneOf/anyOf descendants.
|
||||||
|
*/
|
||||||
|
public static void registerDescendants(Class<?> modelClass, Map<String, GenericType> descendants) {
|
||||||
|
modelDescendants.put(modelClass, descendants);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static JSON json;
|
||||||
|
|
||||||
|
static {
|
||||||
|
json = new JSON();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the default JSON instance.
|
||||||
|
*
|
||||||
|
* @return the default JSON instance
|
||||||
|
*/
|
||||||
|
public static JSON getDefault() {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the default JSON instance.
|
||||||
|
*
|
||||||
|
* @param json JSON instance to be used
|
||||||
|
*/
|
||||||
|
public static void setDefault(JSON json) {
|
||||||
|
JSON.json = json;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,39 @@
|
|||||||
|
{{#additionalPropertiesType}}
|
||||||
|
/**
|
||||||
|
* A container for additional, undeclared properties.
|
||||||
|
* This is a holder for any undeclared properties as specified with
|
||||||
|
* the 'additionalProperties' keyword in the OAS document.
|
||||||
|
*/
|
||||||
|
private Map<String, {{{.}}}> additionalProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the additional (undeclared) property with the specified name and value.
|
||||||
|
* If the property does not already exist, create it otherwise replace it.
|
||||||
|
*/
|
||||||
|
@JsonAnySetter
|
||||||
|
public {{classname}} putAdditionalProperty(String key, {{{.}}} value) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
this.additionalProperties = new HashMap<String, {{{.}}}>();
|
||||||
|
}
|
||||||
|
this.additionalProperties.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property.
|
||||||
|
*/
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, {{{.}}}> getAdditionalProperties() {
|
||||||
|
return additionalProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property with the specified name.
|
||||||
|
*/
|
||||||
|
public {{{.}}} getAdditionalProperty(String key) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return this.additionalProperties.get(key);
|
||||||
|
}
|
||||||
|
{{/additionalPropertiesType}}
|
202
modules/openapi-generator/src/main/resources/Java/libraries/native/anyof_model.mustache
vendored
Normal file
202
modules/openapi-generator/src/main/resources/Java/libraries/native/anyof_model.mustache
vendored
Normal file
@ -0,0 +1,202 @@
|
|||||||
|
import javax.ws.rs.core.GenericType;
|
||||||
|
import javax.ws.rs.core.Response;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JsonGenerator;
|
||||||
|
import com.fasterxml.jackson.core.JsonParser;
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||||
|
import com.fasterxml.jackson.databind.JsonMappingException;
|
||||||
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
|
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
|
||||||
|
import {{invokerPackage}}.JSON;
|
||||||
|
|
||||||
|
{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{>xmlAnnotation}}
|
||||||
|
@JsonDeserialize(using={{classname}}.{{classname}}Deserializer.class)
|
||||||
|
@JsonSerialize(using = {{classname}}.{{classname}}Serializer.class)
|
||||||
|
public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-implements}}, {{{.}}}{{/vendorExtensions.x-implements}} {
|
||||||
|
private static final Logger log = Logger.getLogger({{classname}}.class.getName());
|
||||||
|
|
||||||
|
public static class {{classname}}Serializer extends StdSerializer<{{classname}}> {
|
||||||
|
public {{classname}}Serializer(Class<{{classname}}> t) {
|
||||||
|
super(t);
|
||||||
|
}
|
||||||
|
|
||||||
|
public {{classname}}Serializer() {
|
||||||
|
this(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void serialize({{classname}} value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException {
|
||||||
|
jgen.writeObject(value.getActualInstance());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class {{classname}}Deserializer extends StdDeserializer<{{classname}}> {
|
||||||
|
public {{classname}}Deserializer() {
|
||||||
|
this({{classname}}.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public {{classname}}Deserializer(Class<?> vc) {
|
||||||
|
super(vc);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
|
||||||
|
JsonNode tree = jp.readValueAsTree();
|
||||||
|
|
||||||
|
Object deserialized = null;
|
||||||
|
{{#discriminator}}
|
||||||
|
Class<?> cls = JSON.getClassForElement(tree, {{classname}}.class);
|
||||||
|
if (cls != null) {
|
||||||
|
// When the OAS schema includes a discriminator, use the discriminator value to
|
||||||
|
// discriminate the anyOf schemas.
|
||||||
|
// Get the discriminator mapping value to get the class.
|
||||||
|
deserialized = tree.traverse(jp.getCodec()).readValueAs(cls);
|
||||||
|
{{classname}} ret = new {{classname}}();
|
||||||
|
ret.setActualInstance(deserialized);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
{{/discriminator}}
|
||||||
|
{{#anyOf}}
|
||||||
|
// deserialize {{{.}}}
|
||||||
|
try {
|
||||||
|
deserialized = tree.traverse(jp.getCodec()).readValueAs({{{.}}}.class);
|
||||||
|
{{classname}} ret = new {{classname}}();
|
||||||
|
ret.setActualInstance(deserialized);
|
||||||
|
return ret;
|
||||||
|
} catch (Exception e) {
|
||||||
|
// deserialization failed, continue, log to help debugging
|
||||||
|
log.log(Level.FINER, "Input data does not match '{{classname}}'", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/anyOf}}
|
||||||
|
throw new IOException(String.format("Failed deserialization for {{classname}}: no match found"));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle deserialization of the 'null' value.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public {{classname}} getNullValue(DeserializationContext ctxt) throws JsonMappingException {
|
||||||
|
{{#isNullable}}
|
||||||
|
return null;
|
||||||
|
{{/isNullable}}
|
||||||
|
{{^isNullable}}
|
||||||
|
throw new JsonMappingException(ctxt.getParser(), "{{classname}} cannot be null");
|
||||||
|
{{/isNullable}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// store a list of schema names defined in anyOf
|
||||||
|
public final static Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
||||||
|
|
||||||
|
public {{classname}}() {
|
||||||
|
super("anyOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}});
|
||||||
|
}
|
||||||
|
{{> libraries/native/additional_properties }}
|
||||||
|
{{#additionalPropertiesType}}
|
||||||
|
/**
|
||||||
|
* Return true if this {{name}} object is equal to o.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
return super.equals(o) && Objects.equals(this.additionalProperties, (({{classname}})o).additionalProperties);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(getActualInstance(), isNullable(), getSchemaType(), additionalProperties);
|
||||||
|
}
|
||||||
|
{{/additionalPropertiesType}}
|
||||||
|
{{#anyOf}}
|
||||||
|
public {{classname}}({{{.}}} o) {
|
||||||
|
super("anyOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}});
|
||||||
|
setActualInstance(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/anyOf}}
|
||||||
|
static {
|
||||||
|
{{#anyOf}}
|
||||||
|
schemas.put("{{{.}}}", new GenericType<{{{.}}}>() {
|
||||||
|
});
|
||||||
|
{{/anyOf}}
|
||||||
|
JSON.registerDescendants({{classname}}.class, Collections.unmodifiableMap(schemas));
|
||||||
|
{{#discriminator}}
|
||||||
|
// Initialize and register the discriminator mappings.
|
||||||
|
Map<String, Class<?>> mappings = new HashMap<String, Class<?>>();
|
||||||
|
{{#mappedModels}}
|
||||||
|
mappings.put("{{mappingName}}", {{modelName}}.class);
|
||||||
|
{{/mappedModels}}
|
||||||
|
mappings.put("{{name}}", {{classname}}.class);
|
||||||
|
JSON.registerDiscriminator({{classname}}.class, "{{propertyBaseName}}", mappings);
|
||||||
|
{{/discriminator}}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, GenericType> getSchemas() {
|
||||||
|
return {{classname}}.schemas;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the instance that matches the anyOf child schema, check
|
||||||
|
* the instance parameter is valid against the anyOf child schemas:
|
||||||
|
* {{#anyOf}}{{{.}}}{{^-last}}, {{/-last}}{{/anyOf}}
|
||||||
|
*
|
||||||
|
* It could be an instance of the 'anyOf' schemas.
|
||||||
|
* The anyOf child schemas may themselves be a composed schema (allOf, anyOf, anyOf).
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void setActualInstance(Object instance) {
|
||||||
|
{{#isNullable}}
|
||||||
|
if (instance == null) {
|
||||||
|
super.setActualInstance(instance);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/isNullable}}
|
||||||
|
{{#anyOf}}
|
||||||
|
if (JSON.isInstanceOf({{{.}}}.class, instance, new HashSet<Class<?>>())) {
|
||||||
|
super.setActualInstance(instance);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/anyOf}}
|
||||||
|
throw new RuntimeException("Invalid instance type. Must be {{#anyOf}}{{{.}}}{{^-last}}, {{/-last}}{{/anyOf}}");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the actual instance, which can be the following:
|
||||||
|
* {{#anyOf}}{{{.}}}{{^-last}}, {{/-last}}{{/anyOf}}
|
||||||
|
*
|
||||||
|
* @return The actual instance ({{#anyOf}}{{{.}}}{{^-last}}, {{/-last}}{{/anyOf}})
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Object getActualInstance() {
|
||||||
|
return super.getActualInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
{{#anyOf}}
|
||||||
|
/**
|
||||||
|
* Get the actual instance of `{{{.}}}`. If the actual instanct is not `{{{.}}}`,
|
||||||
|
* the ClassCastException will be thrown.
|
||||||
|
*
|
||||||
|
* @return The actual instance of `{{{.}}}`
|
||||||
|
* @throws ClassCastException if the instance is not `{{{.}}}`
|
||||||
|
*/
|
||||||
|
public {{{.}}} get{{{.}}}() throws ClassCastException {
|
||||||
|
return ({{{.}}})super.getActualInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/anyOf}}
|
||||||
|
}
|
@ -71,7 +71,7 @@ public class {{classname}} {
|
|||||||
/**
|
/**
|
||||||
* {{summary}}
|
* {{summary}}
|
||||||
* {{notes}}
|
* {{notes}}
|
||||||
* @param {{operationId}}Request {@link API{{operationId}}Request}
|
* @param apiRequest {@link API{{operationId}}Request}
|
||||||
{{#returnType}}
|
{{#returnType}}
|
||||||
* @return {{#asyncNative}}CompletableFuture<{{/asyncNative}}{{returnType}}{{#asyncNative}}>{{/asyncNative}}
|
* @return {{#asyncNative}}CompletableFuture<{{/asyncNative}}{{returnType}}{{#asyncNative}}>{{/asyncNative}}
|
||||||
{{/returnType}}
|
{{/returnType}}
|
||||||
@ -87,9 +87,9 @@ public class {{classname}} {
|
|||||||
{{#isDeprecated}}
|
{{#isDeprecated}}
|
||||||
@Deprecated
|
@Deprecated
|
||||||
{{/isDeprecated}}
|
{{/isDeprecated}}
|
||||||
public {{#returnType}}{{#asyncNative}}CompletableFuture<{{{returnType}}}>{{/asyncNative}}{{^asyncNative}}{{{returnType}}}{{/asyncNative}}{{/returnType}}{{^returnType}}{{#asyncNative}}CompletableFuture<Void>{{/asyncNative}}{{^asyncNative}}void{{/asyncNative}}{{/returnType}} {{operationId}}(API{{operationId}}Request {{operationId}}Request) throws ApiException {
|
public {{#returnType}}{{#asyncNative}}CompletableFuture<{{{returnType}}}>{{/asyncNative}}{{^asyncNative}}{{{returnType}}}{{/asyncNative}}{{/returnType}}{{^returnType}}{{#asyncNative}}CompletableFuture<Void>{{/asyncNative}}{{^asyncNative}}void{{/asyncNative}}{{/returnType}} {{operationId}}(API{{operationId}}Request apiRequest) throws ApiException {
|
||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
{{{dataType}}} {{paramName}} = {{operationId}}Request.{{paramName}}();
|
{{{dataType}}} {{paramName}} = apiRequest.{{paramName}}();
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
{{#returnType}}return {{/returnType}}{{^returnType}}{{#asyncNative}}return {{/asyncNative}}{{/returnType}}{{operationId}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
{{#returnType}}return {{/returnType}}{{^returnType}}{{#asyncNative}}return {{/asyncNative}}{{/returnType}}{{operationId}}({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||||
}
|
}
|
||||||
@ -97,7 +97,7 @@ public class {{classname}} {
|
|||||||
/**
|
/**
|
||||||
* {{summary}}
|
* {{summary}}
|
||||||
* {{notes}}
|
* {{notes}}
|
||||||
* @param {{operationId}}Request {@link API{{operationId}}Request}
|
* @param apiRequest {@link API{{operationId}}Request}
|
||||||
* @return {{#asyncNative}}CompletableFuture<{{/asyncNative}}ApiResponse<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>{{#asyncNative}}>{{/asyncNative}}
|
* @return {{#asyncNative}}CompletableFuture<{{/asyncNative}}ApiResponse<{{#returnType}}{{returnType}}{{/returnType}}{{^returnType}}Void{{/returnType}}>{{#asyncNative}}>{{/asyncNative}}
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
{{#isDeprecated}}
|
{{#isDeprecated}}
|
||||||
@ -111,9 +111,9 @@ public class {{classname}} {
|
|||||||
{{#isDeprecated}}
|
{{#isDeprecated}}
|
||||||
@Deprecated
|
@Deprecated
|
||||||
{{/isDeprecated}}
|
{{/isDeprecated}}
|
||||||
public {{#asyncNative}}CompletableFuture<{{/asyncNative}}ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}>{{#asyncNative}}>{{/asyncNative}} {{operationId}}WithHttpInfo(API{{operationId}}Request {{operationId}}Request) throws ApiException {
|
public {{#asyncNative}}CompletableFuture<{{/asyncNative}}ApiResponse<{{#returnType}}{{{returnType}}}{{/returnType}}{{^returnType}}Void{{/returnType}}>{{#asyncNative}}>{{/asyncNative}} {{operationId}}WithHttpInfo(API{{operationId}}Request apiRequest) throws ApiException {
|
||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
{{{dataType}}} {{paramName}} = {{operationId}}Request.{{paramName}}();
|
{{{dataType}}} {{paramName}} = apiRequest.{{paramName}}();
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}});
|
||||||
}
|
}
|
||||||
|
@ -51,8 +51,12 @@ artifacts {
|
|||||||
|
|
||||||
ext {
|
ext {
|
||||||
swagger_annotations_version = "1.5.22"
|
swagger_annotations_version = "1.5.22"
|
||||||
jackson_version = "2.9.9"
|
jackson_version = "2.10.4"
|
||||||
junit_version = "4.13.1"
|
junit_version = "4.13.1"
|
||||||
|
ws_rs_version = "2.1.1"
|
||||||
|
{{#threetenbp}}
|
||||||
|
threetenbp_version = "2.9.10"
|
||||||
|
{{/threetenbp}}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -64,5 +68,9 @@ dependencies {
|
|||||||
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
||||||
compile "org.openapitools:jackson-databind-nullable:0.2.1"
|
compile "org.openapitools:jackson-databind-nullable:0.2.1"
|
||||||
compile 'javax.annotation:javax.annotation-api:1.3.2'
|
compile 'javax.annotation:javax.annotation-api:1.3.2'
|
||||||
|
compile "javax.ws.rs:javax.ws.rs-api:$ws_rs_version"
|
||||||
|
{{#threetenbp}}
|
||||||
|
compile "com.github.joschi.jackson:jackson-datatype-threetenbp:$threetenbp_version"
|
||||||
|
{{/threetenbp}}
|
||||||
testCompile "junit:junit:$junit_version"
|
testCompile "junit:junit:$junit_version"
|
||||||
}
|
}
|
||||||
|
61
modules/openapi-generator/src/main/resources/Java/libraries/native/model.mustache
vendored
Normal file
61
modules/openapi-generator/src/main/resources/Java/libraries/native/model.mustache
vendored
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
{{>licenseInfo}}
|
||||||
|
|
||||||
|
package {{package}};
|
||||||
|
|
||||||
|
{{#useReflectionEqualsHashCode}}
|
||||||
|
import org.apache.commons.lang3.builder.EqualsBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.HashCodeBuilder;
|
||||||
|
{{/useReflectionEqualsHashCode}}
|
||||||
|
{{#models}}
|
||||||
|
{{#model}}
|
||||||
|
{{#additionalPropertiesType}}
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
|
{{/additionalPropertiesType}}
|
||||||
|
{{/model}}
|
||||||
|
{{/models}}
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
{{#imports}}
|
||||||
|
import {{import}};
|
||||||
|
{{/imports}}
|
||||||
|
{{#serializableModel}}
|
||||||
|
import java.io.Serializable;
|
||||||
|
{{/serializableModel}}
|
||||||
|
{{#jackson}}
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
{{#withXml}}
|
||||||
|
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||||
|
{{/withXml}}
|
||||||
|
{{/jackson}}
|
||||||
|
{{#withXml}}
|
||||||
|
import javax.xml.bind.annotation.*;
|
||||||
|
{{/withXml}}
|
||||||
|
{{#parcelableModel}}
|
||||||
|
import android.os.Parcelable;
|
||||||
|
import android.os.Parcel;
|
||||||
|
{{/parcelableModel}}
|
||||||
|
{{#useBeanValidation}}
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
{{/useBeanValidation}}
|
||||||
|
{{#performBeanValidation}}
|
||||||
|
import org.hibernate.validator.constraints.*;
|
||||||
|
{{/performBeanValidation}}
|
||||||
|
import {{invokerPackage}}.JSON;
|
||||||
|
|
||||||
|
{{#models}}
|
||||||
|
{{#model}}
|
||||||
|
{{#oneOf}}
|
||||||
|
{{#-first}}
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
{{/-first}}
|
||||||
|
{{/oneOf}}
|
||||||
|
|
||||||
|
{{#isEnum}}{{>modelEnum}}{{/isEnum}}{{^isEnum}}{{#oneOf}}{{#-first}}{{>oneof_model}}{{/-first}}{{/oneOf}}{{^oneOf}}{{#anyOf}}{{#-first}}{{>anyof_model}}{{/-first}}{{/anyOf}}{{^anyOf}}{{>pojo}}{{/anyOf}}{{/oneOf}}{{/isEnum}}
|
||||||
|
{{/model}}
|
||||||
|
{{/models}}
|
38
modules/openapi-generator/src/main/resources/Java/libraries/native/model_anyof_doc.mustache
vendored
Normal file
38
modules/openapi-generator/src/main/resources/Java/libraries/native/model_anyof_doc.mustache
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# {{classname}}
|
||||||
|
|
||||||
|
{{#description}}
|
||||||
|
{{&description}}
|
||||||
|
|
||||||
|
{{/description}}
|
||||||
|
## anyOf schemas
|
||||||
|
{{#anyOf}}
|
||||||
|
* [{{{.}}}]({{{.}}}.md)
|
||||||
|
{{/anyOf}}
|
||||||
|
|
||||||
|
{{#isNullable}}
|
||||||
|
NOTE: this class is nullable.
|
||||||
|
|
||||||
|
{{/isNullable}}
|
||||||
|
## Example
|
||||||
|
```java
|
||||||
|
// Import classes:
|
||||||
|
import {{{package}}}.{{{classname}}};
|
||||||
|
{{#anyOf}}
|
||||||
|
import {{{package}}}.{{{.}}};
|
||||||
|
{{/anyOf}}
|
||||||
|
|
||||||
|
public class Example {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
{{classname}} example{{classname}} = new {{classname}}();
|
||||||
|
{{#anyOf}}
|
||||||
|
|
||||||
|
// create a new {{{.}}}
|
||||||
|
{{{.}}} example{{{.}}} = new {{{.}}}();
|
||||||
|
// set {{{classname}}} to {{{.}}}
|
||||||
|
example{{classname}}.setActualInstance(example{{{.}}});
|
||||||
|
// to get back the {{{.}}} set earlier
|
||||||
|
{{{.}}} test{{{.}}} = ({{{.}}}) example{{classname}}.getActualInstance();
|
||||||
|
{{/anyOf}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
19
modules/openapi-generator/src/main/resources/Java/libraries/native/model_doc.mustache
vendored
Normal file
19
modules/openapi-generator/src/main/resources/Java/libraries/native/model_doc.mustache
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{{#models}}{{#model}}
|
||||||
|
|
||||||
|
{{#isEnum}}
|
||||||
|
{{>enum_outer_doc}}
|
||||||
|
{{/isEnum}}
|
||||||
|
{{^isEnum}}
|
||||||
|
{{^oneOf.isEmpty}}
|
||||||
|
{{>model_oneof_doc}}
|
||||||
|
{{/oneOf.isEmpty}}
|
||||||
|
{{^anyOf.isEmpty}}
|
||||||
|
{{>model_anyof_doc}}
|
||||||
|
{{/anyOf.isEmpty}}
|
||||||
|
{{^anyOf}}
|
||||||
|
{{^oneOf}}
|
||||||
|
{{>pojo_doc}}
|
||||||
|
{{/oneOf}}
|
||||||
|
{{/anyOf}}
|
||||||
|
{{/isEnum}}
|
||||||
|
{{/model}}{{/models}}
|
38
modules/openapi-generator/src/main/resources/Java/libraries/native/model_oneof_doc.mustache
vendored
Normal file
38
modules/openapi-generator/src/main/resources/Java/libraries/native/model_oneof_doc.mustache
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
# {{classname}}
|
||||||
|
|
||||||
|
{{#description}}
|
||||||
|
{{&description}}
|
||||||
|
|
||||||
|
{{/description}}
|
||||||
|
## oneOf schemas
|
||||||
|
{{#oneOf}}
|
||||||
|
* [{{{.}}}]({{{.}}}.md)
|
||||||
|
{{/oneOf}}
|
||||||
|
|
||||||
|
{{#isNullable}}
|
||||||
|
NOTE: this class is nullable.
|
||||||
|
|
||||||
|
{{/isNullable}}
|
||||||
|
## Example
|
||||||
|
```java
|
||||||
|
// Import classes:
|
||||||
|
import {{{package}}}.{{{classname}}};
|
||||||
|
{{#oneOf}}
|
||||||
|
import {{{package}}}.{{{.}}};
|
||||||
|
{{/oneOf}}
|
||||||
|
|
||||||
|
public class Example {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
{{classname}} example{{classname}} = new {{classname}}();
|
||||||
|
{{#oneOf}}
|
||||||
|
|
||||||
|
// create a new {{{.}}}
|
||||||
|
{{{.}}} example{{{.}}} = new {{{.}}}();
|
||||||
|
// set {{{classname}}} to {{{.}}}
|
||||||
|
example{{classname}}.setActualInstance(example{{{.}}});
|
||||||
|
// to get back the {{{.}}} set earlier
|
||||||
|
{{{.}}} test{{{.}}} = ({{{.}}}) example{{classname}}.getActualInstance();
|
||||||
|
{{/oneOf}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
235
modules/openapi-generator/src/main/resources/Java/libraries/native/oneof_model.mustache
vendored
Normal file
235
modules/openapi-generator/src/main/resources/Java/libraries/native/oneof_model.mustache
vendored
Normal file
@ -0,0 +1,235 @@
|
|||||||
|
import javax.ws.rs.core.GenericType;
|
||||||
|
import javax.ws.rs.core.Response;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.HashSet;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JsonGenerator;
|
||||||
|
import com.fasterxml.jackson.core.JsonParser;
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
|
import com.fasterxml.jackson.core.JsonToken;
|
||||||
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.DeserializationContext;
|
||||||
|
import com.fasterxml.jackson.databind.JsonMappingException;
|
||||||
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
|
import com.fasterxml.jackson.databind.MapperFeature;
|
||||||
|
import com.fasterxml.jackson.databind.SerializerProvider;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
||||||
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||||
|
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
|
||||||
|
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
|
||||||
|
import {{invokerPackage}}.JSON;
|
||||||
|
|
||||||
|
{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{>xmlAnnotation}}
|
||||||
|
@JsonDeserialize(using = {{classname}}.{{classname}}Deserializer.class)
|
||||||
|
@JsonSerialize(using = {{classname}}.{{classname}}Serializer.class)
|
||||||
|
public class {{classname}} extends AbstractOpenApiSchema{{#vendorExtensions.x-implements}}, {{{.}}}{{/vendorExtensions.x-implements}} {
|
||||||
|
private static final Logger log = Logger.getLogger({{classname}}.class.getName());
|
||||||
|
|
||||||
|
public static class {{classname}}Serializer extends StdSerializer<{{classname}}> {
|
||||||
|
public {{classname}}Serializer(Class<{{classname}}> t) {
|
||||||
|
super(t);
|
||||||
|
}
|
||||||
|
|
||||||
|
public {{classname}}Serializer() {
|
||||||
|
this(null);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void serialize({{classname}} value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException {
|
||||||
|
jgen.writeObject(value.getActualInstance());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class {{classname}}Deserializer extends StdDeserializer<{{classname}}> {
|
||||||
|
public {{classname}}Deserializer() {
|
||||||
|
this({{classname}}.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
public {{classname}}Deserializer(Class<?> vc) {
|
||||||
|
super(vc);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public {{classname}} deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
|
||||||
|
JsonNode tree = jp.readValueAsTree();
|
||||||
|
Object deserialized = null;
|
||||||
|
{{#useOneOfDiscriminatorLookup}}
|
||||||
|
{{#discriminator}}
|
||||||
|
{{classname}} new{{classname}} = new {{classname}}();
|
||||||
|
Map<String,Object> result2 = tree.traverse(jp.getCodec()).readValueAs(new TypeReference<Map<String, Object>>() {});
|
||||||
|
String discriminatorValue = (String)result2.get("{{{propertyBaseName}}}");
|
||||||
|
switch (discriminatorValue) {
|
||||||
|
{{#mappedModels}}
|
||||||
|
case "{{{mappingName}}}":
|
||||||
|
deserialized = tree.traverse(jp.getCodec()).readValueAs({{{modelName}}}.class);
|
||||||
|
new{{classname}}.setActualInstance(deserialized);
|
||||||
|
return new{{classname}};
|
||||||
|
{{/mappedModels}}
|
||||||
|
default:
|
||||||
|
log.log(Level.WARNING, String.format("Failed to lookup discriminator value `%s` for {{classname}}. Possible values:{{#mappedModels}} {{{mappingName}}}{{/mappedModels}}", discriminatorValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/discriminator}}
|
||||||
|
{{/useOneOfDiscriminatorLookup}}
|
||||||
|
boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS);
|
||||||
|
int match = 0;
|
||||||
|
JsonToken token = tree.traverse(jp.getCodec()).nextToken();
|
||||||
|
{{#oneOf}}
|
||||||
|
// deserialize {{{.}}}
|
||||||
|
try {
|
||||||
|
boolean attemptParsing = true;
|
||||||
|
// ensure that we respect type coercion as set on the client ObjectMapper
|
||||||
|
if ({{{.}}}.class.equals(Integer.class) || {{{.}}}.class.equals(Long.class) || {{{.}}}.class.equals(Float.class) || {{{.}}}.class.equals(Double.class) || {{{.}}}.class.equals(Boolean.class) || {{{.}}}.class.equals(String.class)) {
|
||||||
|
attemptParsing = typeCoercion;
|
||||||
|
if (!attemptParsing) {
|
||||||
|
attemptParsing |= (({{{.}}}.class.equals(Integer.class) || {{{.}}}.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT);
|
||||||
|
attemptParsing |= (({{{.}}}.class.equals(Float.class) || {{{.}}}.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT);
|
||||||
|
attemptParsing |= ({{{.}}}.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE));
|
||||||
|
attemptParsing |= ({{{.}}}.class.equals(String.class) && token == JsonToken.VALUE_STRING);
|
||||||
|
{{#isNullable}}
|
||||||
|
attemptParsing |= (token == JsonToken.VALUE_NULL);
|
||||||
|
{{/isNullable}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (attemptParsing) {
|
||||||
|
deserialized = tree.traverse(jp.getCodec()).readValueAs({{{.}}}.class);
|
||||||
|
// TODO: there is no validation against JSON schema constraints
|
||||||
|
// (min, max, enum, pattern...), this does not perform a strict JSON
|
||||||
|
// validation, which means the 'match' count may be higher than it should be.
|
||||||
|
match++;
|
||||||
|
log.log(Level.FINER, "Input data matches schema '{{{.}}}'");
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
// deserialization failed, continue
|
||||||
|
log.log(Level.FINER, "Input data does not match schema '{{{.}}}'", e);
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/oneOf}}
|
||||||
|
if (match == 1) {
|
||||||
|
{{classname}} ret = new {{classname}}();
|
||||||
|
ret.setActualInstance(deserialized);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
throw new IOException(String.format("Failed deserialization for {{classname}}: %d classes match result, expected 1", match));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle deserialization of the 'null' value.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public {{classname}} getNullValue(DeserializationContext ctxt) throws JsonMappingException {
|
||||||
|
{{#isNullable}}
|
||||||
|
return null;
|
||||||
|
{{/isNullable}}
|
||||||
|
{{^isNullable}}
|
||||||
|
throw new JsonMappingException(ctxt.getParser(), "{{classname}} cannot be null");
|
||||||
|
{{/isNullable}}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// store a list of schema names defined in oneOf
|
||||||
|
public final static Map<String, GenericType> schemas = new HashMap<String, GenericType>();
|
||||||
|
|
||||||
|
public {{classname}}() {
|
||||||
|
super("oneOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}});
|
||||||
|
}
|
||||||
|
{{> libraries/native/additional_properties }}
|
||||||
|
{{#additionalPropertiesType}}
|
||||||
|
/**
|
||||||
|
* Return true if this {{name}} object is equal to o.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
return super.equals(o) && Objects.equals(this.additionalProperties, (({{classname}})o).additionalProperties);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(getActualInstance(), isNullable(), getSchemaType(), additionalProperties);
|
||||||
|
}
|
||||||
|
{{/additionalPropertiesType}}
|
||||||
|
{{#oneOf}}
|
||||||
|
public {{classname}}({{{.}}} o) {
|
||||||
|
super("oneOf", {{#isNullable}}Boolean.TRUE{{/isNullable}}{{^isNullable}}Boolean.FALSE{{/isNullable}});
|
||||||
|
setActualInstance(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/oneOf}}
|
||||||
|
static {
|
||||||
|
{{#oneOf}}
|
||||||
|
schemas.put("{{{.}}}", new GenericType<{{{.}}}>() {
|
||||||
|
});
|
||||||
|
{{/oneOf}}
|
||||||
|
JSON.registerDescendants({{classname}}.class, Collections.unmodifiableMap(schemas));
|
||||||
|
{{#discriminator}}
|
||||||
|
// Initialize and register the discriminator mappings.
|
||||||
|
Map<String, Class<?>> mappings = new HashMap<String, Class<?>>();
|
||||||
|
{{#mappedModels}}
|
||||||
|
mappings.put("{{mappingName}}", {{modelName}}.class);
|
||||||
|
{{/mappedModels}}
|
||||||
|
mappings.put("{{name}}", {{classname}}.class);
|
||||||
|
JSON.registerDiscriminator({{classname}}.class, "{{propertyBaseName}}", mappings);
|
||||||
|
{{/discriminator}}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Map<String, GenericType> getSchemas() {
|
||||||
|
return {{classname}}.schemas;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the instance that matches the oneOf child schema, check
|
||||||
|
* the instance parameter is valid against the oneOf child schemas:
|
||||||
|
* {{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/oneOf}}
|
||||||
|
*
|
||||||
|
* It could be an instance of the 'oneOf' schemas.
|
||||||
|
* The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf).
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void setActualInstance(Object instance) {
|
||||||
|
{{#isNullable}}
|
||||||
|
if (instance == null) {
|
||||||
|
super.setActualInstance(instance);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/isNullable}}
|
||||||
|
{{#oneOf}}
|
||||||
|
if (JSON.isInstanceOf({{{.}}}.class, instance, new HashSet<Class<?>>())) {
|
||||||
|
super.setActualInstance(instance);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/oneOf}}
|
||||||
|
throw new RuntimeException("Invalid instance type. Must be {{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/oneOf}}");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the actual instance, which can be the following:
|
||||||
|
* {{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/oneOf}}
|
||||||
|
*
|
||||||
|
* @return The actual instance ({{#oneOf}}{{{.}}}{{^-last}}, {{/-last}}{{/oneOf}})
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Object getActualInstance() {
|
||||||
|
return super.getActualInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
{{#oneOf}}
|
||||||
|
/**
|
||||||
|
* Get the actual instance of `{{{.}}}`. If the actual instanct is not `{{{.}}}`,
|
||||||
|
* the ClassCastException will be thrown.
|
||||||
|
*
|
||||||
|
* @return The actual instance of `{{{.}}}`
|
||||||
|
* @throws ClassCastException if the instance is not `{{{.}}}`
|
||||||
|
*/
|
||||||
|
public {{{.}}} get{{{.}}}() throws ClassCastException {
|
||||||
|
return ({{{.}}})super.getActualInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/oneOf}}
|
||||||
|
}
|
386
modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache
vendored
Normal file
386
modules/openapi-generator/src/main/resources/Java/libraries/native/pojo.mustache
vendored
Normal file
@ -0,0 +1,386 @@
|
|||||||
|
/**
|
||||||
|
* {{#description}}{{.}}{{/description}}{{^description}}{{classname}}{{/description}}
|
||||||
|
*/{{#description}}
|
||||||
|
@ApiModel(description = "{{{description}}}"){{/description}}
|
||||||
|
{{#jackson}}
|
||||||
|
@JsonPropertyOrder({
|
||||||
|
{{#vars}}
|
||||||
|
{{classname}}.JSON_PROPERTY_{{nameInSnakeCase}}{{^-last}},{{/-last}}
|
||||||
|
{{/vars}}
|
||||||
|
})
|
||||||
|
{{/jackson}}
|
||||||
|
{{>additionalModelTypeAnnotations}}{{>generatedAnnotation}}{{#discriminator}}{{>typeInfoAnnotation}}{{/discriminator}}{{>xmlAnnotation}}
|
||||||
|
public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#vendorExtensions.x-implements}}{{#-first}}implements {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{#-last}} {{/-last}}{{/vendorExtensions.x-implements}}{
|
||||||
|
{{#serializableModel}}
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
{{/serializableModel}}
|
||||||
|
{{#vars}}
|
||||||
|
{{#isEnum}}
|
||||||
|
{{^isContainer}}
|
||||||
|
{{^vendorExtensions.x-enum-as-string}}
|
||||||
|
{{>modelInnerEnum}}
|
||||||
|
{{/vendorExtensions.x-enum-as-string}}
|
||||||
|
{{/isContainer}}
|
||||||
|
{{#isContainer}}
|
||||||
|
{{#mostInnerItems}}
|
||||||
|
{{>modelInnerEnum}}
|
||||||
|
{{/mostInnerItems}}
|
||||||
|
{{/isContainer}}
|
||||||
|
{{/isEnum}}
|
||||||
|
{{#gson}}
|
||||||
|
public static final String SERIALIZED_NAME_{{nameInSnakeCase}} = "{{baseName}}";
|
||||||
|
{{/gson}}
|
||||||
|
{{#jackson}}
|
||||||
|
public static final String JSON_PROPERTY_{{nameInSnakeCase}} = "{{baseName}}";
|
||||||
|
{{/jackson}}
|
||||||
|
{{#withXml}}
|
||||||
|
{{#isXmlAttribute}}
|
||||||
|
@XmlAttribute(name = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
|
||||||
|
{{/isXmlAttribute}}
|
||||||
|
{{^isXmlAttribute}}
|
||||||
|
{{^isContainer}}
|
||||||
|
@XmlElement({{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}name = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
|
||||||
|
{{/isContainer}}
|
||||||
|
{{#isContainer}}
|
||||||
|
// Is a container wrapped={{isXmlWrapped}}
|
||||||
|
{{#items}}
|
||||||
|
// items.name={{name}} items.baseName={{baseName}} items.xmlName={{xmlName}} items.xmlNamespace={{xmlNamespace}}
|
||||||
|
// items.example={{example}} items.type={{dataType}}
|
||||||
|
@XmlElement({{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}name = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
|
||||||
|
{{/items}}
|
||||||
|
{{#isXmlWrapped}}
|
||||||
|
@XmlElementWrapper({{#xmlNamespace}}namespace="{{xmlNamespace}}", {{/xmlNamespace}}name = "{{#xmlName}}{{xmlName}}{{/xmlName}}{{^xmlName}}{{baseName}}{{/xmlName}}")
|
||||||
|
{{/isXmlWrapped}}
|
||||||
|
{{/isContainer}}
|
||||||
|
{{/isXmlAttribute}}
|
||||||
|
{{/withXml}}
|
||||||
|
{{#gson}}
|
||||||
|
@SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}})
|
||||||
|
{{/gson}}
|
||||||
|
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{#isContainer}}
|
||||||
|
private JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined();
|
||||||
|
{{/isContainer}}
|
||||||
|
{{^isContainer}}
|
||||||
|
private JsonNullable<{{{datatypeWithEnum}}}> {{name}} = JsonNullable.<{{{datatypeWithEnum}}}>{{#defaultValue}}of({{{.}}}){{/defaultValue}}{{^defaultValue}}undefined(){{/defaultValue}};
|
||||||
|
{{/isContainer}}
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{^vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{#isContainer}}
|
||||||
|
private {{{datatypeWithEnum}}} {{name}}{{#required}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/required}}{{^required}} = null{{/required}};
|
||||||
|
{{/isContainer}}
|
||||||
|
{{^isContainer}}
|
||||||
|
private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||||
|
{{/isContainer}}
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
|
||||||
|
{{/vars}}
|
||||||
|
{{#parcelableModel}}
|
||||||
|
public {{classname}}() {
|
||||||
|
{{#parent}}
|
||||||
|
super();
|
||||||
|
{{/parent}}
|
||||||
|
{{#gson}}
|
||||||
|
{{#discriminator}}
|
||||||
|
this.{{{discriminatorName}}} = this.getClass().getSimpleName();
|
||||||
|
{{/discriminator}}
|
||||||
|
{{/gson}}
|
||||||
|
}
|
||||||
|
{{/parcelableModel}}
|
||||||
|
{{^parcelableModel}}
|
||||||
|
{{#gson}}
|
||||||
|
{{#discriminator}}
|
||||||
|
public {{classname}}() {
|
||||||
|
this.{{{discriminatorName}}} = this.getClass().getSimpleName();
|
||||||
|
}
|
||||||
|
{{/discriminator}}
|
||||||
|
{{/gson}}
|
||||||
|
{{/parcelableModel}}
|
||||||
|
{{#vars}}
|
||||||
|
|
||||||
|
{{^isReadOnly}}
|
||||||
|
{{#vendorExtensions.x-enum-as-string}}
|
||||||
|
public static final Set<String> {{{nameInSnakeCase}}}_VALUES = new HashSet<>(Arrays.asList(
|
||||||
|
{{#allowableValues}}{{#enumVars}}{{{value}}}{{^-last}}, {{/-last}}{{/enumVars}}{{/allowableValues}}
|
||||||
|
));
|
||||||
|
|
||||||
|
{{/vendorExtensions.x-enum-as-string}}
|
||||||
|
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||||
|
{{#vendorExtensions.x-enum-as-string}}
|
||||||
|
if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) {
|
||||||
|
throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES));
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/vendorExtensions.x-enum-as-string}}
|
||||||
|
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{^vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
this.{{name}} = {{name}};
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
{{#isListContainer}}
|
||||||
|
|
||||||
|
public {{classname}} add{{nameInCamelCase}}Item({{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
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.x-is-jackson-optional-nullable}}
|
||||||
|
{{^vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
|
this.{{name}}.add({{name}}Item);
|
||||||
|
return this;
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
}
|
||||||
|
{{/isListContainer}}
|
||||||
|
{{#isMapContainer}}
|
||||||
|
|
||||||
|
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
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.x-is-jackson-optional-nullable}}
|
||||||
|
{{^vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{^required}}
|
||||||
|
if (this.{{name}} == null) {
|
||||||
|
this.{{name}} = {{{defaultValue}}};
|
||||||
|
}
|
||||||
|
{{/required}}
|
||||||
|
this.{{name}}.put(key, {{name}}Item);
|
||||||
|
return this;
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
}
|
||||||
|
{{/isMapContainer}}
|
||||||
|
|
||||||
|
{{/isReadOnly}}
|
||||||
|
/**
|
||||||
|
{{#description}}
|
||||||
|
* {{description}}
|
||||||
|
{{/description}}
|
||||||
|
{{^description}}
|
||||||
|
* Get {{name}}
|
||||||
|
{{/description}}
|
||||||
|
{{#minimum}}
|
||||||
|
* minimum: {{minimum}}
|
||||||
|
{{/minimum}}
|
||||||
|
{{#maximum}}
|
||||||
|
* maximum: {{maximum}}
|
||||||
|
{{/maximum}}
|
||||||
|
* @return {{name}}
|
||||||
|
**/
|
||||||
|
{{#required}}
|
||||||
|
{{#isNullable}}
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
{{/isNullable}}
|
||||||
|
{{/required}}
|
||||||
|
{{^required}}
|
||||||
|
@javax.annotation.Nullable
|
||||||
|
{{/required}}
|
||||||
|
{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} @ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}value = "{{{description}}}")
|
||||||
|
{{#vendorExtensions.x-extra-annotation}}
|
||||||
|
{{{vendorExtensions.x-extra-annotation}}}
|
||||||
|
{{/vendorExtensions.x-extra-annotation}}
|
||||||
|
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{!unannotated, Jackson would pick this up automatically and add it *in addition* to the _JsonNullable getter field}}
|
||||||
|
@JsonIgnore
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{^vendorExtensions.x-is-jackson-optional-nullable}}{{#jackson}}{{> jackson_annotations}}{{/jackson}}{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
public {{{datatypeWithEnum}}} {{getter}}() {
|
||||||
|
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{#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.x-is-jackson-optional-nullable}}
|
||||||
|
{{^vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
return {{name}};
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
}
|
||||||
|
|
||||||
|
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{> jackson_annotations}}
|
||||||
|
public JsonNullable<{{{datatypeWithEnum}}}> {{getter}}_JsonNullable() {
|
||||||
|
return {{name}};
|
||||||
|
}
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
@JsonProperty(JSON_PROPERTY_{{nameInSnakeCase}})
|
||||||
|
{{#isReadOnly}}private{{/isReadOnly}}{{^isReadOnly}}public{{/isReadOnly}} void {{setter}}_JsonNullable(JsonNullable<{{{datatypeWithEnum}}}> {{name}}) {
|
||||||
|
{{! For getters/setters that have name differing from attribute name, we must include setter (albeit private) for jackson to be able to set the attribute}}
|
||||||
|
this.{{name}} = {{name}};
|
||||||
|
}
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
|
||||||
|
{{^isReadOnly}}
|
||||||
|
public void {{setter}}({{{datatypeWithEnum}}} {{name}}) {
|
||||||
|
{{#vendorExtensions.x-enum-as-string}}
|
||||||
|
if (!{{{nameInSnakeCase}}}_VALUES.contains({{name}})) {
|
||||||
|
throw new IllegalArgumentException({{name}} + " is invalid. Possible values for {{name}}: " + String.join(", ", {{{nameInSnakeCase}}}_VALUES));
|
||||||
|
}
|
||||||
|
|
||||||
|
{{/vendorExtensions.x-enum-as-string}}
|
||||||
|
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
{{^vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
this.{{name}} = {{name}};
|
||||||
|
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||||
|
}
|
||||||
|
{{/isReadOnly}}
|
||||||
|
|
||||||
|
{{/vars}}
|
||||||
|
{{>libraries/native/additional_properties}}
|
||||||
|
/**
|
||||||
|
* Return true if this {{name}} object is equal to o.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
{{#useReflectionEqualsHashCode}}
|
||||||
|
return EqualsBuilder.reflectionEquals(this, o, false, null, true);
|
||||||
|
{{/useReflectionEqualsHashCode}}
|
||||||
|
{{^useReflectionEqualsHashCode}}
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}{{#hasVars}}
|
||||||
|
{{classname}} {{classVarName}} = ({{classname}}) o;
|
||||||
|
return {{#vars}}{{#isByteArray}}Arrays{{/isByteArray}}{{^isByteArray}}Objects{{/isByteArray}}.equals(this.{{name}}, {{classVarName}}.{{name}}){{#hasMore}} &&
|
||||||
|
{{/hasMore}}{{/vars}}{{#additionalPropertiesType}}&&
|
||||||
|
Objects.equals(this.additionalProperties, {{classVarName}}.additionalProperties){{/additionalPropertiesType}}{{#parent}} &&
|
||||||
|
super.equals(o){{/parent}};{{/hasVars}}{{^hasVars}}
|
||||||
|
return {{#parent}}super.equals(o){{/parent}}{{^parent}}true{{/parent}};{{/hasVars}}
|
||||||
|
{{/useReflectionEqualsHashCode}}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
{{#useReflectionEqualsHashCode}}
|
||||||
|
return HashCodeBuilder.reflectionHashCode(this);
|
||||||
|
{{/useReflectionEqualsHashCode}}
|
||||||
|
{{^useReflectionEqualsHashCode}}
|
||||||
|
return Objects.hash({{#vars}}{{^isByteArray}}{{name}}{{/isByteArray}}{{#isByteArray}}Arrays.hashCode({{name}}){{/isByteArray}}{{#hasMore}}, {{/hasMore}}{{/vars}}{{#parent}}{{#hasVars}}, {{/hasVars}}super.hashCode(){{/parent}}{{#additionalPropertiesType}}, additionalProperties{{/additionalPropertiesType}});
|
||||||
|
{{/useReflectionEqualsHashCode}}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class {{classname}} {\n");
|
||||||
|
{{#parent}}
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
|
{{/parent}}
|
||||||
|
{{#vars}}
|
||||||
|
sb.append(" {{name}}: ").append(toIndentedString({{name}})).append("\n");
|
||||||
|
{{/vars}}
|
||||||
|
{{#additionalPropertiesType}}
|
||||||
|
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
|
||||||
|
{{/additionalPropertiesType}}
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
{{#parcelableModel}}
|
||||||
|
|
||||||
|
public void writeToParcel(Parcel out, int flags) {
|
||||||
|
{{#model}}
|
||||||
|
{{#isArrayModel}}
|
||||||
|
out.writeList(this);
|
||||||
|
{{/isArrayModel}}
|
||||||
|
{{^isArrayModel}}
|
||||||
|
{{#parent}}
|
||||||
|
super.writeToParcel(out, flags);
|
||||||
|
{{/parent}}
|
||||||
|
{{#vars}}
|
||||||
|
out.writeValue({{name}});
|
||||||
|
{{/vars}}
|
||||||
|
{{/isArrayModel}}
|
||||||
|
{{/model}}
|
||||||
|
}
|
||||||
|
|
||||||
|
{{classname}}(Parcel in) {
|
||||||
|
{{#isArrayModel}}
|
||||||
|
in.readTypedList(this, {{arrayModelType}}.CREATOR);
|
||||||
|
{{/isArrayModel}}
|
||||||
|
{{^isArrayModel}}
|
||||||
|
{{#parent}}
|
||||||
|
super(in);
|
||||||
|
{{/parent}}
|
||||||
|
{{#vars}}
|
||||||
|
{{#isPrimitiveType}}
|
||||||
|
{{name}} = ({{{datatypeWithEnum}}})in.readValue(null);
|
||||||
|
{{/isPrimitiveType}}
|
||||||
|
{{^isPrimitiveType}}
|
||||||
|
{{name}} = ({{{datatypeWithEnum}}})in.readValue({{complexType}}.class.getClassLoader());
|
||||||
|
{{/isPrimitiveType}}
|
||||||
|
{{/vars}}
|
||||||
|
{{/isArrayModel}}
|
||||||
|
}
|
||||||
|
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final Parcelable.Creator<{{classname}}> CREATOR = new Parcelable.Creator<{{classname}}>() {
|
||||||
|
public {{classname}} createFromParcel(Parcel in) {
|
||||||
|
{{#model}}
|
||||||
|
{{#isArrayModel}}
|
||||||
|
{{classname}} result = new {{classname}}();
|
||||||
|
result.addAll(in.readArrayList({{arrayModelType}}.class.getClassLoader()));
|
||||||
|
return result;
|
||||||
|
{{/isArrayModel}}
|
||||||
|
{{^isArrayModel}}
|
||||||
|
return new {{classname}}(in);
|
||||||
|
{{/isArrayModel}}
|
||||||
|
{{/model}}
|
||||||
|
}
|
||||||
|
public {{classname}}[] newArray(int size) {
|
||||||
|
return new {{classname}}[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
{{/parcelableModel}}
|
||||||
|
{{#discriminator}}
|
||||||
|
static {
|
||||||
|
// Initialize and register the discriminator mappings.
|
||||||
|
Map<String, Class<?>> mappings = new HashMap<String, Class<?>>();
|
||||||
|
{{#mappedModels}}
|
||||||
|
mappings.put("{{mappingName}}", {{modelName}}.class);
|
||||||
|
{{/mappedModels}}
|
||||||
|
mappings.put("{{name}}", {{classname}}.class);
|
||||||
|
JSON.registerDiscriminator({{classname}}.class, "{{propertyBaseName}}", mappings);
|
||||||
|
}
|
||||||
|
{{/discriminator}}
|
||||||
|
}
|
@ -193,6 +193,13 @@
|
|||||||
<artifactId>jackson-databind-nullable</artifactId>
|
<artifactId>jackson-databind-nullable</artifactId>
|
||||||
<version>${jackson-databind-nullable-version}</version>
|
<version>${jackson-databind-nullable-version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
{{#threetenbp}}
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.github.joschi.jackson</groupId>
|
||||||
|
<artifactId>jackson-datatype-threetenbp</artifactId>
|
||||||
|
<version>${threetenbp-version}</version>
|
||||||
|
</dependency>
|
||||||
|
{{/threetenbp}}
|
||||||
|
|
||||||
<!-- @Nullable annotation -->
|
<!-- @Nullable annotation -->
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -207,6 +214,13 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.ws.rs</groupId>
|
||||||
|
<artifactId>javax.ws.rs-api</artifactId>
|
||||||
|
<version>${javax-ws-rs-api-version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- test dependencies -->
|
<!-- test dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
@ -215,14 +229,19 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<swagger-annotations-version>1.5.22</swagger-annotations-version>
|
<swagger-annotations-version>1.5.22</swagger-annotations-version>
|
||||||
<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.10.4</jackson-version>
|
||||||
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
||||||
<javax-annotation-version>1.3.2</javax-annotation-version>
|
<javax-annotation-version>1.3.2</javax-annotation-version>
|
||||||
|
<javax-ws-rs-api-version>2.1.1</javax-ws-rs-api-version>
|
||||||
|
{{#threetenbp}}
|
||||||
|
<threetenbp-version>2.9.10</threetenbp-version>
|
||||||
|
{{/threetenbp}}
|
||||||
<junit-version>4.13.1</junit-version>
|
<junit-version>4.13.1</junit-version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -435,7 +435,7 @@ public class JavaClientCodegenTest {
|
|||||||
DefaultGenerator generator = new DefaultGenerator();
|
DefaultGenerator generator = new DefaultGenerator();
|
||||||
List<File> files = generator.opts(clientOptInput).generate();
|
List<File> files = generator.opts(clientOptInput).generate();
|
||||||
|
|
||||||
Assert.assertEquals(files.size(), 28);
|
Assert.assertEquals(files.size(), 31);
|
||||||
validateJavaSourceFiles(files);
|
validateJavaSourceFiles(files);
|
||||||
|
|
||||||
TestUtils.assertFileContains(Paths.get(output + "/src/main/java/xyz/abcdef/api/DefaultApi.java"),
|
TestUtils.assertFileContains(Paths.get(output + "/src/main/java/xyz/abcdef/api/DefaultApi.java"),
|
||||||
@ -471,7 +471,7 @@ public class JavaClientCodegenTest {
|
|||||||
DefaultGenerator generator = new DefaultGenerator();
|
DefaultGenerator generator = new DefaultGenerator();
|
||||||
List<File> files = generator.opts(clientOptInput).generate();
|
List<File> files = generator.opts(clientOptInput).generate();
|
||||||
|
|
||||||
Assert.assertEquals(files.size(), 31);
|
Assert.assertEquals(files.size(), 34);
|
||||||
validateJavaSourceFiles(files);
|
validateJavaSourceFiles(files);
|
||||||
|
|
||||||
Path defaultApi = Paths.get(output + "/src/main/java/xyz/abcdef/api/PingApi.java");
|
Path defaultApi = Paths.get(output + "/src/main/java/xyz/abcdef/api/PingApi.java");
|
||||||
|
@ -69,7 +69,9 @@ src/main/java/org/openapitools/client/ApiClient.java
|
|||||||
src/main/java/org/openapitools/client/ApiException.java
|
src/main/java/org/openapitools/client/ApiException.java
|
||||||
src/main/java/org/openapitools/client/ApiResponse.java
|
src/main/java/org/openapitools/client/ApiResponse.java
|
||||||
src/main/java/org/openapitools/client/Configuration.java
|
src/main/java/org/openapitools/client/Configuration.java
|
||||||
|
src/main/java/org/openapitools/client/JSON.java
|
||||||
src/main/java/org/openapitools/client/Pair.java
|
src/main/java/org/openapitools/client/Pair.java
|
||||||
|
src/main/java/org/openapitools/client/RFC3339DateFormat.java
|
||||||
src/main/java/org/openapitools/client/ServerConfiguration.java
|
src/main/java/org/openapitools/client/ServerConfiguration.java
|
||||||
src/main/java/org/openapitools/client/ServerVariable.java
|
src/main/java/org/openapitools/client/ServerVariable.java
|
||||||
src/main/java/org/openapitools/client/api/AnotherFakeApi.java
|
src/main/java/org/openapitools/client/api/AnotherFakeApi.java
|
||||||
@ -78,6 +80,7 @@ src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java
|
|||||||
src/main/java/org/openapitools/client/api/PetApi.java
|
src/main/java/org/openapitools/client/api/PetApi.java
|
||||||
src/main/java/org/openapitools/client/api/StoreApi.java
|
src/main/java/org/openapitools/client/api/StoreApi.java
|
||||||
src/main/java/org/openapitools/client/api/UserApi.java
|
src/main/java/org/openapitools/client/api/UserApi.java
|
||||||
|
src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
|
src/main/java/org/openapitools/client/model/AdditionalPropertiesAnyType.java
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
|
src/main/java/org/openapitools/client/model/AdditionalPropertiesArray.java
|
||||||
src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
|
src/main/java/org/openapitools/client/model/AdditionalPropertiesBoolean.java
|
||||||
|
@ -51,8 +51,9 @@ artifacts {
|
|||||||
|
|
||||||
ext {
|
ext {
|
||||||
swagger_annotations_version = "1.5.22"
|
swagger_annotations_version = "1.5.22"
|
||||||
jackson_version = "2.9.9"
|
jackson_version = "2.10.4"
|
||||||
junit_version = "4.13.1"
|
junit_version = "4.13.1"
|
||||||
|
ws_rs_version = "2.1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
@ -64,5 +65,6 @@ dependencies {
|
|||||||
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
|
||||||
compile "org.openapitools:jackson-databind-nullable:0.2.1"
|
compile "org.openapitools:jackson-databind-nullable:0.2.1"
|
||||||
compile 'javax.annotation:javax.annotation-api:1.3.2'
|
compile 'javax.annotation:javax.annotation-api:1.3.2'
|
||||||
|
compile "javax.ws.rs:javax.ws.rs-api:$ws_rs_version"
|
||||||
testCompile "junit:junit:$junit_version"
|
testCompile "junit:junit:$junit_version"
|
||||||
}
|
}
|
||||||
|
@ -200,6 +200,13 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- https://mvnrepository.com/artifact/javax.ws.rs/javax.ws.rs-api -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>javax.ws.rs</groupId>
|
||||||
|
<artifactId>javax.ws.rs-api</artifactId>
|
||||||
|
<version>${javax-ws-rs-api-version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- test dependencies -->
|
<!-- test dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>junit</groupId>
|
<groupId>junit</groupId>
|
||||||
@ -208,14 +215,16 @@
|
|||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<swagger-annotations-version>1.5.22</swagger-annotations-version>
|
<swagger-annotations-version>1.5.22</swagger-annotations-version>
|
||||||
<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.10.4</jackson-version>
|
||||||
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
||||||
<javax-annotation-version>1.3.2</javax-annotation-version>
|
<javax-annotation-version>1.3.2</javax-annotation-version>
|
||||||
|
<javax-ws-rs-api-version>2.1.1</javax-ws-rs-api-version>
|
||||||
<junit-version>4.13.1</junit-version>
|
<junit-version>4.13.1</junit-version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -0,0 +1,247 @@
|
|||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.*;
|
||||||
|
import com.fasterxml.jackson.databind.*;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullableModule;
|
||||||
|
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
|
||||||
|
import org.openapitools.client.model.*;
|
||||||
|
|
||||||
|
import java.text.DateFormat;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.HashSet;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
|
import javax.ws.rs.core.GenericType;
|
||||||
|
import javax.ws.rs.ext.ContextResolver;
|
||||||
|
|
||||||
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public class JSON implements ContextResolver<ObjectMapper> {
|
||||||
|
private ObjectMapper mapper;
|
||||||
|
|
||||||
|
public JSON() {
|
||||||
|
mapper = new ObjectMapper();
|
||||||
|
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
|
||||||
|
mapper.configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false);
|
||||||
|
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true);
|
||||||
|
mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true);
|
||||||
|
mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);
|
||||||
|
mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING);
|
||||||
|
mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING);
|
||||||
|
mapper.setDateFormat(new RFC3339DateFormat());
|
||||||
|
mapper.registerModule(new JavaTimeModule());
|
||||||
|
JsonNullableModule jnm = new JsonNullableModule();
|
||||||
|
mapper.registerModule(jnm);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the date format for JSON (de)serialization with Date properties.
|
||||||
|
* @param dateFormat Date format
|
||||||
|
*/
|
||||||
|
public void setDateFormat(DateFormat dateFormat) {
|
||||||
|
mapper.setDateFormat(dateFormat);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ObjectMapper getContext(Class<?> type) {
|
||||||
|
return mapper;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the object mapper
|
||||||
|
*
|
||||||
|
* @return object mapper
|
||||||
|
*/
|
||||||
|
public ObjectMapper getMapper() { return mapper; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the target model class that should be used to deserialize the input data.
|
||||||
|
* The discriminator mappings are used to determine the target model class.
|
||||||
|
*
|
||||||
|
* @param node The input data.
|
||||||
|
* @param modelClass The class that contains the discriminator mappings.
|
||||||
|
*/
|
||||||
|
public static Class<?> getClassForElement(JsonNode node, Class<?> modelClass) {
|
||||||
|
ClassDiscriminatorMapping cdm = modelDiscriminators.get(modelClass);
|
||||||
|
if (cdm != null) {
|
||||||
|
return cdm.getClassForElement(node, new HashSet<Class<?>>());
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper class to register the discriminator mappings.
|
||||||
|
*/
|
||||||
|
private static class ClassDiscriminatorMapping {
|
||||||
|
// The model class name.
|
||||||
|
Class<?> modelClass;
|
||||||
|
// The name of the discriminator property.
|
||||||
|
String discriminatorName;
|
||||||
|
// The discriminator mappings for a model class.
|
||||||
|
Map<String, Class<?>> discriminatorMappings;
|
||||||
|
|
||||||
|
// Constructs a new class discriminator.
|
||||||
|
ClassDiscriminatorMapping(Class<?> cls, String propertyName, Map<String, Class<?>> mappings) {
|
||||||
|
modelClass = cls;
|
||||||
|
discriminatorName = propertyName;
|
||||||
|
discriminatorMappings = new HashMap<String, Class<?>>();
|
||||||
|
if (mappings != null) {
|
||||||
|
discriminatorMappings.putAll(mappings);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Return the name of the discriminator property for this model class.
|
||||||
|
String getDiscriminatorPropertyName() {
|
||||||
|
return discriminatorName;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Return the discriminator value or null if the discriminator is not
|
||||||
|
// present in the payload.
|
||||||
|
String getDiscriminatorValue(JsonNode node) {
|
||||||
|
// Determine the value of the discriminator property in the input data.
|
||||||
|
if (discriminatorName != null) {
|
||||||
|
// Get the value of the discriminator property, if present in the input payload.
|
||||||
|
node = node.get(discriminatorName);
|
||||||
|
if (node != null && node.isValueNode()) {
|
||||||
|
String discrValue = node.asText();
|
||||||
|
if (discrValue != null) {
|
||||||
|
return discrValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the target model class that should be used to deserialize the input data.
|
||||||
|
* This function can be invoked for anyOf/oneOf composed models with discriminator mappings.
|
||||||
|
* The discriminator mappings are used to determine the target model class.
|
||||||
|
*
|
||||||
|
* @param node The input data.
|
||||||
|
* @param visitedClasses The set of classes that have already been visited.
|
||||||
|
*/
|
||||||
|
Class<?> getClassForElement(JsonNode node, Set<Class<?>> visitedClasses) {
|
||||||
|
if (visitedClasses.contains(modelClass)) {
|
||||||
|
// Class has already been visited.
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
// Determine the value of the discriminator property in the input data.
|
||||||
|
String discrValue = getDiscriminatorValue(node);
|
||||||
|
if (discrValue == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
Class<?> cls = discriminatorMappings.get(discrValue);
|
||||||
|
// It may not be sufficient to return this cls directly because that target class
|
||||||
|
// may itself be a composed schema, possibly with its own discriminator.
|
||||||
|
visitedClasses.add(modelClass);
|
||||||
|
for (Class<?> childClass : discriminatorMappings.values()) {
|
||||||
|
ClassDiscriminatorMapping childCdm = modelDiscriminators.get(childClass);
|
||||||
|
if (childCdm == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (!discriminatorName.equals(childCdm.discriminatorName)) {
|
||||||
|
discrValue = getDiscriminatorValue(node);
|
||||||
|
if (discrValue == null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (childCdm != null) {
|
||||||
|
// Recursively traverse the discriminator mappings.
|
||||||
|
Class<?> childDiscr = childCdm.getClassForElement(node, visitedClasses);
|
||||||
|
if (childDiscr != null) {
|
||||||
|
return childDiscr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return cls;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if inst is an instance of modelClass in the OpenAPI model hierarchy.
|
||||||
|
*
|
||||||
|
* The Java class hierarchy is not implemented the same way as the OpenAPI model hierarchy,
|
||||||
|
* so it's not possible to use the instanceof keyword.
|
||||||
|
*
|
||||||
|
* @param modelClass A OpenAPI model class.
|
||||||
|
* @param inst The instance object.
|
||||||
|
*/
|
||||||
|
public static boolean isInstanceOf(Class<?> modelClass, Object inst, Set<Class<?>> visitedClasses) {
|
||||||
|
if (modelClass.isInstance(inst)) {
|
||||||
|
// This handles the 'allOf' use case with single parent inheritance.
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (visitedClasses.contains(modelClass)) {
|
||||||
|
// This is to prevent infinite recursion when the composed schemas have
|
||||||
|
// a circular dependency.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
visitedClasses.add(modelClass);
|
||||||
|
|
||||||
|
// Traverse the oneOf/anyOf composed schemas.
|
||||||
|
Map<String, GenericType> descendants = modelDescendants.get(modelClass);
|
||||||
|
if (descendants != null) {
|
||||||
|
for (GenericType childType : descendants.values()) {
|
||||||
|
if (isInstanceOf(childType.getRawType(), inst, visitedClasses)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A map of discriminators for all model classes.
|
||||||
|
*/
|
||||||
|
private static Map<Class<?>, ClassDiscriminatorMapping> modelDiscriminators = new HashMap<Class<?>, ClassDiscriminatorMapping>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A map of oneOf/anyOf descendants for each model class.
|
||||||
|
*/
|
||||||
|
private static Map<Class<?>, Map<String, GenericType>> modelDescendants = new HashMap<Class<?>, Map<String, GenericType>>();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register a model class discriminator.
|
||||||
|
*
|
||||||
|
* @param modelClass the model class
|
||||||
|
* @param discriminatorPropertyName the name of the discriminator property
|
||||||
|
* @param mappings a map with the discriminator mappings.
|
||||||
|
*/
|
||||||
|
public static void registerDiscriminator(Class<?> modelClass, String discriminatorPropertyName, Map<String, Class<?>> mappings) {
|
||||||
|
ClassDiscriminatorMapping m = new ClassDiscriminatorMapping(modelClass, discriminatorPropertyName, mappings);
|
||||||
|
modelDiscriminators.put(modelClass, m);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register the oneOf/anyOf descendants of the modelClass.
|
||||||
|
*
|
||||||
|
* @param modelClass the model class
|
||||||
|
* @param descendants a map of oneOf/anyOf descendants.
|
||||||
|
*/
|
||||||
|
public static void registerDescendants(Class<?> modelClass, Map<String, GenericType> descendants) {
|
||||||
|
modelDescendants.put(modelClass, descendants);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static JSON json;
|
||||||
|
|
||||||
|
static {
|
||||||
|
json = new JSON();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the default JSON instance.
|
||||||
|
*
|
||||||
|
* @return the default JSON instance
|
||||||
|
*/
|
||||||
|
public static JSON getDefault() {
|
||||||
|
return json;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the default JSON instance.
|
||||||
|
*
|
||||||
|
* @param json JSON instance to be used
|
||||||
|
*/
|
||||||
|
public static void setDefault(JSON json) {
|
||||||
|
JSON.json = json;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
package org.openapitools.client;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.databind.util.StdDateFormat;
|
||||||
|
|
||||||
|
import java.text.DateFormat;
|
||||||
|
import java.text.FieldPosition;
|
||||||
|
import java.text.ParsePosition;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.GregorianCalendar;
|
||||||
|
import java.util.TimeZone;
|
||||||
|
|
||||||
|
public class RFC3339DateFormat extends DateFormat {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC");
|
||||||
|
|
||||||
|
private final StdDateFormat fmt = new StdDateFormat()
|
||||||
|
.withTimeZone(TIMEZONE_Z)
|
||||||
|
.withColonInTimeZone(true);
|
||||||
|
|
||||||
|
public RFC3339DateFormat() {
|
||||||
|
this.calendar = new GregorianCalendar();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Date parse(String source) {
|
||||||
|
return parse(source, new ParsePosition(0));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Date parse(String source, ParsePosition pos) {
|
||||||
|
return fmt.parse(source, pos);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
|
||||||
|
return fmt.format(date, toAppendTo, fieldPosition);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Object clone() {
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
@ -991,33 +991,33 @@ public class FakeApi {
|
|||||||
/**
|
/**
|
||||||
* Fake endpoint to test group parameters (optional)
|
* Fake endpoint to test group parameters (optional)
|
||||||
* Fake endpoint to test group parameters (optional)
|
* Fake endpoint to test group parameters (optional)
|
||||||
* @param testGroupParametersRequest {@link APItestGroupParametersRequest}
|
* @param apiRequest {@link APItestGroupParametersRequest}
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<Void> testGroupParameters(APItestGroupParametersRequest testGroupParametersRequest) throws ApiException {
|
public CompletableFuture<Void> testGroupParameters(APItestGroupParametersRequest apiRequest) throws ApiException {
|
||||||
Integer requiredStringGroup = testGroupParametersRequest.requiredStringGroup();
|
Integer requiredStringGroup = apiRequest.requiredStringGroup();
|
||||||
Boolean requiredBooleanGroup = testGroupParametersRequest.requiredBooleanGroup();
|
Boolean requiredBooleanGroup = apiRequest.requiredBooleanGroup();
|
||||||
Long requiredInt64Group = testGroupParametersRequest.requiredInt64Group();
|
Long requiredInt64Group = apiRequest.requiredInt64Group();
|
||||||
Integer stringGroup = testGroupParametersRequest.stringGroup();
|
Integer stringGroup = apiRequest.stringGroup();
|
||||||
Boolean booleanGroup = testGroupParametersRequest.booleanGroup();
|
Boolean booleanGroup = apiRequest.booleanGroup();
|
||||||
Long int64Group = testGroupParametersRequest.int64Group();
|
Long int64Group = apiRequest.int64Group();
|
||||||
return testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
return testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fake endpoint to test group parameters (optional)
|
* Fake endpoint to test group parameters (optional)
|
||||||
* Fake endpoint to test group parameters (optional)
|
* Fake endpoint to test group parameters (optional)
|
||||||
* @param testGroupParametersRequest {@link APItestGroupParametersRequest}
|
* @param apiRequest {@link APItestGroupParametersRequest}
|
||||||
* @return CompletableFuture<ApiResponse<Void>>
|
* @return CompletableFuture<ApiResponse<Void>>
|
||||||
* @throws ApiException if fails to make API call
|
* @throws ApiException if fails to make API call
|
||||||
*/
|
*/
|
||||||
public CompletableFuture<ApiResponse<Void>> testGroupParametersWithHttpInfo(APItestGroupParametersRequest testGroupParametersRequest) throws ApiException {
|
public CompletableFuture<ApiResponse<Void>> testGroupParametersWithHttpInfo(APItestGroupParametersRequest apiRequest) throws ApiException {
|
||||||
Integer requiredStringGroup = testGroupParametersRequest.requiredStringGroup();
|
Integer requiredStringGroup = apiRequest.requiredStringGroup();
|
||||||
Boolean requiredBooleanGroup = testGroupParametersRequest.requiredBooleanGroup();
|
Boolean requiredBooleanGroup = apiRequest.requiredBooleanGroup();
|
||||||
Long requiredInt64Group = testGroupParametersRequest.requiredInt64Group();
|
Long requiredInt64Group = apiRequest.requiredInt64Group();
|
||||||
Integer stringGroup = testGroupParametersRequest.stringGroup();
|
Integer stringGroup = apiRequest.stringGroup();
|
||||||
Boolean booleanGroup = testGroupParametersRequest.booleanGroup();
|
Boolean booleanGroup = apiRequest.booleanGroup();
|
||||||
Long int64Group = testGroupParametersRequest.int64Group();
|
Long int64Group = apiRequest.int64Group();
|
||||||
return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
return testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,149 @@
|
|||||||
|
/*
|
||||||
|
* OpenAPI Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* The version of the OpenAPI document: 1.0.0
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
|
* https://openapi-generator.tech
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import org.openapitools.client.ApiException;
|
||||||
|
import java.util.Objects;
|
||||||
|
import java.lang.reflect.Type;
|
||||||
|
import java.util.Map;
|
||||||
|
import javax.ws.rs.core.GenericType;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
|
||||||
|
*/
|
||||||
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
|
public abstract class AbstractOpenApiSchema {
|
||||||
|
|
||||||
|
// store the actual instance of the schema/object
|
||||||
|
private Object instance;
|
||||||
|
|
||||||
|
// is nullable
|
||||||
|
private Boolean isNullable;
|
||||||
|
|
||||||
|
// schema type (e.g. oneOf, anyOf)
|
||||||
|
private final String schemaType;
|
||||||
|
|
||||||
|
public AbstractOpenApiSchema(String schemaType, Boolean isNullable) {
|
||||||
|
this.schemaType = schemaType;
|
||||||
|
this.isNullable = isNullable;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
|
||||||
|
*
|
||||||
|
* @return an instance of the actual schema/object
|
||||||
|
*/
|
||||||
|
public abstract Map<String, GenericType> getSchemas();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the actual instance
|
||||||
|
*
|
||||||
|
* @return an instance of the actual schema/object
|
||||||
|
*/
|
||||||
|
@JsonValue
|
||||||
|
public Object getActualInstance() {return instance;}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the actual instance
|
||||||
|
*
|
||||||
|
* @param instance the actual instance of the schema/object
|
||||||
|
*/
|
||||||
|
public void setActualInstance(Object instance) {this.instance = instance;}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well
|
||||||
|
*
|
||||||
|
* @return an instance of the actual schema/object
|
||||||
|
*/
|
||||||
|
public Object getActualInstanceRecursively() {
|
||||||
|
return getActualInstanceRecursively(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Object getActualInstanceRecursively(AbstractOpenApiSchema object) {
|
||||||
|
if (object.getActualInstance() == null) {
|
||||||
|
return null;
|
||||||
|
} else if (object.getActualInstance() instanceof AbstractOpenApiSchema) {
|
||||||
|
return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance());
|
||||||
|
} else {
|
||||||
|
return object.getActualInstance();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the schema type (e.g. anyOf, oneOf)
|
||||||
|
*
|
||||||
|
* @return the schema type
|
||||||
|
*/
|
||||||
|
public String getSchemaType() {
|
||||||
|
return schemaType;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ").append(getClass()).append(" {\n");
|
||||||
|
sb.append(" instance: ").append(toIndentedString(instance)).append("\n");
|
||||||
|
sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n");
|
||||||
|
sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
AbstractOpenApiSchema a = (AbstractOpenApiSchema) o;
|
||||||
|
return Objects.equals(this.instance, a.instance) &&
|
||||||
|
Objects.equals(this.isNullable, a.isNullable) &&
|
||||||
|
Objects.equals(this.schemaType, a.schemaType);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(instance, isNullable, schemaType);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is nullalble
|
||||||
|
*
|
||||||
|
* @return true if it's nullable
|
||||||
|
*/
|
||||||
|
public Boolean isNullable() {
|
||||||
|
if (Boolean.TRUE.equals(isNullable)) {
|
||||||
|
return Boolean.TRUE;
|
||||||
|
} else {
|
||||||
|
return Boolean.FALSE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -13,8 +13,14 @@
|
|||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -25,6 +31,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesAnyType
|
* AdditionalPropertiesAnyType
|
||||||
@ -32,7 +40,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
AdditionalPropertiesAnyType.JSON_PROPERTY_NAME
|
AdditionalPropertiesAnyType.JSON_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("AdditionalPropertiesAnyType")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -40,7 +47,6 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesAnyType name(String name) {
|
public AdditionalPropertiesAnyType name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -63,7 +69,47 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A container for additional, undeclared properties.
|
||||||
|
* This is a holder for any undeclared properties as specified with
|
||||||
|
* the 'additionalProperties' keyword in the OAS document.
|
||||||
|
*/
|
||||||
|
private Map<String, Object> additionalProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the additional (undeclared) property with the specified name and value.
|
||||||
|
* If the property does not already exist, create it otherwise replace it.
|
||||||
|
*/
|
||||||
|
@JsonAnySetter
|
||||||
|
public AdditionalPropertiesAnyType putAdditionalProperty(String key, Object value) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
this.additionalProperties = new HashMap<String, Object>();
|
||||||
|
}
|
||||||
|
this.additionalProperties.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property.
|
||||||
|
*/
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, Object> getAdditionalProperties() {
|
||||||
|
return additionalProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property with the specified name.
|
||||||
|
*/
|
||||||
|
public Object getAdditionalProperty(String key) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return this.additionalProperties.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this AdditionalPropertiesAnyType object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -73,22 +119,23 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AdditionalPropertiesAnyType additionalPropertiesAnyType = (AdditionalPropertiesAnyType) o;
|
AdditionalPropertiesAnyType additionalPropertiesAnyType = (AdditionalPropertiesAnyType) o;
|
||||||
return Objects.equals(this.name, additionalPropertiesAnyType.name) &&
|
return Objects.equals(this.name, additionalPropertiesAnyType.name)&&
|
||||||
|
Objects.equals(this.additionalProperties, additionalPropertiesAnyType.additionalProperties) &&
|
||||||
super.equals(o);
|
super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode(), additionalProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class AdditionalPropertiesAnyType {\n");
|
sb.append("class AdditionalPropertiesAnyType {\n");
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,14 @@
|
|||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -26,6 +32,8 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesArray
|
* AdditionalPropertiesArray
|
||||||
@ -33,7 +41,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
AdditionalPropertiesArray.JSON_PROPERTY_NAME
|
AdditionalPropertiesArray.JSON_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("AdditionalPropertiesArray")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -41,7 +48,6 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesArray name(String name) {
|
public AdditionalPropertiesArray name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -64,7 +70,47 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A container for additional, undeclared properties.
|
||||||
|
* This is a holder for any undeclared properties as specified with
|
||||||
|
* the 'additionalProperties' keyword in the OAS document.
|
||||||
|
*/
|
||||||
|
private Map<String, List> additionalProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the additional (undeclared) property with the specified name and value.
|
||||||
|
* If the property does not already exist, create it otherwise replace it.
|
||||||
|
*/
|
||||||
|
@JsonAnySetter
|
||||||
|
public AdditionalPropertiesArray putAdditionalProperty(String key, List value) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
this.additionalProperties = new HashMap<String, List>();
|
||||||
|
}
|
||||||
|
this.additionalProperties.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property.
|
||||||
|
*/
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, List> getAdditionalProperties() {
|
||||||
|
return additionalProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property with the specified name.
|
||||||
|
*/
|
||||||
|
public List getAdditionalProperty(String key) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return this.additionalProperties.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this AdditionalPropertiesArray object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -74,22 +120,23 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AdditionalPropertiesArray additionalPropertiesArray = (AdditionalPropertiesArray) o;
|
AdditionalPropertiesArray additionalPropertiesArray = (AdditionalPropertiesArray) o;
|
||||||
return Objects.equals(this.name, additionalPropertiesArray.name) &&
|
return Objects.equals(this.name, additionalPropertiesArray.name)&&
|
||||||
|
Objects.equals(this.additionalProperties, additionalPropertiesArray.additionalProperties) &&
|
||||||
super.equals(o);
|
super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode(), additionalProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class AdditionalPropertiesArray {\n");
|
sb.append("class AdditionalPropertiesArray {\n");
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,14 @@
|
|||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -25,6 +31,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesBoolean
|
* AdditionalPropertiesBoolean
|
||||||
@ -32,7 +40,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
AdditionalPropertiesBoolean.JSON_PROPERTY_NAME
|
AdditionalPropertiesBoolean.JSON_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("AdditionalPropertiesBoolean")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -40,7 +47,6 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesBoolean name(String name) {
|
public AdditionalPropertiesBoolean name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -63,7 +69,47 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A container for additional, undeclared properties.
|
||||||
|
* This is a holder for any undeclared properties as specified with
|
||||||
|
* the 'additionalProperties' keyword in the OAS document.
|
||||||
|
*/
|
||||||
|
private Map<String, Boolean> additionalProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the additional (undeclared) property with the specified name and value.
|
||||||
|
* If the property does not already exist, create it otherwise replace it.
|
||||||
|
*/
|
||||||
|
@JsonAnySetter
|
||||||
|
public AdditionalPropertiesBoolean putAdditionalProperty(String key, Boolean value) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
this.additionalProperties = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.additionalProperties.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property.
|
||||||
|
*/
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, Boolean> getAdditionalProperties() {
|
||||||
|
return additionalProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property with the specified name.
|
||||||
|
*/
|
||||||
|
public Boolean getAdditionalProperty(String key) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return this.additionalProperties.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this AdditionalPropertiesBoolean object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -73,22 +119,23 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AdditionalPropertiesBoolean additionalPropertiesBoolean = (AdditionalPropertiesBoolean) o;
|
AdditionalPropertiesBoolean additionalPropertiesBoolean = (AdditionalPropertiesBoolean) o;
|
||||||
return Objects.equals(this.name, additionalPropertiesBoolean.name) &&
|
return Objects.equals(this.name, additionalPropertiesBoolean.name)&&
|
||||||
|
Objects.equals(this.additionalProperties, additionalPropertiesBoolean.additionalProperties) &&
|
||||||
super.equals(o);
|
super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode(), additionalProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class AdditionalPropertiesBoolean {\n");
|
sb.append("class AdditionalPropertiesBoolean {\n");
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -27,6 +29,8 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesClass
|
* AdditionalPropertiesClass
|
||||||
@ -44,7 +48,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE2,
|
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE2,
|
||||||
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3
|
AdditionalPropertiesClass.JSON_PROPERTY_ANYTYPE3
|
||||||
})
|
})
|
||||||
@JsonTypeName("AdditionalPropertiesClass")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -82,19 +85,10 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||||
|
|
||||||
this.mapString = mapString;
|
this.mapString = mapString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapStringItem(String key, String mapStringItem) {
|
|
||||||
if (this.mapString == null) {
|
|
||||||
this.mapString = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapString.put(key, mapStringItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapString
|
* Get mapString
|
||||||
* @return mapString
|
* @return mapString
|
||||||
@ -115,19 +109,10 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
|
public AdditionalPropertiesClass mapNumber(Map<String, BigDecimal> mapNumber) {
|
||||||
|
|
||||||
this.mapNumber = mapNumber;
|
this.mapNumber = mapNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapNumberItem(String key, BigDecimal mapNumberItem) {
|
|
||||||
if (this.mapNumber == null) {
|
|
||||||
this.mapNumber = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapNumber.put(key, mapNumberItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapNumber
|
* Get mapNumber
|
||||||
* @return mapNumber
|
* @return mapNumber
|
||||||
@ -148,19 +133,10 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
|
public AdditionalPropertiesClass mapInteger(Map<String, Integer> mapInteger) {
|
||||||
|
|
||||||
this.mapInteger = mapInteger;
|
this.mapInteger = mapInteger;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapIntegerItem(String key, Integer mapIntegerItem) {
|
|
||||||
if (this.mapInteger == null) {
|
|
||||||
this.mapInteger = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapInteger.put(key, mapIntegerItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapInteger
|
* Get mapInteger
|
||||||
* @return mapInteger
|
* @return mapInteger
|
||||||
@ -181,19 +157,10 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
|
public AdditionalPropertiesClass mapBoolean(Map<String, Boolean> mapBoolean) {
|
||||||
|
|
||||||
this.mapBoolean = mapBoolean;
|
this.mapBoolean = mapBoolean;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapBooleanItem(String key, Boolean mapBooleanItem) {
|
|
||||||
if (this.mapBoolean == null) {
|
|
||||||
this.mapBoolean = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapBoolean.put(key, mapBooleanItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapBoolean
|
* Get mapBoolean
|
||||||
* @return mapBoolean
|
* @return mapBoolean
|
||||||
@ -214,19 +181,10 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapArrayIntegerItem(String key, List<Integer> mapArrayIntegerItem) {
|
|
||||||
if (this.mapArrayInteger == null) {
|
|
||||||
this.mapArrayInteger = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapArrayInteger.put(key, mapArrayIntegerItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapArrayInteger
|
* Get mapArrayInteger
|
||||||
* @return mapArrayInteger
|
* @return mapArrayInteger
|
||||||
@ -247,19 +205,10 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapArrayAnytypeItem(String key, List<Object> mapArrayAnytypeItem) {
|
|
||||||
if (this.mapArrayAnytype == null) {
|
|
||||||
this.mapArrayAnytype = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapArrayAnytype.put(key, mapArrayAnytypeItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapArrayAnytype
|
* Get mapArrayAnytype
|
||||||
* @return mapArrayAnytype
|
* @return mapArrayAnytype
|
||||||
@ -280,19 +229,10 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapMapStringItem(String key, Map<String, String> mapMapStringItem) {
|
|
||||||
if (this.mapMapString == null) {
|
|
||||||
this.mapMapString = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapMapString.put(key, mapMapStringItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapMapString
|
* Get mapMapString
|
||||||
* @return mapMapString
|
* @return mapMapString
|
||||||
@ -313,19 +253,10 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AdditionalPropertiesClass putMapMapAnytypeItem(String key, Map<String, Object> mapMapAnytypeItem) {
|
|
||||||
if (this.mapMapAnytype == null) {
|
|
||||||
this.mapMapAnytype = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapMapAnytype.put(key, mapMapAnytypeItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapMapAnytype
|
* Get mapMapAnytype
|
||||||
* @return mapMapAnytype
|
* @return mapMapAnytype
|
||||||
@ -346,7 +277,6 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass anytype1(Object anytype1) {
|
public AdditionalPropertiesClass anytype1(Object anytype1) {
|
||||||
|
|
||||||
this.anytype1 = anytype1;
|
this.anytype1 = anytype1;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -371,7 +301,6 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass anytype2(Object anytype2) {
|
public AdditionalPropertiesClass anytype2(Object anytype2) {
|
||||||
|
|
||||||
this.anytype2 = anytype2;
|
this.anytype2 = anytype2;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -396,7 +325,6 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesClass anytype3(Object anytype3) {
|
public AdditionalPropertiesClass anytype3(Object anytype3) {
|
||||||
|
|
||||||
this.anytype3 = anytype3;
|
this.anytype3 = anytype3;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -420,6 +348,9 @@ public class AdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this AdditionalPropertiesClass object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -447,7 +378,6 @@ public class AdditionalPropertiesClass {
|
|||||||
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
|
return Objects.hash(mapString, mapNumber, mapInteger, mapBoolean, mapArrayInteger, mapArrayAnytype, mapMapString, mapMapAnytype, anytype1, anytype2, anytype3);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -13,8 +13,14 @@
|
|||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -25,6 +31,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesInteger
|
* AdditionalPropertiesInteger
|
||||||
@ -32,7 +40,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
AdditionalPropertiesInteger.JSON_PROPERTY_NAME
|
AdditionalPropertiesInteger.JSON_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("AdditionalPropertiesInteger")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -40,7 +47,6 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesInteger name(String name) {
|
public AdditionalPropertiesInteger name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -63,7 +69,47 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A container for additional, undeclared properties.
|
||||||
|
* This is a holder for any undeclared properties as specified with
|
||||||
|
* the 'additionalProperties' keyword in the OAS document.
|
||||||
|
*/
|
||||||
|
private Map<String, Integer> additionalProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the additional (undeclared) property with the specified name and value.
|
||||||
|
* If the property does not already exist, create it otherwise replace it.
|
||||||
|
*/
|
||||||
|
@JsonAnySetter
|
||||||
|
public AdditionalPropertiesInteger putAdditionalProperty(String key, Integer value) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
this.additionalProperties = new HashMap<String, Integer>();
|
||||||
|
}
|
||||||
|
this.additionalProperties.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property.
|
||||||
|
*/
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, Integer> getAdditionalProperties() {
|
||||||
|
return additionalProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property with the specified name.
|
||||||
|
*/
|
||||||
|
public Integer getAdditionalProperty(String key) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return this.additionalProperties.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this AdditionalPropertiesInteger object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -73,22 +119,23 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AdditionalPropertiesInteger additionalPropertiesInteger = (AdditionalPropertiesInteger) o;
|
AdditionalPropertiesInteger additionalPropertiesInteger = (AdditionalPropertiesInteger) o;
|
||||||
return Objects.equals(this.name, additionalPropertiesInteger.name) &&
|
return Objects.equals(this.name, additionalPropertiesInteger.name)&&
|
||||||
|
Objects.equals(this.additionalProperties, additionalPropertiesInteger.additionalProperties) &&
|
||||||
super.equals(o);
|
super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode(), additionalProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class AdditionalPropertiesInteger {\n");
|
sb.append("class AdditionalPropertiesInteger {\n");
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,14 @@
|
|||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -26,6 +32,8 @@ import java.math.BigDecimal;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesNumber
|
* AdditionalPropertiesNumber
|
||||||
@ -33,7 +41,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
AdditionalPropertiesNumber.JSON_PROPERTY_NAME
|
AdditionalPropertiesNumber.JSON_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("AdditionalPropertiesNumber")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -41,7 +48,6 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesNumber name(String name) {
|
public AdditionalPropertiesNumber name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -64,7 +70,47 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A container for additional, undeclared properties.
|
||||||
|
* This is a holder for any undeclared properties as specified with
|
||||||
|
* the 'additionalProperties' keyword in the OAS document.
|
||||||
|
*/
|
||||||
|
private Map<String, BigDecimal> additionalProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the additional (undeclared) property with the specified name and value.
|
||||||
|
* If the property does not already exist, create it otherwise replace it.
|
||||||
|
*/
|
||||||
|
@JsonAnySetter
|
||||||
|
public AdditionalPropertiesNumber putAdditionalProperty(String key, BigDecimal value) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
this.additionalProperties = new HashMap<String, BigDecimal>();
|
||||||
|
}
|
||||||
|
this.additionalProperties.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property.
|
||||||
|
*/
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, BigDecimal> getAdditionalProperties() {
|
||||||
|
return additionalProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property with the specified name.
|
||||||
|
*/
|
||||||
|
public BigDecimal getAdditionalProperty(String key) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return this.additionalProperties.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this AdditionalPropertiesNumber object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -74,22 +120,23 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AdditionalPropertiesNumber additionalPropertiesNumber = (AdditionalPropertiesNumber) o;
|
AdditionalPropertiesNumber additionalPropertiesNumber = (AdditionalPropertiesNumber) o;
|
||||||
return Objects.equals(this.name, additionalPropertiesNumber.name) &&
|
return Objects.equals(this.name, additionalPropertiesNumber.name)&&
|
||||||
|
Objects.equals(this.additionalProperties, additionalPropertiesNumber.additionalProperties) &&
|
||||||
super.equals(o);
|
super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode(), additionalProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class AdditionalPropertiesNumber {\n");
|
sb.append("class AdditionalPropertiesNumber {\n");
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,14 @@
|
|||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -25,6 +31,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesObject
|
* AdditionalPropertiesObject
|
||||||
@ -32,7 +40,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
AdditionalPropertiesObject.JSON_PROPERTY_NAME
|
AdditionalPropertiesObject.JSON_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("AdditionalPropertiesObject")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -40,7 +47,6 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesObject name(String name) {
|
public AdditionalPropertiesObject name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -63,7 +69,47 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A container for additional, undeclared properties.
|
||||||
|
* This is a holder for any undeclared properties as specified with
|
||||||
|
* the 'additionalProperties' keyword in the OAS document.
|
||||||
|
*/
|
||||||
|
private Map<String, Map> additionalProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the additional (undeclared) property with the specified name and value.
|
||||||
|
* If the property does not already exist, create it otherwise replace it.
|
||||||
|
*/
|
||||||
|
@JsonAnySetter
|
||||||
|
public AdditionalPropertiesObject putAdditionalProperty(String key, Map value) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
this.additionalProperties = new HashMap<String, Map>();
|
||||||
|
}
|
||||||
|
this.additionalProperties.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property.
|
||||||
|
*/
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, Map> getAdditionalProperties() {
|
||||||
|
return additionalProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property with the specified name.
|
||||||
|
*/
|
||||||
|
public Map getAdditionalProperty(String key) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return this.additionalProperties.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this AdditionalPropertiesObject object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -73,22 +119,23 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AdditionalPropertiesObject additionalPropertiesObject = (AdditionalPropertiesObject) o;
|
AdditionalPropertiesObject additionalPropertiesObject = (AdditionalPropertiesObject) o;
|
||||||
return Objects.equals(this.name, additionalPropertiesObject.name) &&
|
return Objects.equals(this.name, additionalPropertiesObject.name)&&
|
||||||
|
Objects.equals(this.additionalProperties, additionalPropertiesObject.additionalProperties) &&
|
||||||
super.equals(o);
|
super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode(), additionalProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class AdditionalPropertiesObject {\n");
|
sb.append("class AdditionalPropertiesObject {\n");
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,14 @@
|
|||||||
|
|
||||||
package org.openapitools.client.model;
|
package org.openapitools.client.model;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnyGetter;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonAnySetter;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -25,6 +31,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AdditionalPropertiesString
|
* AdditionalPropertiesString
|
||||||
@ -32,7 +40,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
AdditionalPropertiesString.JSON_PROPERTY_NAME
|
AdditionalPropertiesString.JSON_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("AdditionalPropertiesString")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -40,7 +47,6 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
|||||||
|
|
||||||
|
|
||||||
public AdditionalPropertiesString name(String name) {
|
public AdditionalPropertiesString name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -63,7 +69,47 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A container for additional, undeclared properties.
|
||||||
|
* This is a holder for any undeclared properties as specified with
|
||||||
|
* the 'additionalProperties' keyword in the OAS document.
|
||||||
|
*/
|
||||||
|
private Map<String, String> additionalProperties;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the additional (undeclared) property with the specified name and value.
|
||||||
|
* If the property does not already exist, create it otherwise replace it.
|
||||||
|
*/
|
||||||
|
@JsonAnySetter
|
||||||
|
public AdditionalPropertiesString putAdditionalProperty(String key, String value) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
this.additionalProperties = new HashMap<String, String>();
|
||||||
|
}
|
||||||
|
this.additionalProperties.put(key, value);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property.
|
||||||
|
*/
|
||||||
|
@JsonAnyGetter
|
||||||
|
public Map<String, String> getAdditionalProperties() {
|
||||||
|
return additionalProperties;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the additional (undeclared) property with the specified name.
|
||||||
|
*/
|
||||||
|
public String getAdditionalProperty(String key) {
|
||||||
|
if (this.additionalProperties == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return this.additionalProperties.get(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this AdditionalPropertiesString object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -73,22 +119,23 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
AdditionalPropertiesString additionalPropertiesString = (AdditionalPropertiesString) o;
|
AdditionalPropertiesString additionalPropertiesString = (AdditionalPropertiesString) o;
|
||||||
return Objects.equals(this.name, additionalPropertiesString.name) &&
|
return Objects.equals(this.name, additionalPropertiesString.name)&&
|
||||||
|
Objects.equals(this.additionalProperties, additionalPropertiesString.additionalProperties) &&
|
||||||
super.equals(o);
|
super.equals(o);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(name, super.hashCode());
|
return Objects.hash(name, super.hashCode(), additionalProperties);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class AdditionalPropertiesString {\n");
|
sb.append("class AdditionalPropertiesString {\n");
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
|
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -28,6 +30,8 @@ import org.openapitools.client.model.BigCat;
|
|||||||
import org.openapitools.client.model.Cat;
|
import org.openapitools.client.model.Cat;
|
||||||
import org.openapitools.client.model.Dog;
|
import org.openapitools.client.model.Dog;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Animal
|
* Animal
|
||||||
@ -36,7 +40,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
Animal.JSON_PROPERTY_CLASS_NAME,
|
Animal.JSON_PROPERTY_CLASS_NAME,
|
||||||
Animal.JSON_PROPERTY_COLOR
|
Animal.JSON_PROPERTY_COLOR
|
||||||
})
|
})
|
||||||
@JsonTypeName("Animal")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||||
@JsonSubTypes({
|
@JsonSubTypes({
|
||||||
@ -47,14 +50,13 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
|
|
||||||
public class Animal {
|
public class Animal {
|
||||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
||||||
protected String className;
|
private String className;
|
||||||
|
|
||||||
public static final String JSON_PROPERTY_COLOR = "color";
|
public static final String JSON_PROPERTY_COLOR = "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;
|
||||||
}
|
}
|
||||||
@ -78,7 +80,6 @@ public class Animal {
|
|||||||
|
|
||||||
|
|
||||||
public Animal color(String color) {
|
public Animal color(String color) {
|
||||||
|
|
||||||
this.color = color;
|
this.color = color;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -102,6 +103,9 @@ public class Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Animal object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -120,7 +124,6 @@ public class Animal {
|
|||||||
return Objects.hash(className, color);
|
return Objects.hash(className, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
@ -142,5 +145,14 @@ public class Animal {
|
|||||||
return o.toString().replace("\n", "\n ");
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static {
|
||||||
|
// Initialize and register the discriminator mappings.
|
||||||
|
Map<String, Class<?>> mappings = new HashMap<String, Class<?>>();
|
||||||
|
mappings.put("BigCat", BigCat.class);
|
||||||
|
mappings.put("Cat", Cat.class);
|
||||||
|
mappings.put("Dog", Dog.class);
|
||||||
|
mappings.put("Animal", Animal.class);
|
||||||
|
JSON.registerDiscriminator(Animal.class, "className", mappings);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -26,6 +28,8 @@ import java.math.BigDecimal;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArrayOfArrayOfNumberOnly
|
* ArrayOfArrayOfNumberOnly
|
||||||
@ -33,7 +37,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER
|
ArrayOfArrayOfNumberOnly.JSON_PROPERTY_ARRAY_ARRAY_NUMBER
|
||||||
})
|
})
|
||||||
@JsonTypeName("ArrayOfArrayOfNumberOnly")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -41,7 +44,6 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
|
|
||||||
|
|
||||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||||
|
|
||||||
this.arrayArrayNumber = arrayArrayNumber;
|
this.arrayArrayNumber = arrayArrayNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -73,6 +75,9 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this ArrayOfArrayOfNumberOnly object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -90,7 +95,6 @@ public class ArrayOfArrayOfNumberOnly {
|
|||||||
return Objects.hash(arrayArrayNumber);
|
return Objects.hash(arrayArrayNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -26,6 +28,8 @@ import java.math.BigDecimal;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArrayOfNumberOnly
|
* ArrayOfNumberOnly
|
||||||
@ -33,7 +37,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER
|
ArrayOfNumberOnly.JSON_PROPERTY_ARRAY_NUMBER
|
||||||
})
|
})
|
||||||
@JsonTypeName("ArrayOfNumberOnly")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class ArrayOfNumberOnly {
|
public class ArrayOfNumberOnly {
|
||||||
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
|
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
|
||||||
@ -41,7 +44,6 @@ public class ArrayOfNumberOnly {
|
|||||||
|
|
||||||
|
|
||||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||||
|
|
||||||
this.arrayNumber = arrayNumber;
|
this.arrayNumber = arrayNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -73,6 +75,9 @@ public class ArrayOfNumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this ArrayOfNumberOnly object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -90,7 +95,6 @@ public class ArrayOfNumberOnly {
|
|||||||
return Objects.hash(arrayNumber);
|
return Objects.hash(arrayNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -26,6 +28,8 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import org.openapitools.client.model.ReadOnlyFirst;
|
import org.openapitools.client.model.ReadOnlyFirst;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ArrayTest
|
* ArrayTest
|
||||||
@ -35,7 +39,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER,
|
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER,
|
||||||
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL
|
ArrayTest.JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL
|
||||||
})
|
})
|
||||||
@JsonTypeName("ArrayTest")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -49,7 +52,6 @@ public class ArrayTest {
|
|||||||
|
|
||||||
|
|
||||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||||
|
|
||||||
this.arrayOfString = arrayOfString;
|
this.arrayOfString = arrayOfString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -82,7 +84,6 @@ public class ArrayTest {
|
|||||||
|
|
||||||
|
|
||||||
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
||||||
|
|
||||||
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -115,7 +116,6 @@ public class ArrayTest {
|
|||||||
|
|
||||||
|
|
||||||
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||||
|
|
||||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -147,6 +147,9 @@ public class ArrayTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this ArrayTest object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -166,7 +169,6 @@ public class ArrayTest {
|
|||||||
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -27,6 +29,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import org.openapitools.client.model.BigCatAllOf;
|
import org.openapitools.client.model.BigCatAllOf;
|
||||||
import org.openapitools.client.model.Cat;
|
import org.openapitools.client.model.Cat;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BigCat
|
* BigCat
|
||||||
@ -34,7 +38,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
BigCat.JSON_PROPERTY_KIND
|
BigCat.JSON_PROPERTY_KIND
|
||||||
})
|
})
|
||||||
@JsonTypeName("BigCat")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||||
|
|
||||||
@ -83,7 +86,6 @@ public class BigCat extends Cat {
|
|||||||
|
|
||||||
|
|
||||||
public BigCat kind(KindEnum kind) {
|
public BigCat kind(KindEnum kind) {
|
||||||
|
|
||||||
this.kind = kind;
|
this.kind = kind;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -107,6 +109,9 @@ public class BigCat extends Cat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this BigCat object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -125,7 +130,6 @@ public class BigCat extends Cat {
|
|||||||
return Objects.hash(kind, super.hashCode());
|
return Objects.hash(kind, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
@ -147,5 +151,11 @@ public class BigCat extends Cat {
|
|||||||
return o.toString().replace("\n", "\n ");
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static {
|
||||||
|
// Initialize and register the discriminator mappings.
|
||||||
|
Map<String, Class<?>> mappings = new HashMap<String, Class<?>>();
|
||||||
|
mappings.put("BigCat", BigCat.class);
|
||||||
|
JSON.registerDiscriminator(BigCat.class, "className", mappings);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BigCatAllOf
|
* BigCatAllOf
|
||||||
@ -30,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
BigCatAllOf.JSON_PROPERTY_KIND
|
BigCatAllOf.JSON_PROPERTY_KIND
|
||||||
})
|
})
|
||||||
@JsonTypeName("BigCat_allOf")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class BigCatAllOf {
|
public class BigCatAllOf {
|
||||||
/**
|
/**
|
||||||
@ -77,7 +80,6 @@ public class BigCatAllOf {
|
|||||||
|
|
||||||
|
|
||||||
public BigCatAllOf kind(KindEnum kind) {
|
public BigCatAllOf kind(KindEnum kind) {
|
||||||
|
|
||||||
this.kind = kind;
|
this.kind = kind;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -101,6 +103,9 @@ public class BigCatAllOf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this BigCat_allOf object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -118,7 +123,6 @@ public class BigCatAllOf {
|
|||||||
return Objects.hash(kind);
|
return Objects.hash(kind);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Capitalization
|
* Capitalization
|
||||||
@ -35,7 +39,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS,
|
Capitalization.JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS,
|
||||||
Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E
|
Capitalization.JSON_PROPERTY_A_T_T_N_A_M_E
|
||||||
})
|
})
|
||||||
@JsonTypeName("Capitalization")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class Capitalization {
|
public class Capitalization {
|
||||||
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
|
public static final String JSON_PROPERTY_SMALL_CAMEL = "smallCamel";
|
||||||
@ -58,7 +61,6 @@ public class Capitalization {
|
|||||||
|
|
||||||
|
|
||||||
public Capitalization smallCamel(String smallCamel) {
|
public Capitalization smallCamel(String smallCamel) {
|
||||||
|
|
||||||
this.smallCamel = smallCamel;
|
this.smallCamel = smallCamel;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -83,7 +85,6 @@ public class Capitalization {
|
|||||||
|
|
||||||
|
|
||||||
public Capitalization capitalCamel(String capitalCamel) {
|
public Capitalization capitalCamel(String capitalCamel) {
|
||||||
|
|
||||||
this.capitalCamel = capitalCamel;
|
this.capitalCamel = capitalCamel;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -108,7 +109,6 @@ public class Capitalization {
|
|||||||
|
|
||||||
|
|
||||||
public Capitalization smallSnake(String smallSnake) {
|
public Capitalization smallSnake(String smallSnake) {
|
||||||
|
|
||||||
this.smallSnake = smallSnake;
|
this.smallSnake = smallSnake;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -133,7 +133,6 @@ public class Capitalization {
|
|||||||
|
|
||||||
|
|
||||||
public Capitalization capitalSnake(String capitalSnake) {
|
public Capitalization capitalSnake(String capitalSnake) {
|
||||||
|
|
||||||
this.capitalSnake = capitalSnake;
|
this.capitalSnake = capitalSnake;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -158,7 +157,6 @@ public class Capitalization {
|
|||||||
|
|
||||||
|
|
||||||
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
|
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
|
||||||
|
|
||||||
this.scAETHFlowPoints = scAETHFlowPoints;
|
this.scAETHFlowPoints = scAETHFlowPoints;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -183,7 +181,6 @@ public class Capitalization {
|
|||||||
|
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
@ -207,6 +204,9 @@ public class Capitalization {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Capitalization object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -229,7 +229,6 @@ public class Capitalization {
|
|||||||
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
|
return Objects.hash(smallCamel, capitalCamel, smallSnake, capitalSnake, scAETHFlowPoints, ATT_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -28,6 +30,8 @@ import org.openapitools.client.model.Animal;
|
|||||||
import org.openapitools.client.model.BigCat;
|
import org.openapitools.client.model.BigCat;
|
||||||
import org.openapitools.client.model.CatAllOf;
|
import org.openapitools.client.model.CatAllOf;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cat
|
* Cat
|
||||||
@ -35,7 +39,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
Cat.JSON_PROPERTY_DECLAWED
|
Cat.JSON_PROPERTY_DECLAWED
|
||||||
})
|
})
|
||||||
@JsonTypeName("Cat")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||||
@JsonSubTypes({
|
@JsonSubTypes({
|
||||||
@ -48,7 +51,6 @@ public class Cat extends Animal {
|
|||||||
|
|
||||||
|
|
||||||
public Cat declawed(Boolean declawed) {
|
public Cat declawed(Boolean declawed) {
|
||||||
|
|
||||||
this.declawed = declawed;
|
this.declawed = declawed;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -72,6 +74,9 @@ public class Cat extends Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Cat object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -90,7 +95,6 @@ public class Cat extends Animal {
|
|||||||
return Objects.hash(declawed, super.hashCode());
|
return Objects.hash(declawed, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
@ -112,5 +116,12 @@ public class Cat extends Animal {
|
|||||||
return o.toString().replace("\n", "\n ");
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static {
|
||||||
|
// Initialize and register the discriminator mappings.
|
||||||
|
Map<String, Class<?>> mappings = new HashMap<String, Class<?>>();
|
||||||
|
mappings.put("BigCat", BigCat.class);
|
||||||
|
mappings.put("Cat", Cat.class);
|
||||||
|
JSON.registerDiscriminator(Cat.class, "className", mappings);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* CatAllOf
|
* CatAllOf
|
||||||
@ -30,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
CatAllOf.JSON_PROPERTY_DECLAWED
|
CatAllOf.JSON_PROPERTY_DECLAWED
|
||||||
})
|
})
|
||||||
@JsonTypeName("Cat_allOf")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class CatAllOf {
|
public class CatAllOf {
|
||||||
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
public static final String JSON_PROPERTY_DECLAWED = "declawed";
|
||||||
@ -38,7 +41,6 @@ public class CatAllOf {
|
|||||||
|
|
||||||
|
|
||||||
public CatAllOf declawed(Boolean declawed) {
|
public CatAllOf declawed(Boolean declawed) {
|
||||||
|
|
||||||
this.declawed = declawed;
|
this.declawed = declawed;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -62,6 +64,9 @@ public class CatAllOf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Cat_allOf object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -79,7 +84,6 @@ public class CatAllOf {
|
|||||||
return Objects.hash(declawed);
|
return Objects.hash(declawed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Category
|
* Category
|
||||||
@ -31,7 +35,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
Category.JSON_PROPERTY_ID,
|
Category.JSON_PROPERTY_ID,
|
||||||
Category.JSON_PROPERTY_NAME
|
Category.JSON_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("Category")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class Category {
|
public class Category {
|
||||||
public static final String JSON_PROPERTY_ID = "id";
|
public static final String JSON_PROPERTY_ID = "id";
|
||||||
@ -42,7 +45,6 @@ public class Category {
|
|||||||
|
|
||||||
|
|
||||||
public Category id(Long id) {
|
public Category id(Long id) {
|
||||||
|
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -67,7 +69,6 @@ public class Category {
|
|||||||
|
|
||||||
|
|
||||||
public Category name(String name) {
|
public Category name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -90,6 +91,9 @@ public class Category {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Category object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -108,7 +112,6 @@ public class Category {
|
|||||||
return Objects.hash(id, name);
|
return Objects.hash(id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model for testing model with \"_class\" property
|
* Model for testing model with \"_class\" property
|
||||||
@ -31,7 +35,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
ClassModel.JSON_PROPERTY_PROPERTY_CLASS
|
ClassModel.JSON_PROPERTY_PROPERTY_CLASS
|
||||||
})
|
})
|
||||||
@JsonTypeName("ClassModel")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class ClassModel {
|
public class ClassModel {
|
||||||
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
|
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
|
||||||
@ -39,7 +42,6 @@ public class ClassModel {
|
|||||||
|
|
||||||
|
|
||||||
public ClassModel propertyClass(String propertyClass) {
|
public ClassModel propertyClass(String propertyClass) {
|
||||||
|
|
||||||
this.propertyClass = propertyClass;
|
this.propertyClass = propertyClass;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -63,6 +65,9 @@ public class ClassModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this ClassModel object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -80,7 +85,6 @@ public class ClassModel {
|
|||||||
return Objects.hash(propertyClass);
|
return Objects.hash(propertyClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Client
|
* Client
|
||||||
@ -30,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
Client.JSON_PROPERTY_CLIENT
|
Client.JSON_PROPERTY_CLIENT
|
||||||
})
|
})
|
||||||
@JsonTypeName("Client")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class Client {
|
public class Client {
|
||||||
public static final String JSON_PROPERTY_CLIENT = "client";
|
public static final String JSON_PROPERTY_CLIENT = "client";
|
||||||
@ -38,7 +41,6 @@ public class Client {
|
|||||||
|
|
||||||
|
|
||||||
public Client client(String client) {
|
public Client client(String client) {
|
||||||
|
|
||||||
this.client = client;
|
this.client = client;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -62,6 +64,9 @@ public class Client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Client object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -79,7 +84,6 @@ public class Client {
|
|||||||
return Objects.hash(client);
|
return Objects.hash(client);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -27,6 +29,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import org.openapitools.client.model.Animal;
|
import org.openapitools.client.model.Animal;
|
||||||
import org.openapitools.client.model.DogAllOf;
|
import org.openapitools.client.model.DogAllOf;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dog
|
* Dog
|
||||||
@ -34,7 +38,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
Dog.JSON_PROPERTY_BREED
|
Dog.JSON_PROPERTY_BREED
|
||||||
})
|
})
|
||||||
@JsonTypeName("Dog")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "className", visible = true)
|
||||||
|
|
||||||
@ -44,7 +47,6 @@ public class Dog extends Animal {
|
|||||||
|
|
||||||
|
|
||||||
public Dog breed(String breed) {
|
public Dog breed(String breed) {
|
||||||
|
|
||||||
this.breed = breed;
|
this.breed = breed;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -68,6 +70,9 @@ public class Dog extends Animal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Dog object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -86,7 +91,6 @@ public class Dog extends Animal {
|
|||||||
return Objects.hash(breed, super.hashCode());
|
return Objects.hash(breed, super.hashCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
@ -108,5 +112,11 @@ public class Dog extends Animal {
|
|||||||
return o.toString().replace("\n", "\n ");
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static {
|
||||||
|
// Initialize and register the discriminator mappings.
|
||||||
|
Map<String, Class<?>> mappings = new HashMap<String, Class<?>>();
|
||||||
|
mappings.put("Dog", Dog.class);
|
||||||
|
JSON.registerDiscriminator(Dog.class, "className", mappings);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DogAllOf
|
* DogAllOf
|
||||||
@ -30,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
DogAllOf.JSON_PROPERTY_BREED
|
DogAllOf.JSON_PROPERTY_BREED
|
||||||
})
|
})
|
||||||
@JsonTypeName("Dog_allOf")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class DogAllOf {
|
public class DogAllOf {
|
||||||
public static final String JSON_PROPERTY_BREED = "breed";
|
public static final String JSON_PROPERTY_BREED = "breed";
|
||||||
@ -38,7 +41,6 @@ public class DogAllOf {
|
|||||||
|
|
||||||
|
|
||||||
public DogAllOf breed(String breed) {
|
public DogAllOf breed(String breed) {
|
||||||
|
|
||||||
this.breed = breed;
|
this.breed = breed;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -62,6 +64,9 @@ public class DogAllOf {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Dog_allOf object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -79,7 +84,6 @@ public class DogAllOf {
|
|||||||
return Objects.hash(breed);
|
return Objects.hash(breed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -25,6 +27,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EnumArrays
|
* EnumArrays
|
||||||
@ -33,7 +37,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
EnumArrays.JSON_PROPERTY_JUST_SYMBOL,
|
EnumArrays.JSON_PROPERTY_JUST_SYMBOL,
|
||||||
EnumArrays.JSON_PROPERTY_ARRAY_ENUM
|
EnumArrays.JSON_PROPERTY_ARRAY_ENUM
|
||||||
})
|
})
|
||||||
@JsonTypeName("EnumArrays")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class EnumArrays {
|
public class EnumArrays {
|
||||||
/**
|
/**
|
||||||
@ -114,7 +117,6 @@ public class EnumArrays {
|
|||||||
|
|
||||||
|
|
||||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||||
|
|
||||||
this.justSymbol = justSymbol;
|
this.justSymbol = justSymbol;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -139,7 +141,6 @@ public class EnumArrays {
|
|||||||
|
|
||||||
|
|
||||||
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
||||||
|
|
||||||
this.arrayEnum = arrayEnum;
|
this.arrayEnum = arrayEnum;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -171,6 +172,9 @@ public class EnumArrays {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this EnumArrays object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -189,7 +193,6 @@ public class EnumArrays {
|
|||||||
return Objects.hash(justSymbol, arrayEnum);
|
return Objects.hash(justSymbol, arrayEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,7 +15,11 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -24,6 +26,8 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import org.openapitools.client.model.OuterEnum;
|
import org.openapitools.client.model.OuterEnum;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EnumTest
|
* EnumTest
|
||||||
@ -35,7 +39,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
EnumTest.JSON_PROPERTY_ENUM_NUMBER,
|
EnumTest.JSON_PROPERTY_ENUM_NUMBER,
|
||||||
EnumTest.JSON_PROPERTY_OUTER_ENUM
|
EnumTest.JSON_PROPERTY_OUTER_ENUM
|
||||||
})
|
})
|
||||||
@JsonTypeName("Enum_Test")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class EnumTest {
|
public class EnumTest {
|
||||||
/**
|
/**
|
||||||
@ -199,7 +202,6 @@ public class EnumTest {
|
|||||||
|
|
||||||
|
|
||||||
public EnumTest enumString(EnumStringEnum enumString) {
|
public EnumTest enumString(EnumStringEnum enumString) {
|
||||||
|
|
||||||
this.enumString = enumString;
|
this.enumString = enumString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -224,7 +226,6 @@ public class EnumTest {
|
|||||||
|
|
||||||
|
|
||||||
public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
|
public EnumTest enumStringRequired(EnumStringRequiredEnum enumStringRequired) {
|
||||||
|
|
||||||
this.enumStringRequired = enumStringRequired;
|
this.enumStringRequired = enumStringRequired;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -248,7 +249,6 @@ public class EnumTest {
|
|||||||
|
|
||||||
|
|
||||||
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
||||||
|
|
||||||
this.enumInteger = enumInteger;
|
this.enumInteger = enumInteger;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -273,7 +273,6 @@ public class EnumTest {
|
|||||||
|
|
||||||
|
|
||||||
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
||||||
|
|
||||||
this.enumNumber = enumNumber;
|
this.enumNumber = enumNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -298,7 +297,6 @@ public class EnumTest {
|
|||||||
|
|
||||||
|
|
||||||
public EnumTest outerEnum(OuterEnum outerEnum) {
|
public EnumTest outerEnum(OuterEnum outerEnum) {
|
||||||
|
|
||||||
this.outerEnum = outerEnum;
|
this.outerEnum = outerEnum;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -322,6 +320,9 @@ public class EnumTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Enum_Test object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -343,7 +344,6 @@ public class EnumTest {
|
|||||||
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
|
return Objects.hash(enumString, enumStringRequired, enumInteger, enumNumber, outerEnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -25,6 +27,8 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FileSchemaTestClass
|
* FileSchemaTestClass
|
||||||
@ -33,7 +37,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
FileSchemaTestClass.JSON_PROPERTY_FILE,
|
FileSchemaTestClass.JSON_PROPERTY_FILE,
|
||||||
FileSchemaTestClass.JSON_PROPERTY_FILES
|
FileSchemaTestClass.JSON_PROPERTY_FILES
|
||||||
})
|
})
|
||||||
@JsonTypeName("FileSchemaTestClass")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class FileSchemaTestClass {
|
public class FileSchemaTestClass {
|
||||||
public static final String JSON_PROPERTY_FILE = "file";
|
public static final String JSON_PROPERTY_FILE = "file";
|
||||||
@ -44,7 +47,6 @@ public class FileSchemaTestClass {
|
|||||||
|
|
||||||
|
|
||||||
public FileSchemaTestClass file(java.io.File file) {
|
public FileSchemaTestClass file(java.io.File file) {
|
||||||
|
|
||||||
this.file = file;
|
this.file = file;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -69,7 +71,6 @@ public class FileSchemaTestClass {
|
|||||||
|
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
@ -101,6 +102,9 @@ public class FileSchemaTestClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this FileSchemaTestClass object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -119,7 +123,6 @@ public class FileSchemaTestClass {
|
|||||||
return Objects.hash(file, files);
|
return Objects.hash(file, files);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -28,6 +30,8 @@ import java.time.LocalDate;
|
|||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* FormatTest
|
* FormatTest
|
||||||
@ -48,7 +52,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
FormatTest.JSON_PROPERTY_PASSWORD,
|
FormatTest.JSON_PROPERTY_PASSWORD,
|
||||||
FormatTest.JSON_PROPERTY_BIG_DECIMAL
|
FormatTest.JSON_PROPERTY_BIG_DECIMAL
|
||||||
})
|
})
|
||||||
@JsonTypeName("format_test")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class FormatTest {
|
public class FormatTest {
|
||||||
public static final String JSON_PROPERTY_INTEGER = "integer";
|
public static final String JSON_PROPERTY_INTEGER = "integer";
|
||||||
@ -95,7 +98,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest integer(Integer integer) {
|
public FormatTest integer(Integer integer) {
|
||||||
|
|
||||||
this.integer = integer;
|
this.integer = integer;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -122,7 +124,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest int32(Integer int32) {
|
public FormatTest int32(Integer int32) {
|
||||||
|
|
||||||
this.int32 = int32;
|
this.int32 = int32;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -149,7 +150,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest int64(Long int64) {
|
public FormatTest int64(Long int64) {
|
||||||
|
|
||||||
this.int64 = int64;
|
this.int64 = int64;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -174,7 +174,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest number(BigDecimal number) {
|
public FormatTest number(BigDecimal number) {
|
||||||
|
|
||||||
this.number = number;
|
this.number = number;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -200,7 +199,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest _float(Float _float) {
|
public FormatTest _float(Float _float) {
|
||||||
|
|
||||||
this._float = _float;
|
this._float = _float;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -227,7 +225,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest _double(Double _double) {
|
public FormatTest _double(Double _double) {
|
||||||
|
|
||||||
this._double = _double;
|
this._double = _double;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -254,7 +251,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest string(String string) {
|
public FormatTest string(String string) {
|
||||||
|
|
||||||
this.string = string;
|
this.string = string;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -279,7 +275,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest _byte(byte[] _byte) {
|
public FormatTest _byte(byte[] _byte) {
|
||||||
|
|
||||||
this._byte = _byte;
|
this._byte = _byte;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -303,7 +298,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest binary(File binary) {
|
public FormatTest binary(File binary) {
|
||||||
|
|
||||||
this.binary = binary;
|
this.binary = binary;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -328,7 +322,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest date(LocalDate date) {
|
public FormatTest date(LocalDate date) {
|
||||||
|
|
||||||
this.date = date;
|
this.date = date;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -352,7 +345,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest dateTime(OffsetDateTime dateTime) {
|
public FormatTest dateTime(OffsetDateTime dateTime) {
|
||||||
|
|
||||||
this.dateTime = dateTime;
|
this.dateTime = dateTime;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -377,7 +369,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest uuid(UUID uuid) {
|
public FormatTest uuid(UUID uuid) {
|
||||||
|
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -402,7 +393,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest password(String password) {
|
public FormatTest password(String password) {
|
||||||
|
|
||||||
this.password = password;
|
this.password = password;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -426,7 +416,6 @@ public class FormatTest {
|
|||||||
|
|
||||||
|
|
||||||
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
public FormatTest bigDecimal(BigDecimal bigDecimal) {
|
||||||
|
|
||||||
this.bigDecimal = bigDecimal;
|
this.bigDecimal = bigDecimal;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -450,6 +439,9 @@ public class FormatTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this format_test object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -480,7 +472,6 @@ public class FormatTest {
|
|||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, bigDecimal);
|
return Objects.hash(integer, int32, int64, number, _float, _double, string, Arrays.hashCode(_byte), binary, date, dateTime, uuid, password, bigDecimal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* HasOnlyReadOnly
|
* HasOnlyReadOnly
|
||||||
@ -31,7 +35,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
HasOnlyReadOnly.JSON_PROPERTY_BAR,
|
HasOnlyReadOnly.JSON_PROPERTY_BAR,
|
||||||
HasOnlyReadOnly.JSON_PROPERTY_FOO
|
HasOnlyReadOnly.JSON_PROPERTY_FOO
|
||||||
})
|
})
|
||||||
@JsonTypeName("hasOnlyReadOnly")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class HasOnlyReadOnly {
|
public class HasOnlyReadOnly {
|
||||||
public static final String JSON_PROPERTY_BAR = "bar";
|
public static final String JSON_PROPERTY_BAR = "bar";
|
||||||
@ -73,6 +76,9 @@ public class HasOnlyReadOnly {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this hasOnlyReadOnly object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -91,7 +97,6 @@ public class HasOnlyReadOnly {
|
|||||||
return Objects.hash(bar, foo);
|
return Objects.hash(bar, foo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -26,6 +28,8 @@ import java.util.HashMap;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -36,7 +40,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
MapTest.JSON_PROPERTY_DIRECT_MAP,
|
MapTest.JSON_PROPERTY_DIRECT_MAP,
|
||||||
MapTest.JSON_PROPERTY_INDIRECT_MAP
|
MapTest.JSON_PROPERTY_INDIRECT_MAP
|
||||||
})
|
})
|
||||||
@JsonTypeName("MapTest")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -88,19 +91,10 @@ public class MapTest {
|
|||||||
|
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
|
||||||
if (this.mapMapOfString == null) {
|
|
||||||
this.mapMapOfString = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapMapOfString
|
* Get mapMapOfString
|
||||||
* @return mapMapOfString
|
* @return mapMapOfString
|
||||||
@ -121,19 +115,10 @@ public class MapTest {
|
|||||||
|
|
||||||
|
|
||||||
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
||||||
|
|
||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
|
||||||
if (this.mapOfEnumString == null) {
|
|
||||||
this.mapOfEnumString = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get mapOfEnumString
|
* Get mapOfEnumString
|
||||||
* @return mapOfEnumString
|
* @return mapOfEnumString
|
||||||
@ -154,19 +139,10 @@ public class MapTest {
|
|||||||
|
|
||||||
|
|
||||||
public MapTest directMap(Map<String, Boolean> directMap) {
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
|
||||||
this.directMap = directMap;
|
this.directMap = directMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
|
||||||
if (this.directMap == null) {
|
|
||||||
this.directMap = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.directMap.put(key, directMapItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get directMap
|
* Get directMap
|
||||||
* @return directMap
|
* @return directMap
|
||||||
@ -187,19 +163,10 @@ public class MapTest {
|
|||||||
|
|
||||||
|
|
||||||
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
public MapTest indirectMap(Map<String, Boolean> indirectMap) {
|
||||||
|
|
||||||
this.indirectMap = indirectMap;
|
this.indirectMap = indirectMap;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapTest putIndirectMapItem(String key, Boolean indirectMapItem) {
|
|
||||||
if (this.indirectMap == null) {
|
|
||||||
this.indirectMap = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.indirectMap.put(key, indirectMapItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get indirectMap
|
* Get indirectMap
|
||||||
* @return indirectMap
|
* @return indirectMap
|
||||||
@ -219,6 +186,9 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this MapTest object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -239,7 +209,6 @@ public class MapTest {
|
|||||||
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -29,6 +31,8 @@ import java.util.Map;
|
|||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import org.openapitools.client.model.Animal;
|
import org.openapitools.client.model.Animal;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MixedPropertiesAndAdditionalPropertiesClass
|
* MixedPropertiesAndAdditionalPropertiesClass
|
||||||
@ -38,7 +42,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME,
|
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_DATE_TIME,
|
||||||
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP
|
MixedPropertiesAndAdditionalPropertiesClass.JSON_PROPERTY_MAP
|
||||||
})
|
})
|
||||||
@JsonTypeName("MixedPropertiesAndAdditionalPropertiesClass")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
public static final String JSON_PROPERTY_UUID = "uuid";
|
public static final String JSON_PROPERTY_UUID = "uuid";
|
||||||
@ -52,7 +55,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||||
|
|
||||||
this.uuid = uuid;
|
this.uuid = uuid;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -77,7 +79,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
|
public MixedPropertiesAndAdditionalPropertiesClass dateTime(OffsetDateTime dateTime) {
|
||||||
|
|
||||||
this.dateTime = dateTime;
|
this.dateTime = dateTime;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -102,19 +103,10 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
|
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
|
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
|
||||||
|
|
||||||
this.map = map;
|
this.map = map;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
|
||||||
if (this.map == null) {
|
|
||||||
this.map = new HashMap<>();
|
|
||||||
}
|
|
||||||
this.map.put(key, mapItem);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get map
|
* Get map
|
||||||
* @return map
|
* @return map
|
||||||
@ -134,6 +126,9 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this MixedPropertiesAndAdditionalPropertiesClass object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -153,7 +148,6 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
|||||||
return Objects.hash(uuid, dateTime, map);
|
return Objects.hash(uuid, dateTime, map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model for testing model name starting with number
|
* Model for testing model name starting with number
|
||||||
@ -32,7 +36,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
Model200Response.JSON_PROPERTY_NAME,
|
Model200Response.JSON_PROPERTY_NAME,
|
||||||
Model200Response.JSON_PROPERTY_PROPERTY_CLASS
|
Model200Response.JSON_PROPERTY_PROPERTY_CLASS
|
||||||
})
|
})
|
||||||
@JsonTypeName("200_response")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class Model200Response {
|
public class Model200Response {
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
public static final String JSON_PROPERTY_NAME = "name";
|
||||||
@ -43,7 +46,6 @@ public class Model200Response {
|
|||||||
|
|
||||||
|
|
||||||
public Model200Response name(Integer name) {
|
public Model200Response name(Integer name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -68,7 +70,6 @@ public class Model200Response {
|
|||||||
|
|
||||||
|
|
||||||
public Model200Response propertyClass(String propertyClass) {
|
public Model200Response propertyClass(String propertyClass) {
|
||||||
|
|
||||||
this.propertyClass = propertyClass;
|
this.propertyClass = propertyClass;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -92,6 +93,9 @@ public class Model200Response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this 200_response object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -110,7 +114,6 @@ public class Model200Response {
|
|||||||
return Objects.hash(name, propertyClass);
|
return Objects.hash(name, propertyClass);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ModelApiResponse
|
* ModelApiResponse
|
||||||
@ -32,7 +36,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
ModelApiResponse.JSON_PROPERTY_TYPE,
|
ModelApiResponse.JSON_PROPERTY_TYPE,
|
||||||
ModelApiResponse.JSON_PROPERTY_MESSAGE
|
ModelApiResponse.JSON_PROPERTY_MESSAGE
|
||||||
})
|
})
|
||||||
@JsonTypeName("ApiResponse")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class ModelApiResponse {
|
public class ModelApiResponse {
|
||||||
public static final String JSON_PROPERTY_CODE = "code";
|
public static final String JSON_PROPERTY_CODE = "code";
|
||||||
@ -46,7 +49,6 @@ public class ModelApiResponse {
|
|||||||
|
|
||||||
|
|
||||||
public ModelApiResponse code(Integer code) {
|
public ModelApiResponse code(Integer code) {
|
||||||
|
|
||||||
this.code = code;
|
this.code = code;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -71,7 +73,6 @@ public class ModelApiResponse {
|
|||||||
|
|
||||||
|
|
||||||
public ModelApiResponse type(String type) {
|
public ModelApiResponse type(String type) {
|
||||||
|
|
||||||
this.type = type;
|
this.type = type;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -96,7 +97,6 @@ public class ModelApiResponse {
|
|||||||
|
|
||||||
|
|
||||||
public ModelApiResponse message(String message) {
|
public ModelApiResponse message(String message) {
|
||||||
|
|
||||||
this.message = message;
|
this.message = message;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -120,6 +120,9 @@ public class ModelApiResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this ApiResponse object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -139,7 +142,6 @@ public class ModelApiResponse {
|
|||||||
return Objects.hash(code, type, message);
|
return Objects.hash(code, type, message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model for testing reserved words
|
* Model for testing reserved words
|
||||||
@ -31,7 +35,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
ModelReturn.JSON_PROPERTY_RETURN
|
ModelReturn.JSON_PROPERTY_RETURN
|
||||||
})
|
})
|
||||||
@JsonTypeName("Return")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class ModelReturn {
|
public class ModelReturn {
|
||||||
public static final String JSON_PROPERTY_RETURN = "return";
|
public static final String JSON_PROPERTY_RETURN = "return";
|
||||||
@ -39,7 +42,6 @@ public class ModelReturn {
|
|||||||
|
|
||||||
|
|
||||||
public ModelReturn _return(Integer _return) {
|
public ModelReturn _return(Integer _return) {
|
||||||
|
|
||||||
this._return = _return;
|
this._return = _return;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -63,6 +65,9 @@ public class ModelReturn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Return object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -80,7 +85,6 @@ public class ModelReturn {
|
|||||||
return Objects.hash(_return);
|
return Objects.hash(_return);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model for testing model name same as property name
|
* Model for testing model name same as property name
|
||||||
@ -34,7 +38,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
Name.JSON_PROPERTY_PROPERTY,
|
Name.JSON_PROPERTY_PROPERTY,
|
||||||
Name.JSON_PROPERTY_123NUMBER
|
Name.JSON_PROPERTY_123NUMBER
|
||||||
})
|
})
|
||||||
@JsonTypeName("Name")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class Name {
|
public class Name {
|
||||||
public static final String JSON_PROPERTY_NAME = "name";
|
public static final String JSON_PROPERTY_NAME = "name";
|
||||||
@ -51,7 +54,6 @@ public class Name {
|
|||||||
|
|
||||||
|
|
||||||
public Name name(Integer name) {
|
public Name name(Integer name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -91,7 +93,6 @@ public class Name {
|
|||||||
|
|
||||||
|
|
||||||
public Name property(String property) {
|
public Name property(String property) {
|
||||||
|
|
||||||
this.property = property;
|
this.property = property;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -131,6 +132,9 @@ public class Name {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Name object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -151,7 +155,6 @@ public class Name {
|
|||||||
return Objects.hash(name, snakeCase, property, _123number);
|
return Objects.hash(name, snakeCase, property, _123number);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -24,6 +26,8 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NumberOnly
|
* NumberOnly
|
||||||
@ -31,7 +35,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
NumberOnly.JSON_PROPERTY_JUST_NUMBER
|
NumberOnly.JSON_PROPERTY_JUST_NUMBER
|
||||||
})
|
})
|
||||||
@JsonTypeName("NumberOnly")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class NumberOnly {
|
public class NumberOnly {
|
||||||
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
|
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
|
||||||
@ -39,7 +42,6 @@ public class NumberOnly {
|
|||||||
|
|
||||||
|
|
||||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||||
|
|
||||||
this.justNumber = justNumber;
|
this.justNumber = justNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -63,6 +65,9 @@ public class NumberOnly {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this NumberOnly object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -80,7 +85,6 @@ public class NumberOnly {
|
|||||||
return Objects.hash(justNumber);
|
return Objects.hash(justNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -24,6 +26,8 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.time.OffsetDateTime;
|
import java.time.OffsetDateTime;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order
|
* Order
|
||||||
@ -36,7 +40,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
Order.JSON_PROPERTY_STATUS,
|
Order.JSON_PROPERTY_STATUS,
|
||||||
Order.JSON_PROPERTY_COMPLETE
|
Order.JSON_PROPERTY_COMPLETE
|
||||||
})
|
})
|
||||||
@JsonTypeName("Order")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class Order {
|
public class Order {
|
||||||
public static final String JSON_PROPERTY_ID = "id";
|
public static final String JSON_PROPERTY_ID = "id";
|
||||||
@ -96,7 +99,6 @@ public class Order {
|
|||||||
|
|
||||||
|
|
||||||
public Order id(Long id) {
|
public Order id(Long id) {
|
||||||
|
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -121,7 +123,6 @@ public class Order {
|
|||||||
|
|
||||||
|
|
||||||
public Order petId(Long petId) {
|
public Order petId(Long petId) {
|
||||||
|
|
||||||
this.petId = petId;
|
this.petId = petId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -146,7 +147,6 @@ public class Order {
|
|||||||
|
|
||||||
|
|
||||||
public Order quantity(Integer quantity) {
|
public Order quantity(Integer quantity) {
|
||||||
|
|
||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -171,7 +171,6 @@ public class Order {
|
|||||||
|
|
||||||
|
|
||||||
public Order shipDate(OffsetDateTime shipDate) {
|
public Order shipDate(OffsetDateTime shipDate) {
|
||||||
|
|
||||||
this.shipDate = shipDate;
|
this.shipDate = shipDate;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -196,7 +195,6 @@ public class Order {
|
|||||||
|
|
||||||
|
|
||||||
public Order status(StatusEnum status) {
|
public Order status(StatusEnum status) {
|
||||||
|
|
||||||
this.status = status;
|
this.status = status;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -221,7 +219,6 @@ public class Order {
|
|||||||
|
|
||||||
|
|
||||||
public Order complete(Boolean complete) {
|
public Order complete(Boolean complete) {
|
||||||
|
|
||||||
this.complete = complete;
|
this.complete = complete;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -245,6 +242,9 @@ public class Order {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Order object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -267,7 +267,6 @@ public class Order {
|
|||||||
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -24,6 +26,8 @@ import io.swagger.annotations.ApiModel;
|
|||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* OuterComposite
|
* OuterComposite
|
||||||
@ -33,7 +37,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
OuterComposite.JSON_PROPERTY_MY_STRING,
|
OuterComposite.JSON_PROPERTY_MY_STRING,
|
||||||
OuterComposite.JSON_PROPERTY_MY_BOOLEAN
|
OuterComposite.JSON_PROPERTY_MY_BOOLEAN
|
||||||
})
|
})
|
||||||
@JsonTypeName("OuterComposite")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -47,7 +50,6 @@ public class OuterComposite {
|
|||||||
|
|
||||||
|
|
||||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||||
|
|
||||||
this.myNumber = myNumber;
|
this.myNumber = myNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -72,7 +74,6 @@ public class OuterComposite {
|
|||||||
|
|
||||||
|
|
||||||
public OuterComposite myString(String myString) {
|
public OuterComposite myString(String myString) {
|
||||||
|
|
||||||
this.myString = myString;
|
this.myString = myString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -97,7 +98,6 @@ public class OuterComposite {
|
|||||||
|
|
||||||
|
|
||||||
public OuterComposite myBoolean(Boolean myBoolean) {
|
public OuterComposite myBoolean(Boolean myBoolean) {
|
||||||
|
|
||||||
this.myBoolean = myBoolean;
|
this.myBoolean = myBoolean;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -121,6 +121,9 @@ public class OuterComposite {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this OuterComposite object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -140,7 +143,6 @@ public class OuterComposite {
|
|||||||
return Objects.hash(myNumber, myString, myBoolean);
|
return Objects.hash(myNumber, myString, myBoolean);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,7 +15,11 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -29,6 +31,8 @@ import java.util.Set;
|
|||||||
import org.openapitools.client.model.Category;
|
import org.openapitools.client.model.Category;
|
||||||
import org.openapitools.client.model.Tag;
|
import org.openapitools.client.model.Tag;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pet
|
* Pet
|
||||||
@ -41,7 +45,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
Pet.JSON_PROPERTY_TAGS,
|
Pet.JSON_PROPERTY_TAGS,
|
||||||
Pet.JSON_PROPERTY_STATUS
|
Pet.JSON_PROPERTY_STATUS
|
||||||
})
|
})
|
||||||
@JsonTypeName("Pet")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class Pet {
|
public class Pet {
|
||||||
public static final String JSON_PROPERTY_ID = "id";
|
public static final String JSON_PROPERTY_ID = "id";
|
||||||
@ -101,7 +104,6 @@ public class Pet {
|
|||||||
|
|
||||||
|
|
||||||
public Pet id(Long id) {
|
public Pet id(Long id) {
|
||||||
|
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -126,7 +128,6 @@ public class Pet {
|
|||||||
|
|
||||||
|
|
||||||
public Pet category(Category category) {
|
public Pet category(Category category) {
|
||||||
|
|
||||||
this.category = category;
|
this.category = category;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -151,7 +152,6 @@ public class Pet {
|
|||||||
|
|
||||||
|
|
||||||
public Pet name(String name) {
|
public Pet name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -175,7 +175,6 @@ public class Pet {
|
|||||||
|
|
||||||
|
|
||||||
public Pet photoUrls(Set<String> photoUrls) {
|
public Pet photoUrls(Set<String> photoUrls) {
|
||||||
|
|
||||||
this.photoUrls = photoUrls;
|
this.photoUrls = photoUrls;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -204,7 +203,6 @@ public class Pet {
|
|||||||
|
|
||||||
|
|
||||||
public Pet tags(List<Tag> tags) {
|
public Pet tags(List<Tag> tags) {
|
||||||
|
|
||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -237,7 +235,6 @@ public class Pet {
|
|||||||
|
|
||||||
|
|
||||||
public Pet status(StatusEnum status) {
|
public Pet status(StatusEnum status) {
|
||||||
|
|
||||||
this.status = status;
|
this.status = status;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -261,6 +258,9 @@ public class Pet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Pet object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -283,7 +283,6 @@ public class Pet {
|
|||||||
return Objects.hash(id, category, name, photoUrls, tags, status);
|
return Objects.hash(id, category, name, photoUrls, tags, status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ReadOnlyFirst
|
* ReadOnlyFirst
|
||||||
@ -31,7 +35,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
ReadOnlyFirst.JSON_PROPERTY_BAR,
|
ReadOnlyFirst.JSON_PROPERTY_BAR,
|
||||||
ReadOnlyFirst.JSON_PROPERTY_BAZ
|
ReadOnlyFirst.JSON_PROPERTY_BAZ
|
||||||
})
|
})
|
||||||
@JsonTypeName("ReadOnlyFirst")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class ReadOnlyFirst {
|
public class ReadOnlyFirst {
|
||||||
public static final String JSON_PROPERTY_BAR = "bar";
|
public static final String JSON_PROPERTY_BAR = "bar";
|
||||||
@ -58,7 +61,6 @@ public class ReadOnlyFirst {
|
|||||||
|
|
||||||
|
|
||||||
public ReadOnlyFirst baz(String baz) {
|
public ReadOnlyFirst baz(String baz) {
|
||||||
|
|
||||||
this.baz = baz;
|
this.baz = baz;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -82,6 +84,9 @@ public class ReadOnlyFirst {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this ReadOnlyFirst object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -100,7 +105,6 @@ public class ReadOnlyFirst {
|
|||||||
return Objects.hash(bar, baz);
|
return Objects.hash(bar, baz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SpecialModelName
|
* SpecialModelName
|
||||||
@ -30,7 +34,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
@JsonPropertyOrder({
|
@JsonPropertyOrder({
|
||||||
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
|
SpecialModelName.JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("$special[model.name]")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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]";
|
||||||
@ -38,7 +41,6 @@ public class SpecialModelName {
|
|||||||
|
|
||||||
|
|
||||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||||
|
|
||||||
this.$specialPropertyName = $specialPropertyName;
|
this.$specialPropertyName = $specialPropertyName;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -62,6 +64,9 @@ public class SpecialModelName {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this $special[model.name] object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -79,7 +84,6 @@ public class SpecialModelName {
|
|||||||
return Objects.hash($specialPropertyName);
|
return Objects.hash($specialPropertyName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tag
|
* Tag
|
||||||
@ -31,7 +35,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
Tag.JSON_PROPERTY_ID,
|
Tag.JSON_PROPERTY_ID,
|
||||||
Tag.JSON_PROPERTY_NAME
|
Tag.JSON_PROPERTY_NAME
|
||||||
})
|
})
|
||||||
@JsonTypeName("Tag")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class Tag {
|
public class Tag {
|
||||||
public static final String JSON_PROPERTY_ID = "id";
|
public static final String JSON_PROPERTY_ID = "id";
|
||||||
@ -42,7 +45,6 @@ public class Tag {
|
|||||||
|
|
||||||
|
|
||||||
public Tag id(Long id) {
|
public Tag id(Long id) {
|
||||||
|
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -67,7 +69,6 @@ public class Tag {
|
|||||||
|
|
||||||
|
|
||||||
public Tag name(String name) {
|
public Tag name(String name) {
|
||||||
|
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -91,6 +92,9 @@ public class Tag {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this Tag object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -109,7 +113,6 @@ public class Tag {
|
|||||||
return Objects.hash(id, name);
|
return Objects.hash(id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -26,6 +28,8 @@ import java.math.BigDecimal;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TypeHolderDefault
|
* TypeHolderDefault
|
||||||
@ -37,7 +41,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
TypeHolderDefault.JSON_PROPERTY_BOOL_ITEM,
|
TypeHolderDefault.JSON_PROPERTY_BOOL_ITEM,
|
||||||
TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM
|
TypeHolderDefault.JSON_PROPERTY_ARRAY_ITEM
|
||||||
})
|
})
|
||||||
@JsonTypeName("TypeHolderDefault")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -57,7 +60,6 @@ public class TypeHolderDefault {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderDefault stringItem(String stringItem) {
|
public TypeHolderDefault stringItem(String stringItem) {
|
||||||
|
|
||||||
this.stringItem = stringItem;
|
this.stringItem = stringItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -81,7 +83,6 @@ public class TypeHolderDefault {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderDefault numberItem(BigDecimal numberItem) {
|
public TypeHolderDefault numberItem(BigDecimal numberItem) {
|
||||||
|
|
||||||
this.numberItem = numberItem;
|
this.numberItem = numberItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -105,7 +106,6 @@ public class TypeHolderDefault {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderDefault integerItem(Integer integerItem) {
|
public TypeHolderDefault integerItem(Integer integerItem) {
|
||||||
|
|
||||||
this.integerItem = integerItem;
|
this.integerItem = integerItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -129,7 +129,6 @@ public class TypeHolderDefault {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderDefault boolItem(Boolean boolItem) {
|
public TypeHolderDefault boolItem(Boolean boolItem) {
|
||||||
|
|
||||||
this.boolItem = boolItem;
|
this.boolItem = boolItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -153,7 +152,6 @@ public class TypeHolderDefault {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderDefault arrayItem(List<Integer> arrayItem) {
|
public TypeHolderDefault arrayItem(List<Integer> arrayItem) {
|
||||||
|
|
||||||
this.arrayItem = arrayItem;
|
this.arrayItem = arrayItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -181,6 +179,9 @@ public class TypeHolderDefault {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this TypeHolderDefault object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -202,7 +203,6 @@ public class TypeHolderDefault {
|
|||||||
return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
|
return Objects.hash(stringItem, numberItem, integerItem, boolItem, arrayItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -26,6 +28,8 @@ import java.math.BigDecimal;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TypeHolderExample
|
* TypeHolderExample
|
||||||
@ -38,7 +42,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
|
TypeHolderExample.JSON_PROPERTY_BOOL_ITEM,
|
||||||
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
|
TypeHolderExample.JSON_PROPERTY_ARRAY_ITEM
|
||||||
})
|
})
|
||||||
@JsonTypeName("TypeHolderExample")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -61,7 +64,6 @@ public class TypeHolderExample {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderExample stringItem(String stringItem) {
|
public TypeHolderExample stringItem(String stringItem) {
|
||||||
|
|
||||||
this.stringItem = stringItem;
|
this.stringItem = stringItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -85,7 +87,6 @@ public class TypeHolderExample {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderExample numberItem(BigDecimal numberItem) {
|
public TypeHolderExample numberItem(BigDecimal numberItem) {
|
||||||
|
|
||||||
this.numberItem = numberItem;
|
this.numberItem = numberItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -109,7 +110,6 @@ public class TypeHolderExample {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderExample floatItem(Float floatItem) {
|
public TypeHolderExample floatItem(Float floatItem) {
|
||||||
|
|
||||||
this.floatItem = floatItem;
|
this.floatItem = floatItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -133,7 +133,6 @@ public class TypeHolderExample {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderExample integerItem(Integer integerItem) {
|
public TypeHolderExample integerItem(Integer integerItem) {
|
||||||
|
|
||||||
this.integerItem = integerItem;
|
this.integerItem = integerItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -157,7 +156,6 @@ public class TypeHolderExample {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderExample boolItem(Boolean boolItem) {
|
public TypeHolderExample boolItem(Boolean boolItem) {
|
||||||
|
|
||||||
this.boolItem = boolItem;
|
this.boolItem = boolItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -181,7 +179,6 @@ public class TypeHolderExample {
|
|||||||
|
|
||||||
|
|
||||||
public TypeHolderExample arrayItem(List<Integer> arrayItem) {
|
public TypeHolderExample arrayItem(List<Integer> arrayItem) {
|
||||||
|
|
||||||
this.arrayItem = arrayItem;
|
this.arrayItem = arrayItem;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -209,6 +206,9 @@ public class TypeHolderExample {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this TypeHolderExample object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -231,7 +231,6 @@ public class TypeHolderExample {
|
|||||||
return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
|
return Objects.hash(stringItem, numberItem, floatItem, integerItem, boolItem, arrayItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -23,6 +25,8 @@ import com.fasterxml.jackson.annotation.JsonValue;
|
|||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
@ -37,7 +41,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
User.JSON_PROPERTY_PHONE,
|
User.JSON_PROPERTY_PHONE,
|
||||||
User.JSON_PROPERTY_USER_STATUS
|
User.JSON_PROPERTY_USER_STATUS
|
||||||
})
|
})
|
||||||
@JsonTypeName("User")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
public class User {
|
public class User {
|
||||||
public static final String JSON_PROPERTY_ID = "id";
|
public static final String JSON_PROPERTY_ID = "id";
|
||||||
@ -66,7 +69,6 @@ public class User {
|
|||||||
|
|
||||||
|
|
||||||
public User id(Long id) {
|
public User id(Long id) {
|
||||||
|
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -91,7 +93,6 @@ public class User {
|
|||||||
|
|
||||||
|
|
||||||
public User username(String username) {
|
public User username(String username) {
|
||||||
|
|
||||||
this.username = username;
|
this.username = username;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -116,7 +117,6 @@ public class User {
|
|||||||
|
|
||||||
|
|
||||||
public User firstName(String firstName) {
|
public User firstName(String firstName) {
|
||||||
|
|
||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -141,7 +141,6 @@ public class User {
|
|||||||
|
|
||||||
|
|
||||||
public User lastName(String lastName) {
|
public User lastName(String lastName) {
|
||||||
|
|
||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -166,7 +165,6 @@ public class User {
|
|||||||
|
|
||||||
|
|
||||||
public User email(String email) {
|
public User email(String email) {
|
||||||
|
|
||||||
this.email = email;
|
this.email = email;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -191,7 +189,6 @@ public class User {
|
|||||||
|
|
||||||
|
|
||||||
public User password(String password) {
|
public User password(String password) {
|
||||||
|
|
||||||
this.password = password;
|
this.password = password;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -216,7 +213,6 @@ public class User {
|
|||||||
|
|
||||||
|
|
||||||
public User phone(String phone) {
|
public User phone(String phone) {
|
||||||
|
|
||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -241,7 +237,6 @@ public class User {
|
|||||||
|
|
||||||
|
|
||||||
public User userStatus(Integer userStatus) {
|
public User userStatus(Integer userStatus) {
|
||||||
|
|
||||||
this.userStatus = userStatus;
|
this.userStatus = userStatus;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -265,6 +260,9 @@ public class User {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this User object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -289,7 +287,6 @@ public class User {
|
|||||||
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -15,6 +15,8 @@ package org.openapitools.client.model;
|
|||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.util.HashMap;
|
||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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;
|
||||||
@ -26,6 +28,8 @@ import java.math.BigDecimal;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
|
import org.openapitools.client.JSON;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* XmlItem
|
* XmlItem
|
||||||
@ -61,7 +65,6 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
|||||||
XmlItem.JSON_PROPERTY_PREFIX_NS_ARRAY,
|
XmlItem.JSON_PROPERTY_PREFIX_NS_ARRAY,
|
||||||
XmlItem.JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY
|
XmlItem.JSON_PROPERTY_PREFIX_NS_WRAPPED_ARRAY
|
||||||
})
|
})
|
||||||
@JsonTypeName("XmlItem")
|
|
||||||
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
@javax.annotation.processing.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
|
||||||
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";
|
||||||
@ -153,7 +156,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem attributeString(String attributeString) {
|
public XmlItem attributeString(String attributeString) {
|
||||||
|
|
||||||
this.attributeString = attributeString;
|
this.attributeString = attributeString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -178,7 +180,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem attributeNumber(BigDecimal attributeNumber) {
|
public XmlItem attributeNumber(BigDecimal attributeNumber) {
|
||||||
|
|
||||||
this.attributeNumber = attributeNumber;
|
this.attributeNumber = attributeNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -203,7 +204,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem attributeInteger(Integer attributeInteger) {
|
public XmlItem attributeInteger(Integer attributeInteger) {
|
||||||
|
|
||||||
this.attributeInteger = attributeInteger;
|
this.attributeInteger = attributeInteger;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -228,7 +228,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem attributeBoolean(Boolean attributeBoolean) {
|
public XmlItem attributeBoolean(Boolean attributeBoolean) {
|
||||||
|
|
||||||
this.attributeBoolean = attributeBoolean;
|
this.attributeBoolean = attributeBoolean;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -253,7 +252,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem wrappedArray(List<Integer> wrappedArray) {
|
public XmlItem wrappedArray(List<Integer> wrappedArray) {
|
||||||
|
|
||||||
this.wrappedArray = wrappedArray;
|
this.wrappedArray = wrappedArray;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -286,7 +284,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem nameString(String nameString) {
|
public XmlItem nameString(String nameString) {
|
||||||
|
|
||||||
this.nameString = nameString;
|
this.nameString = nameString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -311,7 +308,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem nameNumber(BigDecimal nameNumber) {
|
public XmlItem nameNumber(BigDecimal nameNumber) {
|
||||||
|
|
||||||
this.nameNumber = nameNumber;
|
this.nameNumber = nameNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -336,7 +332,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem nameInteger(Integer nameInteger) {
|
public XmlItem nameInteger(Integer nameInteger) {
|
||||||
|
|
||||||
this.nameInteger = nameInteger;
|
this.nameInteger = nameInteger;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -361,7 +356,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem nameBoolean(Boolean nameBoolean) {
|
public XmlItem nameBoolean(Boolean nameBoolean) {
|
||||||
|
|
||||||
this.nameBoolean = nameBoolean;
|
this.nameBoolean = nameBoolean;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -386,7 +380,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem nameArray(List<Integer> nameArray) {
|
public XmlItem nameArray(List<Integer> nameArray) {
|
||||||
|
|
||||||
this.nameArray = nameArray;
|
this.nameArray = nameArray;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -419,7 +412,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem nameWrappedArray(List<Integer> nameWrappedArray) {
|
public XmlItem nameWrappedArray(List<Integer> nameWrappedArray) {
|
||||||
|
|
||||||
this.nameWrappedArray = nameWrappedArray;
|
this.nameWrappedArray = nameWrappedArray;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -452,7 +444,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixString(String prefixString) {
|
public XmlItem prefixString(String prefixString) {
|
||||||
|
|
||||||
this.prefixString = prefixString;
|
this.prefixString = prefixString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -477,7 +468,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixNumber(BigDecimal prefixNumber) {
|
public XmlItem prefixNumber(BigDecimal prefixNumber) {
|
||||||
|
|
||||||
this.prefixNumber = prefixNumber;
|
this.prefixNumber = prefixNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -502,7 +492,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixInteger(Integer prefixInteger) {
|
public XmlItem prefixInteger(Integer prefixInteger) {
|
||||||
|
|
||||||
this.prefixInteger = prefixInteger;
|
this.prefixInteger = prefixInteger;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -527,7 +516,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixBoolean(Boolean prefixBoolean) {
|
public XmlItem prefixBoolean(Boolean prefixBoolean) {
|
||||||
|
|
||||||
this.prefixBoolean = prefixBoolean;
|
this.prefixBoolean = prefixBoolean;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -552,7 +540,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixArray(List<Integer> prefixArray) {
|
public XmlItem prefixArray(List<Integer> prefixArray) {
|
||||||
|
|
||||||
this.prefixArray = prefixArray;
|
this.prefixArray = prefixArray;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -585,7 +572,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixWrappedArray(List<Integer> prefixWrappedArray) {
|
public XmlItem prefixWrappedArray(List<Integer> prefixWrappedArray) {
|
||||||
|
|
||||||
this.prefixWrappedArray = prefixWrappedArray;
|
this.prefixWrappedArray = prefixWrappedArray;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -618,7 +604,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem namespaceString(String namespaceString) {
|
public XmlItem namespaceString(String namespaceString) {
|
||||||
|
|
||||||
this.namespaceString = namespaceString;
|
this.namespaceString = namespaceString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -643,7 +628,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem namespaceNumber(BigDecimal namespaceNumber) {
|
public XmlItem namespaceNumber(BigDecimal namespaceNumber) {
|
||||||
|
|
||||||
this.namespaceNumber = namespaceNumber;
|
this.namespaceNumber = namespaceNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -668,7 +652,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem namespaceInteger(Integer namespaceInteger) {
|
public XmlItem namespaceInteger(Integer namespaceInteger) {
|
||||||
|
|
||||||
this.namespaceInteger = namespaceInteger;
|
this.namespaceInteger = namespaceInteger;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -693,7 +676,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem namespaceBoolean(Boolean namespaceBoolean) {
|
public XmlItem namespaceBoolean(Boolean namespaceBoolean) {
|
||||||
|
|
||||||
this.namespaceBoolean = namespaceBoolean;
|
this.namespaceBoolean = namespaceBoolean;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -718,7 +700,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem namespaceArray(List<Integer> namespaceArray) {
|
public XmlItem namespaceArray(List<Integer> namespaceArray) {
|
||||||
|
|
||||||
this.namespaceArray = namespaceArray;
|
this.namespaceArray = namespaceArray;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -751,7 +732,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem namespaceWrappedArray(List<Integer> namespaceWrappedArray) {
|
public XmlItem namespaceWrappedArray(List<Integer> namespaceWrappedArray) {
|
||||||
|
|
||||||
this.namespaceWrappedArray = namespaceWrappedArray;
|
this.namespaceWrappedArray = namespaceWrappedArray;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -784,7 +764,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixNsString(String prefixNsString) {
|
public XmlItem prefixNsString(String prefixNsString) {
|
||||||
|
|
||||||
this.prefixNsString = prefixNsString;
|
this.prefixNsString = prefixNsString;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -809,7 +788,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) {
|
public XmlItem prefixNsNumber(BigDecimal prefixNsNumber) {
|
||||||
|
|
||||||
this.prefixNsNumber = prefixNsNumber;
|
this.prefixNsNumber = prefixNsNumber;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -834,7 +812,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixNsInteger(Integer prefixNsInteger) {
|
public XmlItem prefixNsInteger(Integer prefixNsInteger) {
|
||||||
|
|
||||||
this.prefixNsInteger = prefixNsInteger;
|
this.prefixNsInteger = prefixNsInteger;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -859,7 +836,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) {
|
public XmlItem prefixNsBoolean(Boolean prefixNsBoolean) {
|
||||||
|
|
||||||
this.prefixNsBoolean = prefixNsBoolean;
|
this.prefixNsBoolean = prefixNsBoolean;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -884,7 +860,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixNsArray(List<Integer> prefixNsArray) {
|
public XmlItem prefixNsArray(List<Integer> prefixNsArray) {
|
||||||
|
|
||||||
this.prefixNsArray = prefixNsArray;
|
this.prefixNsArray = prefixNsArray;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -917,7 +892,6 @@ public class XmlItem {
|
|||||||
|
|
||||||
|
|
||||||
public XmlItem prefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
|
public XmlItem prefixNsWrappedArray(List<Integer> prefixNsWrappedArray) {
|
||||||
|
|
||||||
this.prefixNsWrappedArray = prefixNsWrappedArray;
|
this.prefixNsWrappedArray = prefixNsWrappedArray;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
@ -949,6 +923,9 @@ public class XmlItem {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return true if this XmlItem object is equal to o.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(Object o) {
|
public boolean equals(Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
@ -994,7 +971,6 @@ public class XmlItem {
|
|||||||
return Objects.hash(attributeString, attributeNumber, attributeInteger, attributeBoolean, wrappedArray, nameString, nameNumber, nameInteger, nameBoolean, nameArray, nameWrappedArray, prefixString, prefixNumber, prefixInteger, prefixBoolean, prefixArray, prefixWrappedArray, namespaceString, namespaceNumber, namespaceInteger, namespaceBoolean, namespaceArray, namespaceWrappedArray, prefixNsString, prefixNsNumber, prefixNsInteger, prefixNsBoolean, prefixNsArray, prefixNsWrappedArray);
|
return Objects.hash(attributeString, attributeNumber, attributeInteger, attributeBoolean, wrappedArray, nameString, nameNumber, nameInteger, nameBoolean, nameArray, nameWrappedArray, prefixString, prefixNumber, prefixInteger, prefixBoolean, prefixArray, prefixWrappedArray, namespaceString, namespaceNumber, namespaceInteger, namespaceBoolean, namespaceArray, namespaceWrappedArray, prefixNsString, prefixNsNumber, prefixNsInteger, prefixNsBoolean, prefixNsArray, prefixNsWrappedArray);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -18,6 +18,7 @@ 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;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -18,6 +18,7 @@ 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;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -18,6 +18,7 @@ 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;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -18,6 +18,7 @@ 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;
|
||||||
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
@ -16,6 +16,7 @@ package org.openapitools.client.model;
|
|||||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
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.JsonTypeName;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user