Issue #1146: escape the response description.

This prevents line breaks in string literals, which are not allowed in Java.
This commit is contained in:
Paul Ebermann 2015-08-28 19:39:01 +02:00
parent 28579cee03
commit cdd104d3fb

View File

@ -963,7 +963,7 @@ public class DefaultCodegen {
} else {
r.code = responseCode;
}
r.message = response.getDescription();
r.message = escapeText(response.getDescription());
r.schema = response.getSchema();
r.examples = toExamples(response.getExamples());
r.jsonSchema = Json.pretty(response);