mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 14:40:53 +00:00
Merge pull request #1150 from ePaul/bugfix/1146-escape-line-breaks-in-response-description
jaxrs: escape line breaks in response description
This commit is contained in:
commit
2b1a63a7de
@ -1073,7 +1073,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);
|
||||||
|
@ -45,7 +45,7 @@ public class {{classname}} {
|
|||||||
public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}},
|
public Response {{nickname}}({{#allParams}}{{>queryParams}}{{>pathParams}}{{>headerParams}}{{>bodyParams}}{{>formParams}}{{#hasMore}},
|
||||||
{{/hasMore}}{{/allParams}})
|
{{/hasMore}}{{/allParams}})
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.{{nickname}}({{#allParams}}{{#isFile}}fileDetail{{/isFile}}{{^isFile}}{{paramName}}{{/isFile}}{{#hasMore}},{{/hasMore}}{{/allParams}});
|
return delegate.{{nickname}}({{#allParams}}{{#isFile}}fileDetail{{/isFile}}{{^isFile}}{{paramName}}{{/isFile}}{{#hasMore}},{{/hasMore}}{{/allParams}});
|
||||||
}
|
}
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user