diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustMayastorCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustMayastorCodegen.java index a9474138a0d3..5f843cd189d5 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustMayastorCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustMayastorCodegen.java @@ -515,7 +515,7 @@ public String getTypeDeclaration(Schema p) { } return "Vec<" + getTypeDeclaration(inner) + ">"; } else if (ModelUtils.isMapSchema(p)) { - Schema inner = getAdditionalProperties(p); + Schema inner = ModelUtils.getAdditionalProperties(p); if (inner == null) { LOGGER.warn("{}(map property) does not have a proper inner type defined. Default to string", p.getName()); inner = new StringSchema().description("TODO default missing map inner type to string");