@@ -212,7 +212,7 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
212212 ApiResponse apiResponse = findMethodResponse (operation .getResponses ());
213213
214214 if (apiResponse != null ) {
215- Schema response = ModelUtils .getSchemaFromResponse (apiResponse );
215+ Schema response = ModelUtils .getSchemaFromResponse (openAPI , apiResponse );
216216 if (response != null ) {
217217 CodegenProperty cm = fromProperty ("response" , response , false );
218218 op .vendorExtensions .put ("x-codegen-response" , cm );
@@ -345,7 +345,7 @@ public String getTypeDeclaration(Schema p) {
345345 return getSchemaType (p ) + "<oatpp::Object<" + getTypeDeclaration (inner ) + ">>" ;
346346 }
347347 if (ModelUtils .isMapSchema (p )) {
348- Schema inner = getAdditionalProperties (p );
348+ Schema inner = ModelUtils . getAdditionalProperties (p );
349349 return getSchemaType (p ) + "<std::string, " + getTypeDeclaration (inner ) + ">" ;
350350 } else if (ModelUtils .isByteArraySchema (p )) {
351351 return "std::string" ;
@@ -430,7 +430,7 @@ public String toDefaultValue(Schema p) {
430430 return "\" \" " ;
431431 }
432432 } else if (ModelUtils .isMapSchema (p )) {
433- String inner = getSchemaType (getAdditionalProperties (p ));
433+ String inner = getSchemaType (ModelUtils . getAdditionalProperties (p ));
434434 return "std::map<std::string, " + inner + ">()" ;
435435 } else if (ModelUtils .isArraySchema (p )) {
436436 ArraySchema ap = (ArraySchema ) p ;
0 commit comments