forked from loafle/openapi-generator-original
Add API Version to Codeine Additional Properties
Also updated htmlDocs template so html documentation shows API version.
This commit is contained in:
@@ -54,6 +54,9 @@ public class DefaultGenerator implements Generator {
|
||||
if(license.getUrl() != null)
|
||||
config.additionalProperties().put("licenseUrl", license.getUrl());
|
||||
}
|
||||
if(info.getVersion() != null) {
|
||||
config.additionalProperties().put("version", info.getVersion());
|
||||
}
|
||||
}
|
||||
|
||||
StringBuilder hostBuilder = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user