diff --git a/generator/konfig-generator-api/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/generator/konfig-generator-api/src/main/java/org/openapitools/codegen/DefaultCodegen.java index ca630a1c7..6e2e0ea84 100644 --- a/generator/konfig-generator-api/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/generator/konfig-generator-api/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -4773,6 +4773,9 @@ public CodegenOperation fromOperation(String path, } } + if (bodyParam != null && bodyParam.dataType != null) + bodyParam.modelFilename = toModelFilename(bodyParam.dataType); + op.hasOneRequiredParamIncludingRequestBodyProperties = requiredParamsWithRequestBodyProperties.size() == 1; // add imports to operation import tag