swagger-api/swagger-codegen

[JAVA] Javadoc backslash escape issue

Open

#6240 aperta il 4 ago 2017

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)HTML (5474 fork)batch import
Client: JavaFeature: DocumentationIssue: Bughelp wanted

Metriche repository

Star
 (12.701 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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 .

Guida contributor