Skip to content

Commit 7df1f8e

Browse files
soulflywing328
authored andcommitted
Update DefaultGenerator.java (#4760)
1 parent 9cf147f commit 7df1f8e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultGenerator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ private void configureSwaggerInfo() {
154154
// set a default description if none if provided
155155
config.additionalProperties().put("appDescription",
156156
"No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)");
157+
config.additionalProperties().put("unescapedAppDescription", "No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)");
157158
} else {
158159
config.additionalProperties().put("appDescription", config.escapeText(info.getDescription()));
160+
config.additionalProperties().put("unescapedAppDescription", info.getDescription());
159161
}
160162

161163
if (info.getContact() != null) {

0 commit comments

Comments
 (0)