cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [1/3] cxf git commit: Fixing behavior with subresources and newer Swagger UI
Date Fri, 23 Sep 2016 11:40:32 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes ec80c2414 -> a6c934ba2
  refs/heads/3.1.x-fixes 0947c0a20 -> d345b60a4
  refs/heads/master 7a5e2690c -> f24ad7978


Fixing behavior with subresources and newer Swagger UI


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

Branch: refs/heads/3.1.x-fixes
Commit: d345b60a487dd14aaf5d89542a3574f795d885df
Parents: 0947c0a
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Fri Sep 23 13:38:59 2016 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Fri Sep 23 13:38:59 2016 +0200

----------------------------------------------------------------------
 .../org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/d345b60a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
----------------------------------------------------------------------
diff --git a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
index ec52215..194a49e 100644
--- a/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
+++ b/rt/rs/description-swagger/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
@@ -106,8 +106,7 @@ public class DefaultSwagger2Serializers extends SwaggerSerializers implements
Sw
                     ClassResourceInfo cri = operations.get(entry.getKey());
 
                     tag = new Tag();
-                    String tagName = StringUtils.removeStart(cri.getURITemplate().getValue(),
"/");
-                    tag.setName(StringUtils.isEmpty(tagName) ? "_" : tagName);
+                    tag.setName(cri.getURITemplate().getValue().replaceAll("/", "_"));
                     if (javadocProvider != null) {
                         tag.setDescription(javadocProvider.getClassDoc(cri));
                     }


Mime
View raw message