From 8381ccf9209bc68ee7f0fa2347f063aad22cce73 Mon Sep 17 00:00:00 2001 From: themooks Date: Wed, 23 Jul 2025 10:50:55 +0200 Subject: [PATCH] Fix JavaSDK new Case model (reserved word) --- .../codegen/languages/PureCloudJavaClientCodegen.java | 4 ++++ 1 file changed, 4 insertions(+) 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; }