swagger-api/swagger-codegen

[JAVA] Javadoc backslash escape issue

開放

#6,240 建立於 2017年8月4日

 (1 則留言) (1 個反應) (0 位負責人)HTML (5,474 個分叉)batch import
Client: JavaFeature: DocumentationIssue: Bughelp wanted

倉庫指標

星標
 (12,701 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Description

When codegen renders a method description into a Javadoc comment it seems to not correctly remove \"escapes.

Sample

"description":"Test\nRequires user permission: \"system.variables-rest:view\"."

Result:

     * Test  Requires user permission: \"system.variables-rest:view\".

It does not preserve the linebreaks and it does preserve the \

Swagger-codegen version

2.2.3

Swagger declaration file content or url
    "description":"Test\nRequires user permission: \"system.variables-rest:view\"."
Command line used for generation
java -jar ... generate -l java -i swagger.json -o .

貢獻者指南