Skip to content

Commit 39763a8

Browse files
matthesriekewing328
authored andcommitted
fix unescaped description in requestBody (#857)
Fix unescaped description in requestBody
1 parent aa19369 commit 39763a8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ public CodegenOperation fromOperation(String path,
23682368
bodyParameterName = (String) op.vendorExtensions.get("x-codegen-request-body-name");
23692369
}
23702370
bodyParam = fromRequestBody(requestBody, schemas, imports, bodyParameterName);
2371-
bodyParam.description = requestBody.getDescription();
2371+
bodyParam.description = escapeText(requestBody.getDescription());
23722372
postProcessParameter(bodyParam);
23732373

23742374
bodyParams.add(bodyParam);

0 commit comments

Comments
 (0)