diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaClientCodegen.java index 2e119d570d5d..bb1482e46a94 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaClientCodegen.java @@ -104,6 +104,10 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation if (op.returnType != null && op.responses.get(0).jsonSchema.contains("#/components/schemas/Configuration")) { op.returnType = "ModelConfiguration"; } + + if (op.returnType != null && op.responses.get(0).jsonSchema.contains("#/components/schemas/Case")) { + op.returnType = "ModelCase"; + } return op; }