Skip to content

Commit 0915b78

Browse files
Merge pull request #52 from themooks/master
[NO-JIRA] Java SDK - Fix reserved words for Model names
2 parents 59e67e9 + 9efa2a3 commit 0915b78

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ public CodegenOperation fromOperation(String path, String httpMethod, Operation
105105
op.bodyParam.dataType = "Object";
106106
}
107107

108-
if (op.returnType != null && op.returnType.equals("Object") && op.responses.size() > 0 && op.responses.get(0).jsonSchema.contains("#/components/schemas/Empty")) {
108+
if (op.returnType != null && op.returnType.equals("Object") && op.responses.size() > 0 && op.responses.get(0).jsonSchema.contains("#/components/schemas/Empty\"")) {
109109
op.returnType = "Empty";
110110
}
111111

112-
if (op.returnType != null && op.responses.get(0).jsonSchema.contains("#/components/schemas/Configuration")) {
112+
if (op.returnType != null && op.responses.get(0).jsonSchema.contains("#/components/schemas/Configuration\"")) {
113113
op.returnType = "ModelConfiguration";
114114
}
115115

116-
if (op.returnType != null && op.responses.get(0).jsonSchema.contains("#/components/schemas/Case")) {
116+
if (op.returnType != null && op.responses.get(0).jsonSchema.contains("#/components/schemas/Case\"")) {
117117
op.returnType = "ModelCase";
118118
}
119119

0 commit comments

Comments
 (0)