cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [3/3] cxf git commit: Fixing behavior with subresources and newer Swagger UI
Date Fri, 23 Sep 2016 11:40:34 GMT
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/a6c934ba
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a6c934ba
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a6c934ba

Branch: refs/heads/3.0.x-fixes
Commit: a6c934ba238f76da93642014b7dd326a31b2b8d4
Parents: ec80c24
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Fri Sep 23 13:40:20 2016 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Fri Sep 23 13:40:20 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/a6c934ba/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
----------------------------------------------------------------------
diff --git a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
index d9efb96..560926f 100644
--- a/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
+++ b/rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/DefaultSwagger2Serializers.java
@@ -107,8 +107,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