Skip to content

Commit c46f3f9

Browse files
committed
add version in properties
1 parent 925caa2 commit c46f3f9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen/DefaultGenerator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ public List<File> generate() {
4040
Info info = swagger.getInfo();
4141
if(info.getTitle() != null)
4242
config.additionalProperties().put("appName", info.getTitle());
43+
if(info.getVersion() != null)
44+
config.additionalProperties().put("appVersion", info.getVersion());
4345
if(info.getDescription() != null)
4446
config.additionalProperties().put("appDescription", info.getDescription());
4547
if(info.getContact() != null) {

0 commit comments

Comments
 (0)