From 9720ed64c5a57f07d31d862759cbfc1421aa7372 Mon Sep 17 00:00:00 2001 From: dphuang2 Date: Tue, 10 Oct 2023 11:01:10 -0700 Subject: [PATCH] add modelFilename for bodyParam --- .../src/main/java/org/openapitools/codegen/DefaultCodegen.java | 3 +++ 1 file changed, 3 insertions(+) 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 ca630a1c76..6e2e0ea848 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