Skip to content

Commit 0e15f61

Browse files
Merge pull request #49 from themooks/master
[NO-JIRA] Fix JavaSDK new Case model (reserved word)
2 parents 15e91ee + 8381ccf commit 0e15f61

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PureCloudJavaClientCodegen.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
104104
if (op.returnType != null && op.responses.get(0).jsonSchema.contains("#/components/schemas/Configuration")) {
105105
op.returnType = "ModelConfiguration";
106106
}
107+
108+
if (op.returnType != null && op.responses.get(0).jsonSchema.contains("#/components/schemas/Case")) {
109+
op.returnType = "ModelCase";
110+
}
107111

108112
return op;
109113
}

0 commit comments

Comments
 (0)