add api info as file header to ruby templates

This commit is contained in:
wing328
2016-01-31 17:08:47 +08:00
parent f42f9acf35
commit 5a53814346
30 changed files with 373 additions and 0 deletions

View File

@@ -129,6 +129,9 @@ public class DefaultGenerator extends AbstractGenerator implements Generator {
if (info.getVersion() != null) {
config.additionalProperties().put("version", info.getVersion());
}
if (info.getTermsOfService() != null) {
config.additionalProperties().put("termsOfService", info.getTermsOfService());
}
}
StringBuilder hostBuilder = new StringBuilder();