forked from loafle/openapi-generator-original
Issue #1146: escape the response description.
This prevents line breaks in string literals, which are not allowed in Java.
This commit is contained in:
parent
28579cee03
commit
cdd104d3fb
@ -963,7 +963,7 @@ public class DefaultCodegen {
|
|||||||
} else {
|
} else {
|
||||||
r.code = responseCode;
|
r.code = responseCode;
|
||||||
}
|
}
|
||||||
r.message = response.getDescription();
|
r.message = escapeText(response.getDescription());
|
||||||
r.schema = response.getSchema();
|
r.schema = response.getSchema();
|
||||||
r.examples = toExamples(response.getExamples());
|
r.examples = toExamples(response.getExamples());
|
||||||
r.jsonSchema = Json.pretty(response);
|
r.jsonSchema = Json.pretty(response);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user