forked from loafle/openapi-generator-original
Fix alias to map in the model's properties (#360)
* add test case for ref to map (boolean) in fake petstore spec * fix alias to map in model properties * remove logging from new method * update samples for the new map test case * fix javadoc string * skip testSanitizeNestedInvalidValue in php test * skip test in php oas3 client * add logic to handle outer enum * update samples * fix alias in model's allOf * generate models for map def * update petstore samples * update petstore samples
This commit is contained in:
parent
9509e66ae8
commit
a897feef50
@ -1167,7 +1167,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
// TODO better logic to handle compose schema
|
// TODO better logic to handle compose schema
|
||||||
if (schema instanceof ComposedSchema) { // composed schema
|
if (schema instanceof ComposedSchema) { // composed schema
|
||||||
ComposedSchema cs = (ComposedSchema) schema;
|
ComposedSchema cs = (ComposedSchema) schema;
|
||||||
if(cs.getAllOf() != null) {
|
if (cs.getAllOf() != null) {
|
||||||
for (Schema s : cs.getAllOf()) {
|
for (Schema s : cs.getAllOf()) {
|
||||||
if (s != null) {
|
if (s != null) {
|
||||||
// using the first schema defined in allOf
|
// using the first schema defined in allOf
|
||||||
@ -1383,6 +1383,9 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
typeAliases = getAllAliases(allDefinitions);
|
typeAliases = getAllAliases(allDefinitions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// unalias schema
|
||||||
|
schema = ModelUtils.unaliasSchema(allDefinitions, schema);
|
||||||
|
|
||||||
CodegenModel m = CodegenModelFactory.newInstance(CodegenModelType.MODEL);
|
CodegenModel m = CodegenModelFactory.newInstance(CodegenModelType.MODEL);
|
||||||
|
|
||||||
if (reservedWords.contains(name)) {
|
if (reservedWords.contains(name)) {
|
||||||
@ -1508,9 +1511,8 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
addProperties(allProperties, allRequired, child, allDefinitions);
|
addProperties(allProperties, allRequired, child, allDefinitions);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addVars(m, properties, required, allProperties, allRequired);
|
addVars(m, unaliasPropertySchema(allDefinitions, properties), required, allProperties, allRequired);
|
||||||
// TODO
|
|
||||||
//} else if (schema instanceof RefModel) {
|
|
||||||
} else {
|
} else {
|
||||||
m.dataType = getSchemaType(schema);
|
m.dataType = getSchemaType(schema);
|
||||||
if (schema.getEnum() != null && !schema.getEnum().isEmpty()) {
|
if (schema.getEnum() != null && !schema.getEnum().isEmpty()) {
|
||||||
@ -1522,7 +1524,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
if (ModelUtils.isMapSchema(schema)) {
|
if (ModelUtils.isMapSchema(schema)) {
|
||||||
addAdditionPropertiesToCodeGenModel(m, schema);
|
addAdditionPropertiesToCodeGenModel(m, schema);
|
||||||
}
|
}
|
||||||
addVars(m, schema.getProperties(), schema.getRequired());
|
addVars(m, unaliasPropertySchema(allDefinitions, schema.getProperties()), schema.getRequired());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m.vars != null) {
|
if (m.vars != null) {
|
||||||
@ -1591,7 +1593,6 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
LOGGER.debug("debugging fromProperty for " + name + " : " + p);
|
LOGGER.debug("debugging fromProperty for " + name + " : " + p);
|
||||||
|
|
||||||
CodegenProperty property = CodegenModelFactory.newInstance(CodegenModelType.PROPERTY);
|
CodegenProperty property = CodegenModelFactory.newInstance(CodegenModelType.PROPERTY);
|
||||||
property.name = toVarName(name);
|
property.name = toVarName(name);
|
||||||
property.baseName = name;
|
property.baseName = name;
|
||||||
@ -1832,7 +1833,6 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
// property.baseType = getSimpleRef(p.get$ref());
|
// property.baseType = getSimpleRef(p.get$ref());
|
||||||
//}
|
//}
|
||||||
// --END of revision
|
// --END of revision
|
||||||
|
|
||||||
setNonArrayMapProperty(property, type);
|
setNonArrayMapProperty(property, type);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3047,6 +3047,24 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loop through propertiies and unalias the reference if $ref (reference) is defined
|
||||||
|
*
|
||||||
|
* @param allSchemas all schemas defined in the spec
|
||||||
|
* @param properties model properties (schemas)
|
||||||
|
* @return model properties with direct reference to schemas
|
||||||
|
*/
|
||||||
|
private Map<String, Schema> unaliasPropertySchema(Map<String, Schema> allSchemas, Map<String, Schema> properties) {
|
||||||
|
if (properties != null) {
|
||||||
|
for (String key : properties.keySet()) {
|
||||||
|
properties.put(key, ModelUtils.unaliasSchema(allSchemas, properties.get(key)));
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return properties;
|
||||||
|
}
|
||||||
|
|
||||||
private void addVars(CodegenModel model, Map<String, Schema> properties, List<String> required) {
|
private void addVars(CodegenModel model, Map<String, Schema> properties, List<String> required) {
|
||||||
addVars(model, properties, required, null, null);
|
addVars(model, properties, required, null, null);
|
||||||
}
|
}
|
||||||
@ -3160,9 +3178,11 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
String oasName = entry.getKey();
|
String oasName = entry.getKey();
|
||||||
Schema schema = entry.getValue();
|
Schema schema = entry.getValue();
|
||||||
String schemaType = getPrimitiveType(schema);
|
String schemaType = getPrimitiveType(schema);
|
||||||
if (schemaType != null && !schemaType.equals("object") && !schemaType.equals("array") && schema.getEnum() == null) {
|
if (schemaType != null && !schemaType.equals("object") && !schemaType.equals("array")
|
||||||
|
&& schema.getEnum() == null && !ModelUtils.isMapSchema(schema)) {
|
||||||
aliases.put(oasName, schemaType);
|
aliases.put(oasName, schemaType);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return aliases;
|
return aliases;
|
||||||
@ -3896,14 +3916,14 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Set<String> existingMediaTypes = new HashSet<>();
|
Set<String> existingMediaTypes = new HashSet<>();
|
||||||
for (Map<String, String> mediaType: codegenOperation.produces) {
|
for (Map<String, String> mediaType : codegenOperation.produces) {
|
||||||
existingMediaTypes.add(mediaType.get("mediaType"));
|
existingMediaTypes.add(mediaType.get("mediaType"));
|
||||||
}
|
}
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
for (String key : produces) {
|
for (String key : produces) {
|
||||||
// escape quotation to avoid code injection, "*/*" is a special case, do nothing
|
// escape quotation to avoid code injection, "*/*" is a special case, do nothing
|
||||||
String encodedKey = "*/*".equals(key)? key : escapeText(escapeQuotationMark(key));
|
String encodedKey = "*/*".equals(key) ? key : escapeText(escapeQuotationMark(key));
|
||||||
//Only unique media types should be added to "produces"
|
//Only unique media types should be added to "produces"
|
||||||
if (!existingMediaTypes.contains(encodedKey)) {
|
if (!existingMediaTypes.contains(encodedKey)) {
|
||||||
Map<String, String> mediaType = new HashMap<String, String>();
|
Map<String, String> mediaType = new HashMap<String, String>();
|
||||||
@ -3925,7 +3945,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
/**
|
/**
|
||||||
* returns the list of MIME types the APIs can produce
|
* returns the list of MIME types the APIs can produce
|
||||||
*
|
*
|
||||||
* @param openAPI current specification instance
|
* @param openAPI current specification instance
|
||||||
* @param operation Operation
|
* @param operation Operation
|
||||||
* @return a set of MIME types
|
* @return a set of MIME types
|
||||||
*/
|
*/
|
||||||
@ -4024,10 +4044,9 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
codegenParameter.isListContainer = true;
|
codegenParameter.isListContainer = true;
|
||||||
codegenParameter.description = s.getDescription();
|
codegenParameter.description = s.getDescription();
|
||||||
codegenParameter.dataType = getTypeDeclaration(s);
|
codegenParameter.dataType = getTypeDeclaration(s);
|
||||||
if (codegenParameter.baseType != null && codegenParameter.enumName != null){
|
if (codegenParameter.baseType != null && codegenParameter.enumName != null) {
|
||||||
codegenParameter.datatypeWithEnum = codegenParameter.dataType.replace(codegenParameter.baseType, codegenParameter.enumName);
|
codegenParameter.datatypeWithEnum = codegenParameter.dataType.replace(codegenParameter.baseType, codegenParameter.enumName);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
LOGGER.warn("Could not compute datatypeWithEnum from " + codegenParameter.baseType + ", " + codegenParameter.enumName);
|
LOGGER.warn("Could not compute datatypeWithEnum from " + codegenParameter.baseType + ", " + codegenParameter.enumName);
|
||||||
}
|
}
|
||||||
//TODO fix collectformat for form parameters
|
//TODO fix collectformat for form parameters
|
||||||
@ -4338,7 +4357,7 @@ public class DefaultCodegen implements CodegenConfig {
|
|||||||
public void generateYAMLSpecFile(Map<String, Object> objs) {
|
public void generateYAMLSpecFile(Map<String, Object> objs) {
|
||||||
OpenAPI openAPI = (OpenAPI) objs.get("openAPI");
|
OpenAPI openAPI = (OpenAPI) objs.get("openAPI");
|
||||||
String yaml = SerializerUtils.toYamlString(openAPI);
|
String yaml = SerializerUtils.toYamlString(openAPI);
|
||||||
if(yaml != null) {
|
if (yaml != null) {
|
||||||
objs.put("openapi-yaml", yaml);
|
objs.put("openapi-yaml", yaml);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -90,15 +90,16 @@ public class ModelUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the list of all schemas in the 'components/schemas' section used in the openAPI specification
|
* Return the list of all schemas in the 'components/schemas' section used in the openAPI specification
|
||||||
|
*
|
||||||
* @param openAPI specification
|
* @param openAPI specification
|
||||||
* @return schemas a list of used schemas
|
* @return schemas a list of used schemas
|
||||||
*/
|
*/
|
||||||
public static List<String> getAllUsedSchemas(OpenAPI openAPI) {
|
public static List<String> getAllUsedSchemas(OpenAPI openAPI) {
|
||||||
List<String> allUsedSchemas = new ArrayList<String>();
|
List<String> allUsedSchemas = new ArrayList<String>();
|
||||||
visitOpenAPI(openAPI, (s, t) -> {
|
visitOpenAPI(openAPI, (s, t) -> {
|
||||||
if(s.get$ref() != null) {
|
if (s.get$ref() != null) {
|
||||||
String ref = getSimpleRef(s.get$ref());
|
String ref = getSimpleRef(s.get$ref());
|
||||||
if(!allUsedSchemas.contains(ref)) {
|
if (!allUsedSchemas.contains(ref)) {
|
||||||
allUsedSchemas.add(ref);
|
allUsedSchemas.add(ref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -108,6 +109,7 @@ public class ModelUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the list of unused schemas in the 'components/schemas' section of an openAPI specification
|
* Return the list of unused schemas in the 'components/schemas' section of an openAPI specification
|
||||||
|
*
|
||||||
* @param openAPI specification
|
* @param openAPI specification
|
||||||
* @return schemas a list of unused schemas
|
* @return schemas a list of unused schemas
|
||||||
*/
|
*/
|
||||||
@ -118,7 +120,7 @@ public class ModelUtils {
|
|||||||
unusedSchemas.addAll(schemas.keySet());
|
unusedSchemas.addAll(schemas.keySet());
|
||||||
|
|
||||||
visitOpenAPI(openAPI, (s, t) -> {
|
visitOpenAPI(openAPI, (s, t) -> {
|
||||||
if(s.get$ref() != null) {
|
if (s.get$ref() != null) {
|
||||||
unusedSchemas.remove(getSimpleRef(s.get$ref()));
|
unusedSchemas.remove(getSimpleRef(s.get$ref()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -127,6 +129,7 @@ public class ModelUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the list of schemas in the 'components/schemas' used only in a 'application/x-www-form-urlencoded' or 'multipart/form-data' mime time
|
* Return the list of schemas in the 'components/schemas' used only in a 'application/x-www-form-urlencoded' or 'multipart/form-data' mime time
|
||||||
|
*
|
||||||
* @param openAPI specification
|
* @param openAPI specification
|
||||||
* @return schemas a list of schemas
|
* @return schemas a list of schemas
|
||||||
*/
|
*/
|
||||||
@ -135,7 +138,7 @@ public class ModelUtils {
|
|||||||
List<String> schemasUsedInOtherCases = new ArrayList<String>();
|
List<String> schemasUsedInOtherCases = new ArrayList<String>();
|
||||||
|
|
||||||
visitOpenAPI(openAPI, (s, t) -> {
|
visitOpenAPI(openAPI, (s, t) -> {
|
||||||
if(s.get$ref() != null) {
|
if (s.get$ref() != null) {
|
||||||
String ref = getSimpleRef(s.get$ref());
|
String ref = getSimpleRef(s.get$ref());
|
||||||
if ("application/x-www-form-urlencoded".equalsIgnoreCase(t) ||
|
if ("application/x-www-form-urlencoded".equalsIgnoreCase(t) ||
|
||||||
"multipart/form-data".equalsIgnoreCase(t)) {
|
"multipart/form-data".equalsIgnoreCase(t)) {
|
||||||
@ -167,7 +170,7 @@ public class ModelUtils {
|
|||||||
if (allOperations != null) {
|
if (allOperations != null) {
|
||||||
for (Operation operation : allOperations) {
|
for (Operation operation : allOperations) {
|
||||||
//Params:
|
//Params:
|
||||||
if(operation.getParameters() != null) {
|
if (operation.getParameters() != null) {
|
||||||
for (Parameter p : operation.getParameters()) {
|
for (Parameter p : operation.getParameters()) {
|
||||||
Parameter parameter = getReferencedParameter(openAPI, p);
|
Parameter parameter = getReferencedParameter(openAPI, p);
|
||||||
if (parameter.getSchema() != null) {
|
if (parameter.getSchema() != null) {
|
||||||
@ -187,7 +190,7 @@ public class ModelUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Responses:
|
//Responses:
|
||||||
if(operation.getResponses() != null) {
|
if (operation.getResponses() != null) {
|
||||||
for (ApiResponse r : operation.getResponses().values()) {
|
for (ApiResponse r : operation.getResponses().values()) {
|
||||||
ApiResponse apiResponse = getReferencedApiResponse(openAPI, r);
|
ApiResponse apiResponse = getReferencedApiResponse(openAPI, r);
|
||||||
if (apiResponse != null && apiResponse.getContent() != null) {
|
if (apiResponse != null && apiResponse.getContent() != null) {
|
||||||
@ -207,51 +210,51 @@ public class ModelUtils {
|
|||||||
|
|
||||||
private static void visitSchema(OpenAPI openAPI, Schema schema, String mimeType, List<String> visitedSchemas, OpenAPISchemaVisitor visitor) {
|
private static void visitSchema(OpenAPI openAPI, Schema schema, String mimeType, List<String> visitedSchemas, OpenAPISchemaVisitor visitor) {
|
||||||
visitor.visit(schema, mimeType);
|
visitor.visit(schema, mimeType);
|
||||||
if(schema.get$ref() != null) {
|
if (schema.get$ref() != null) {
|
||||||
String ref = getSimpleRef(schema.get$ref());
|
String ref = getSimpleRef(schema.get$ref());
|
||||||
if(!visitedSchemas.contains(ref)) {
|
if (!visitedSchemas.contains(ref)) {
|
||||||
visitedSchemas.add(ref);
|
visitedSchemas.add(ref);
|
||||||
Schema referencedSchema = getSchemas(openAPI).get(ref);
|
Schema referencedSchema = getSchemas(openAPI).get(ref);
|
||||||
if(referencedSchema != null) {
|
if (referencedSchema != null) {
|
||||||
visitSchema(openAPI, referencedSchema, mimeType, visitedSchemas, visitor);
|
visitSchema(openAPI, referencedSchema, mimeType, visitedSchemas, visitor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(schema instanceof ComposedSchema) {
|
if (schema instanceof ComposedSchema) {
|
||||||
List<Schema> oneOf = ((ComposedSchema) schema).getOneOf();
|
List<Schema> oneOf = ((ComposedSchema) schema).getOneOf();
|
||||||
if(oneOf != null) {
|
if (oneOf != null) {
|
||||||
for (Schema s : oneOf) {
|
for (Schema s : oneOf) {
|
||||||
visitSchema(openAPI, s, mimeType, visitedSchemas, visitor);
|
visitSchema(openAPI, s, mimeType, visitedSchemas, visitor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List<Schema> allOf = ((ComposedSchema) schema).getAllOf();
|
List<Schema> allOf = ((ComposedSchema) schema).getAllOf();
|
||||||
if(allOf != null) {
|
if (allOf != null) {
|
||||||
for (Schema s : allOf) {
|
for (Schema s : allOf) {
|
||||||
visitSchema(openAPI, s, mimeType, visitedSchemas, visitor);
|
visitSchema(openAPI, s, mimeType, visitedSchemas, visitor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
List<Schema> anyOf = ((ComposedSchema) schema).getAnyOf();
|
List<Schema> anyOf = ((ComposedSchema) schema).getAnyOf();
|
||||||
if(anyOf != null) {
|
if (anyOf != null) {
|
||||||
for (Schema s : anyOf) {
|
for (Schema s : anyOf) {
|
||||||
visitSchema(openAPI, s, mimeType, visitedSchemas, visitor);
|
visitSchema(openAPI, s, mimeType, visitedSchemas, visitor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if(schema instanceof ArraySchema) {
|
} else if (schema instanceof ArraySchema) {
|
||||||
Schema itemsSchema = ((ArraySchema) schema).getItems();
|
Schema itemsSchema = ((ArraySchema) schema).getItems();
|
||||||
if(itemsSchema != null) {
|
if (itemsSchema != null) {
|
||||||
visitSchema(openAPI, itemsSchema, mimeType, visitedSchemas, visitor);
|
visitSchema(openAPI, itemsSchema, mimeType, visitedSchemas, visitor);
|
||||||
}
|
}
|
||||||
} else if(isMapSchema(schema)) {
|
} else if (isMapSchema(schema)) {
|
||||||
Object additionalProperties = schema.getAdditionalProperties();
|
Object additionalProperties = schema.getAdditionalProperties();
|
||||||
if(additionalProperties instanceof Schema) {
|
if (additionalProperties instanceof Schema) {
|
||||||
visitSchema(openAPI, (Schema) additionalProperties, mimeType, visitedSchemas, visitor);
|
visitSchema(openAPI, (Schema) additionalProperties, mimeType, visitedSchemas, visitor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(schema.getNot() != null) {
|
if (schema.getNot() != null) {
|
||||||
visitSchema(openAPI, schema.getNot(), mimeType, visitedSchemas, visitor);
|
visitSchema(openAPI, schema.getNot(), mimeType, visitedSchemas, visitor);
|
||||||
}
|
}
|
||||||
Map<String, Schema> properties = schema.getProperties();
|
Map<String, Schema> properties = schema.getProperties();
|
||||||
if(properties != null) {
|
if (properties != null) {
|
||||||
for (Schema property : properties.values()) {
|
for (Schema property : properties.values()) {
|
||||||
visitSchema(openAPI, property, mimeType, visitedSchemas, visitor);
|
visitSchema(openAPI, property, mimeType, visitedSchemas, visitor);
|
||||||
}
|
}
|
||||||
@ -269,7 +272,7 @@ public class ModelUtils {
|
|||||||
ref = ref.substring(ref.lastIndexOf("/") + 1);
|
ref = ref.substring(ref.lastIndexOf("/") + 1);
|
||||||
} else if (ref.startsWith("#/definitions/")) {
|
} else if (ref.startsWith("#/definitions/")) {
|
||||||
ref = ref.substring(ref.lastIndexOf("/") + 1);
|
ref = ref.substring(ref.lastIndexOf("/") + 1);
|
||||||
} else {
|
} else {
|
||||||
LOGGER.warn("Failed to get the schema name: {}", ref);
|
LOGGER.warn("Failed to get the schema name: {}", ref);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -478,15 +481,16 @@ public class ModelUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* If a Schema contains a reference to an other Schema with '$ref', returns the referenced Schema if it is found or the actual Schema in the other cases.
|
* If a Schema contains a reference to an other Schema with '$ref', returns the referenced Schema if it is found or the actual Schema in the other cases.
|
||||||
|
*
|
||||||
* @param openAPI specification being checked
|
* @param openAPI specification being checked
|
||||||
* @param schema potentially containing a '$ref'
|
* @param schema potentially containing a '$ref'
|
||||||
* @return schema without '$ref'
|
* @return schema without '$ref'
|
||||||
*/
|
*/
|
||||||
public static Schema getReferencedSchema(OpenAPI openAPI, Schema schema) {
|
public static Schema getReferencedSchema(OpenAPI openAPI, Schema schema) {
|
||||||
if (schema != null && StringUtils.isNotEmpty(schema.get$ref())) {
|
if (schema != null && StringUtils.isNotEmpty(schema.get$ref())) {
|
||||||
String name = getSimpleRef(schema.get$ref());
|
String name = getSimpleRef(schema.get$ref());
|
||||||
Schema referencedSchema = getSchema(openAPI, name);
|
Schema referencedSchema = getSchema(openAPI, name);
|
||||||
if(referencedSchema != null) {
|
if (referencedSchema != null) {
|
||||||
return referencedSchema;
|
return referencedSchema;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -510,7 +514,8 @@ public class ModelUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* If a RequestBody contains a reference to an other RequestBody with '$ref', returns the referenced RequestBody if it is found or the actual RequestBody in the other cases.
|
* If a RequestBody contains a reference to an other RequestBody with '$ref', returns the referenced RequestBody if it is found or the actual RequestBody in the other cases.
|
||||||
* @param openAPI specification being checked
|
*
|
||||||
|
* @param openAPI specification being checked
|
||||||
* @param requestBody potentially containing a '$ref'
|
* @param requestBody potentially containing a '$ref'
|
||||||
* @return requestBody without '$ref'
|
* @return requestBody without '$ref'
|
||||||
*/
|
*/
|
||||||
@ -518,7 +523,7 @@ public class ModelUtils {
|
|||||||
if (requestBody != null && StringUtils.isNotEmpty(requestBody.get$ref())) {
|
if (requestBody != null && StringUtils.isNotEmpty(requestBody.get$ref())) {
|
||||||
String name = getSimpleRef(requestBody.get$ref());
|
String name = getSimpleRef(requestBody.get$ref());
|
||||||
RequestBody referencedRequestBody = getRequestBody(openAPI, name);
|
RequestBody referencedRequestBody = getRequestBody(openAPI, name);
|
||||||
if(referencedRequestBody != null) {
|
if (referencedRequestBody != null) {
|
||||||
return referencedRequestBody;
|
return referencedRequestBody;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -538,7 +543,8 @@ public class ModelUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* If a ApiResponse contains a reference to an other ApiResponse with '$ref', returns the referenced ApiResponse if it is found or the actual ApiResponse in the other cases.
|
* If a ApiResponse contains a reference to an other ApiResponse with '$ref', returns the referenced ApiResponse if it is found or the actual ApiResponse in the other cases.
|
||||||
* @param openAPI specification being checked
|
*
|
||||||
|
* @param openAPI specification being checked
|
||||||
* @param apiResponse potentially containing a '$ref'
|
* @param apiResponse potentially containing a '$ref'
|
||||||
* @return apiResponse without '$ref'
|
* @return apiResponse without '$ref'
|
||||||
*/
|
*/
|
||||||
@ -546,7 +552,7 @@ public class ModelUtils {
|
|||||||
if (apiResponse != null && StringUtils.isNotEmpty(apiResponse.get$ref())) {
|
if (apiResponse != null && StringUtils.isNotEmpty(apiResponse.get$ref())) {
|
||||||
String name = getSimpleRef(apiResponse.get$ref());
|
String name = getSimpleRef(apiResponse.get$ref());
|
||||||
ApiResponse referencedApiResponse = getApiResponse(openAPI, name);
|
ApiResponse referencedApiResponse = getApiResponse(openAPI, name);
|
||||||
if(referencedApiResponse != null) {
|
if (referencedApiResponse != null) {
|
||||||
return referencedApiResponse;
|
return referencedApiResponse;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -566,7 +572,8 @@ public class ModelUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* If a Parameter contains a reference to an other Parameter with '$ref', returns the referenced Parameter if it is found or the actual Parameter in the other cases.
|
* If a Parameter contains a reference to an other Parameter with '$ref', returns the referenced Parameter if it is found or the actual Parameter in the other cases.
|
||||||
* @param openAPI specification being checked
|
*
|
||||||
|
* @param openAPI specification being checked
|
||||||
* @param parameter potentially containing a '$ref'
|
* @param parameter potentially containing a '$ref'
|
||||||
* @return parameter without '$ref'
|
* @return parameter without '$ref'
|
||||||
*/
|
*/
|
||||||
@ -574,7 +581,7 @@ public class ModelUtils {
|
|||||||
if (parameter != null && StringUtils.isNotEmpty(parameter.get$ref())) {
|
if (parameter != null && StringUtils.isNotEmpty(parameter.get$ref())) {
|
||||||
String name = getSimpleRef(parameter.get$ref());
|
String name = getSimpleRef(parameter.get$ref());
|
||||||
Parameter referencedParameter = getParameter(openAPI, name);
|
Parameter referencedParameter = getParameter(openAPI, name);
|
||||||
if(referencedParameter != null) {
|
if (referencedParameter != null) {
|
||||||
return referencedParameter;
|
return referencedParameter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -594,6 +601,7 @@ public class ModelUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the first defined Schema for a RequestBody
|
* Return the first defined Schema for a RequestBody
|
||||||
|
*
|
||||||
* @param requestBody request body of the operation
|
* @param requestBody request body of the operation
|
||||||
* @return firstSchema
|
* @return firstSchema
|
||||||
*/
|
*/
|
||||||
@ -603,6 +611,7 @@ public class ModelUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the first defined Schema for a ApiResponse
|
* Return the first defined Schema for a ApiResponse
|
||||||
|
*
|
||||||
* @param response api response of the operation
|
* @param response api response of the operation
|
||||||
* @return firstSchema
|
* @return firstSchema
|
||||||
*/
|
*/
|
||||||
@ -614,10 +623,38 @@ public class ModelUtils {
|
|||||||
if (content == null || content.isEmpty()) {
|
if (content == null || content.isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if(content.size() > 1) {
|
if (content.size() > 1) {
|
||||||
LOGGER.warn("Multiple schemas found, returning only the first one");
|
LOGGER.warn("Multiple schemas found, returning only the first one");
|
||||||
}
|
}
|
||||||
MediaType mediaType = content.values().iterator().next();
|
MediaType mediaType = content.values().iterator().next();
|
||||||
return mediaType.getSchema();
|
return mediaType.getSchema();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the actual schema from aliases. If the provided schema is not an alias, the schema itself will be returned.
|
||||||
|
*
|
||||||
|
* @param allSchemas all schemas
|
||||||
|
* @param schema schema (alias or direct reference)
|
||||||
|
* @return actual schema
|
||||||
|
*/
|
||||||
|
public static Schema unaliasSchema(Map<String, Schema> allSchemas, Schema schema) {
|
||||||
|
if (schema != null && StringUtils.isNotEmpty(schema.get$ref())) {
|
||||||
|
Schema ref = allSchemas.get(ModelUtils.getSimpleRef(schema.get$ref()));
|
||||||
|
if (ref == null) {
|
||||||
|
LOGGER.warn("{} is not defined", schema.get$ref());
|
||||||
|
return schema;
|
||||||
|
} else if (isObjectSchema(ref)) { // model
|
||||||
|
return schema;
|
||||||
|
} else if (isStringSchema(ref) && (ref.getEnum() != null && !ref.getEnum().isEmpty())) {
|
||||||
|
// top-level enum class
|
||||||
|
return schema;
|
||||||
|
} else if (isMapSchema(ref) || isArraySchema(ref)) { // map/array def should be created as models
|
||||||
|
return schema;
|
||||||
|
} else {
|
||||||
|
return unaliasSchema(allSchemas, allSchemas.get(ModelUtils.getSimpleRef(schema.get$ref())));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return schema;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -16,3 +16,61 @@ paths:
|
|||||||
default:
|
default:
|
||||||
description: "Internal server error"
|
description: "Internal server error"
|
||||||
summary: Test
|
summary: Test
|
||||||
|
definitions:
|
||||||
|
MapTest:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
direct_map:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
indirect_map:
|
||||||
|
$ref: "#/definitions/StringBooleanMap"
|
||||||
|
ref_test:
|
||||||
|
$ref: "#/definitions/StringRef"
|
||||||
|
direct_test:
|
||||||
|
type: string
|
||||||
|
StringBooleanMap:
|
||||||
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
StringRef:
|
||||||
|
type: string
|
||||||
|
Pet:
|
||||||
|
title: a Pet
|
||||||
|
description: A pet for sale in the pet store
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
category:
|
||||||
|
$ref: '#/definitions/Category'
|
||||||
|
tags:
|
||||||
|
type: array
|
||||||
|
xml:
|
||||||
|
name: tag
|
||||||
|
wrapped: true
|
||||||
|
items:
|
||||||
|
$ref: '#/definitions/Tag'
|
||||||
|
Tag:
|
||||||
|
title: Pet Tag
|
||||||
|
description: A tag for a pet
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
Category:
|
||||||
|
title: Pet category
|
||||||
|
description: A category for a pet
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
id:
|
||||||
|
type: integer
|
||||||
|
format: int64
|
||||||
|
name:
|
||||||
|
type: string
|
||||||
|
xml:
|
||||||
|
name: Category
|
@ -1355,6 +1355,12 @@ definitions:
|
|||||||
enum:
|
enum:
|
||||||
- UPPER
|
- UPPER
|
||||||
- lower
|
- lower
|
||||||
|
direct_map:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
indirect_map:
|
||||||
|
$ref: "#/definitions/StringBooleanMap"
|
||||||
ArrayTest:
|
ArrayTest:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -1452,3 +1458,6 @@ definitions:
|
|||||||
OuterBoolean:
|
OuterBoolean:
|
||||||
type: boolean
|
type: boolean
|
||||||
x-codegen-body-parameter-name: boolean_post_body
|
x-codegen-body-parameter-name: boolean_post_body
|
||||||
|
StringBooleanMap:
|
||||||
|
additionalProperties:
|
||||||
|
type: boolean
|
||||||
|
@ -1 +1 @@
|
|||||||
3.0.0-SNAPSHOT
|
3.0.3-SNAPSHOT
|
@ -97,6 +97,7 @@ Class | Method | HTTP request | Description
|
|||||||
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
- [ReadOnlyFirst](docs/ReadOnlyFirst.md)
|
||||||
- [Return](docs/Return.md)
|
- [Return](docs/Return.md)
|
||||||
- [SpecialModelName](docs/SpecialModelName.md)
|
- [SpecialModelName](docs/SpecialModelName.md)
|
||||||
|
- [StringBooleanMap](docs/StringBooleanMap.md)
|
||||||
- [Tag](docs/Tag.md)
|
- [Tag](docs/Tag.md)
|
||||||
- [User](docs/User.md)
|
- [User](docs/User.md)
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -24,7 +24,7 @@ func (c contextKey) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
|
// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
|
||||||
ContextOAuth2 = contextKey("token")
|
ContextOAuth2 = contextKey("token")
|
||||||
|
|
||||||
// ContextBasicAuth takes BasicAuth as authentication for the request.
|
// ContextBasicAuth takes BasicAuth as authentication for the request.
|
||||||
|
@ -5,6 +5,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**MapMapOfString** | [**map[string]map[string]string**](map.md) | | [optional]
|
**MapMapOfString** | [**map[string]map[string]string**](map.md) | | [optional]
|
||||||
**MapOfEnumString** | **map[string]string** | | [optional]
|
**MapOfEnumString** | **map[string]string** | | [optional]
|
||||||
|
**DirectMap** | **map[string]bool** | | [optional]
|
||||||
|
**IndirectMap** | [***StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||||
|
|
||||||
|
|
@ -12,4 +12,6 @@ package petstore
|
|||||||
type MapTest struct {
|
type MapTest struct {
|
||||||
MapMapOfString map[string]map[string]string `json:"map_map_of_string,omitempty"`
|
MapMapOfString map[string]map[string]string `json:"map_map_of_string,omitempty"`
|
||||||
MapOfEnumString map[string]string `json:"map_of_enum_string,omitempty"`
|
MapOfEnumString map[string]string `json:"map_of_enum_string,omitempty"`
|
||||||
|
DirectMap map[string]bool `json:"direct_map,omitempty"`
|
||||||
|
IndirectMap *StringBooleanMap `json:"indirect_map,omitempty"`
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* API version: 1.0.0
|
||||||
|
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||||
|
*/
|
||||||
|
|
||||||
|
package petstore
|
||||||
|
|
||||||
|
type StringBooleanMap struct {
|
||||||
|
}
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -70,6 +71,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -122,6 +129,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -133,12 +184,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,6 +202,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -70,6 +71,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -122,6 +129,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -133,12 +184,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,6 +202,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -70,6 +71,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -122,6 +129,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -133,12 +184,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,6 +202,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -22,6 +22,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -69,6 +70,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -121,6 +128,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -132,12 +183,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return ObjectUtils.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return ObjectUtils.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
ObjectUtils.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
ObjectUtils.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
ObjectUtils.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
ObjectUtils.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return ObjectUtils.hashCodeMulti(mapMapOfString, mapOfEnumString);
|
return ObjectUtils.hashCodeMulti(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -148,6 +201,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -81,7 +81,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,64 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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.apache.commons.lang3.ObjectUtils;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return ObjectUtils.hashCodeMulti(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -70,6 +71,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -122,6 +129,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
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
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -133,12 +184,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,6 +202,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -70,6 +71,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -122,6 +129,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -133,12 +184,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,6 +202,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -26,6 +26,7 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
import android.os.Parcel;
|
import android.os.Parcel;
|
||||||
|
|
||||||
@ -89,6 +90,14 @@ public class MapTest implements Parcelable {
|
|||||||
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_DIRECT_MAP)
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest() {
|
public MapTest() {
|
||||||
}
|
}
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
@ -143,6 +152,50 @@ public class MapTest implements Parcelable {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -154,12 +207,14 @@ public class MapTest implements Parcelable {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -170,6 +225,8 @@ public class MapTest implements Parcelable {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
@ -189,11 +246,15 @@ public class MapTest implements Parcelable {
|
|||||||
public void writeToParcel(Parcel out, int flags) {
|
public void writeToParcel(Parcel out, int flags) {
|
||||||
out.writeValue(mapMapOfString);
|
out.writeValue(mapMapOfString);
|
||||||
out.writeValue(mapOfEnumString);
|
out.writeValue(mapOfEnumString);
|
||||||
|
out.writeValue(directMap);
|
||||||
|
out.writeValue(indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
MapTest(Parcel in) {
|
MapTest(Parcel in) {
|
||||||
mapMapOfString = (Map<String, Map<String, String>>)in.readValue(Map.class.getClassLoader());
|
mapMapOfString = (Map<String, Map<String, String>>)in.readValue(Map.class.getClassLoader());
|
||||||
mapOfEnumString = (Map<String, InnerEnum>)in.readValue(null);
|
mapOfEnumString = (Map<String, InnerEnum>)in.readValue(null);
|
||||||
|
directMap = (Map<String, Boolean>)in.readValue(null);
|
||||||
|
indirectMap = (StringBooleanMap)in.readValue(StringBooleanMap.class.getClassLoader());
|
||||||
}
|
}
|
||||||
|
|
||||||
public int describeContents() {
|
public int describeContents() {
|
||||||
|
@ -92,7 +92,7 @@ public class OuterComposite implements Parcelable {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,91 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import android.os.Parcelable;
|
||||||
|
import android.os.Parcel;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> implements Parcelable {
|
||||||
|
public StringBooleanMap() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void writeToParcel(Parcel out, int flags) {
|
||||||
|
super.writeToParcel(out, flags);
|
||||||
|
}
|
||||||
|
|
||||||
|
StringBooleanMap(Parcel in) {
|
||||||
|
super(in);
|
||||||
|
}
|
||||||
|
|
||||||
|
public int describeContents() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static final Parcelable.Creator<StringBooleanMap> CREATOR = new Parcelable.Creator<StringBooleanMap>() {
|
||||||
|
public StringBooleanMap createFromParcel(Parcel in) {
|
||||||
|
return new StringBooleanMap(in);
|
||||||
|
}
|
||||||
|
public StringBooleanMap[] newArray(int size) {
|
||||||
|
return new StringBooleanMap[size];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -26,6 +26,7 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -87,6 +88,14 @@ public class MapTest {
|
|||||||
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_DIRECT_MAP)
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -139,6 +148,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -150,12 +203,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -166,6 +221,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -26,6 +26,7 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -87,6 +88,14 @@ public class MapTest {
|
|||||||
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_DIRECT_MAP)
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -139,6 +148,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -150,12 +203,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -166,6 +221,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -70,6 +71,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -122,6 +129,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -133,12 +184,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,6 +202,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||||
import javax.xml.bind.annotation.*;
|
import javax.xml.bind.annotation.*;
|
||||||
|
|
||||||
@ -83,6 +84,18 @@ public class MapTest {
|
|||||||
@XmlElement(name = "inner")
|
@XmlElement(name = "inner")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
// Is a container wrapped=false
|
||||||
|
// items.name=inner items.baseName=inner items.xmlName= items.xmlNamespace=
|
||||||
|
// items.example= items.type=Boolean
|
||||||
|
@XmlElement(name = "inner")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
@JacksonXmlProperty(localName = "indirect_map")
|
||||||
|
@XmlElement(name = "indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -135,6 +148,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -146,12 +203,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -162,6 +221,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,70 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.fasterxml.jackson.dataformat.xml.annotation.*;
|
||||||
|
import javax.xml.bind.annotation.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
@XmlRootElement(name = "StringBooleanMap")
|
||||||
|
@XmlAccessorType(XmlAccessType.FIELD)
|
||||||
|
@JacksonXmlRootElement(localName = "StringBooleanMap")
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -70,6 +71,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -122,6 +129,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -133,12 +184,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -149,6 +202,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -26,6 +26,7 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -87,6 +88,14 @@ public class MapTest {
|
|||||||
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_DIRECT_MAP)
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -139,6 +148,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -150,12 +203,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -166,6 +221,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -72,6 +73,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -125,6 +132,51 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
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
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@Valid
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -136,12 +188,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -152,6 +206,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -23,6 +23,7 @@ import io.swagger.annotations.ApiModelProperty;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -72,6 +73,12 @@ public class MapTest {
|
|||||||
@JsonProperty("map_of_enum_string")
|
@JsonProperty("map_of_enum_string")
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
@JsonProperty("direct_map")
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
@JsonProperty("indirect_map")
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -125,6 +132,51 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
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
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@Valid
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -136,12 +188,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -152,6 +206,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -85,7 +85,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,67 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -26,6 +26,7 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -87,6 +88,14 @@ public class MapTest {
|
|||||||
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_DIRECT_MAP)
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -139,6 +148,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -150,12 +203,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -166,6 +221,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -26,6 +26,7 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -87,6 +88,14 @@ public class MapTest {
|
|||||||
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_DIRECT_MAP)
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -139,6 +148,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -150,12 +203,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -166,6 +221,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -26,6 +26,7 @@ import java.io.IOException;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import org.openapitools.client.model.StringBooleanMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MapTest
|
* MapTest
|
||||||
@ -87,6 +88,14 @@ public class MapTest {
|
|||||||
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
@SerializedName(SERIALIZED_NAME_MAP_OF_ENUM_STRING)
|
||||||
private Map<String, InnerEnum> mapOfEnumString = null;
|
private Map<String, InnerEnum> mapOfEnumString = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_DIRECT_MAP = "direct_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_DIRECT_MAP)
|
||||||
|
private Map<String, Boolean> directMap = null;
|
||||||
|
|
||||||
|
public static final String SERIALIZED_NAME_INDIRECT_MAP = "indirect_map";
|
||||||
|
@SerializedName(SERIALIZED_NAME_INDIRECT_MAP)
|
||||||
|
private StringBooleanMap indirectMap = null;
|
||||||
|
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
this.mapMapOfString = mapMapOfString;
|
this.mapMapOfString = mapMapOfString;
|
||||||
return this;
|
return this;
|
||||||
@ -139,6 +148,50 @@ public class MapTest {
|
|||||||
this.mapOfEnumString = mapOfEnumString;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public MapTest directMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest putDirectMapItem(String key, Boolean directMapItem) {
|
||||||
|
if (this.directMap == null) {
|
||||||
|
this.directMap = new HashMap<String, Boolean>();
|
||||||
|
}
|
||||||
|
this.directMap.put(key, directMapItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get directMap
|
||||||
|
* @return directMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public Map<String, Boolean> getDirectMap() {
|
||||||
|
return directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDirectMap(Map<String, Boolean> directMap) {
|
||||||
|
this.directMap = directMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public MapTest indirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get indirectMap
|
||||||
|
* @return indirectMap
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public StringBooleanMap getIndirectMap() {
|
||||||
|
return indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIndirectMap(StringBooleanMap indirectMap) {
|
||||||
|
this.indirectMap = indirectMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
@ -150,12 +203,14 @@ public class MapTest {
|
|||||||
}
|
}
|
||||||
MapTest mapTest = (MapTest) o;
|
MapTest mapTest = (MapTest) o;
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString) &&
|
||||||
|
Objects.equals(this.directMap, mapTest.directMap) &&
|
||||||
|
Objects.equals(this.indirectMap, mapTest.indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
return Objects.hash(mapMapOfString, mapOfEnumString, directMap, indirectMap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -166,6 +221,8 @@ public class MapTest {
|
|||||||
|
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
|
sb.append(" directMap: ").append(toIndentedString(directMap)).append("\n");
|
||||||
|
sb.append(" indirectMap: ").append(toIndentedString(indirectMap)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ public class OuterComposite {
|
|||||||
* @return myBoolean
|
* @return myBoolean
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getMyBoolean() {
|
public Boolean isMyBoolean() {
|
||||||
return myBoolean;
|
return myBoolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
/*
|
||||||
|
* 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: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 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 java.util.Objects;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* StringBooleanMap
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class StringBooleanMap extends HashMap<String, Boolean> {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return super.equals(o);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class StringBooleanMap {\n");
|
||||||
|
sb.append(" ").append(toIndentedString(super.toString())).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(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,8 @@ Name | Type | Description | Notes
|
|||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
**mapMapOfString** | [**Map<String, Map<String, String>>**](Map.md) | | [optional]
|
||||||
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
**mapOfEnumString** | [**Map<String, InnerEnum>**](#Map<String, InnerEnum>) | | [optional]
|
||||||
|
**directMap** | **Map<String, Boolean>** | | [optional]
|
||||||
|
**indirectMap** | [**StringBooleanMap**](StringBooleanMap.md) | | [optional]
|
||||||
|
|
||||||
|
|
||||||
<a name="Map<String, InnerEnum>"></a>
|
<a name="Map<String, InnerEnum>"></a>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
# StringBooleanMap
|
||||||
|
|
||||||
|
## Properties
|
||||||
|
Name | Type | Description | Notes
|
||||||
|
------------ | ------------- | ------------- | -------------
|
||||||
|
|
||||||
|
|
||||||
|
|
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