Skip to content

Commit

Permalink
Merge pull request #10557 from swagger-api/issue-10556
Browse files Browse the repository at this point in the history
add info object extensions to additional property map
  • Loading branch information
HugoMario committed Nov 11, 2020
2 parents 66de203 + 1e62cd5 commit e9cf755
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ protected void configureSwaggerInfo() {
if (info.getTermsOfService() != null) {
config.additionalProperties().put("termsOfService", config.escapeText(info.getTermsOfService()));
}
if (info.getVendorExtensions() != null && !info.getVendorExtensions().isEmpty()) {
config.additionalProperties().put("info-extensions", info.getVendorExtensions());
}
}

protected void generateModelTests(List<File> files, Map<String, Object> models, String modelName) throws IOException {
Expand Down

0 comments on commit e9cf755

Please sign in to comment.