Skip to content

Commit 823ac04

Browse files
committed
Merge pull request #534 from Juliens/master
add version in properties
2 parents 0cf1c3c + c46f3f9 commit 823ac04

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
@@ -41,6 +41,8 @@ public List<File> generate() {
4141
Info info = swagger.getInfo();
4242
if(info.getTitle() != null)
4343
config.additionalProperties().put("appName", info.getTitle());
44+
if(info.getVersion() != null)
45+
config.additionalProperties().put("appVersion", info.getVersion());
4446
if(info.getDescription() != null)
4547
config.additionalProperties().put("appDescription", info.getDescription());
4648
if(info.getContact() != null) {

0 commit comments

Comments
 (0)