Skip to content

Commit

Permalink
add modelFilename for bodyParam
Browse files Browse the repository at this point in the history
  • Loading branch information
dphuang2 committed Oct 10, 2023
1 parent 5d1d03b commit 9720ed6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9720ed6

Please sign in to comment.