fix unescaped description in requestBody (#857)

Fix unescaped description in requestBody
This commit is contained in:
matthesrieke 2018-08-21 16:28:32 +02:00 committed by William Cheng
parent aa19369466
commit 39763a8ca7

View File

@ -2368,7 +2368,7 @@ public class DefaultCodegen implements CodegenConfig {
bodyParameterName = (String) op.vendorExtensions.get("x-codegen-request-body-name");
}
bodyParam = fromRequestBody(requestBody, schemas, imports, bodyParameterName);
bodyParam.description = requestBody.getDescription();
bodyParam.description = escapeText(requestBody.getDescription());
postProcessParameter(bodyParam);
bodyParams.add(bodyParam);