forked from loafle/openapi-generator-original
Update DefaultGenerator.java (#4760)
This commit is contained in:
parent
9cf147f215
commit
7df1f8e200
@ -154,8 +154,10 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
|
|||||||
// set a default description if none if provided
|
// set a default description if none if provided
|
||||||
config.additionalProperties().put("appDescription",
|
config.additionalProperties().put("appDescription",
|
||||||
"No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)");
|
"No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)");
|
||||||
|
config.additionalProperties().put("unescapedAppDescription", "No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)");
|
||||||
} else {
|
} else {
|
||||||
config.additionalProperties().put("appDescription", config.escapeText(info.getDescription()));
|
config.additionalProperties().put("appDescription", config.escapeText(info.getDescription()));
|
||||||
|
config.additionalProperties().put("unescapedAppDescription", info.getDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info.getContact() != null) {
|
if (info.getContact() != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user