Skip to content

Commit 82c64b2

Browse files
authored
Merge pull request #56 from purecloudlabs/DEVTOOLING-1604
[DEVTOOLING-1604] Java SDK - needs to escape operation description
2 parents 084aebd + 5808d49 commit 82c64b2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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
@@ -129,6 +129,10 @@ public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> o
129129
if (operations != null) {
130130
List<CodegenOperation> ops = (List<CodegenOperation>) operations.get("operation");
131131
for (CodegenOperation operation : ops) {
132+
if (operation.notes != null) {
133+
// [DEVTOOLING-1604] Escape */* in description - this interferes with javadoc comments and annotations - transforms */* -> *\\/\\*
134+
operation.notes = operation.notes.replaceAll("\\*/\\*","*\\\\\\\\/\\\\\\\\*");
135+
}
132136
for (CodegenParameter param : operation.allParams) {
133137
Map<String, Object> allowableValues = param.allowableValues;
134138
if (allowableValues != null) {

0 commit comments

Comments
 (0)