forked from loafle/openapi-generator-original
add version in properties
This commit is contained in:
@@ -40,6 +40,8 @@ public class DefaultGenerator implements Generator {
|
||||
Info info = swagger.getInfo();
|
||||
if(info.getTitle() != null)
|
||||
config.additionalProperties().put("appName", info.getTitle());
|
||||
if(info.getVersion() != null)
|
||||
config.additionalProperties().put("appVersion", info.getVersion());
|
||||
if(info.getDescription() != null)
|
||||
config.additionalProperties().put("appDescription", info.getDescription());
|
||||
if(info.getContact() != null) {
|
||||
|
||||
Reference in New Issue
Block a user