Skip to content

Commit dec8587

Browse files
Merge pull request #45 from themooks/master
[NO-JIRA] Add string reserved keyword in Go SDK
2 parents 6de92ff + e88b640 commit dec8587

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public PureCloudGoClientCodegen() {
3030
typeMapping.put("local-date-time", "time.Time");
3131
apiDocTemplateFiles.put("api_json.mustache", ".json");
3232
operationTemplateFiles.put("operation_example.mustache", "-example.txt");
33+
// Add special reserved words
34+
reservedWords.add("string");
3335
}
3436

3537
@Override

0 commit comments

Comments
 (0)