You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/01/08 08:05:32 UTC

[GitHub] yhs0092 commented on a change in pull request #493: [SCB-195] Support swagger @Api annotation to specify default tags

yhs0092 commented on a change in pull request #493: [SCB-195] Support swagger @Api annotation to specify default tags
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/493#discussion_r160087774
 
 

 ##########
 File path: swagger/swagger-generator/generator-core/src/main/java/io/servicecomb/swagger/generator/core/OperationGenerator.java
 ##########
 @@ -221,6 +221,24 @@ protected void scanMethodAnnotation() {
       }
       processor.process(annotation, this);
     }
+
+    setDefaultTag();
+  }
+
+  private void setDefaultTag() {
+    // if tag has been defined, do nothing
+    if (null != operation.getTags()) {
 
 Review comment:
   this modify has been rolled back. users determine what will be printed in these fields by themselves.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services