cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: Making it possible to disable the license value in Swagger2Feature
Date Tue, 29 Aug 2017 14:19:06 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 39bd1fe48 -> ca1fa2faa


Making it possible to disable the license value in Swagger2Feature


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/ca1fa2fa
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/ca1fa2fa
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/ca1fa2fa

Branch: refs/heads/master
Commit: ca1fa2faac597908fa1f375a7b0857115f6fe3ed
Parents: 39bd1fe
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Tue Aug 29 15:18:50 2017 +0100
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Tue Aug 29 15:18:50 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ca1fa2fa/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
----------------------------------------------------------------------
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
index 0eaa720..d27551b 100644
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
+++ b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/Swagger2Feature.java
@@ -290,6 +290,8 @@ public class Swagger2Feature extends AbstractSwaggerFeature {
         }
         if (theLicense == null) {
             theLicense = DEFAULT_LICENSE_VALUE;
+        } else if (theLicense.isEmpty()) {
+            theLicense = null;
         }
         beanConfig.setLicense(theLicense);
         


Mime
View raw message