You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "YaoHaishi (JIRA)" <ji...@apache.org> on 2018/01/08 03:25:00 UTC

[jira] [Commented] (SCB-195) Improve support to Swagger tag

    [ https://issues.apache.org/jira/browse/SCB-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16315620#comment-16315620 ] 

YaoHaishi commented on SCB-195:
-------------------------------

In addition, Empty value filter logic is added into `SwaggerDefinitionProcessor`. Because I've found that once we use `@SwaggerDefinition` annotation but don't specify all of the fields, 
the empty field will be generated in swagger file as empty string `""`, and the official swagger editer(I mean [http://editor.swagger.io/#/|http://editor.swagger.io/#/]) will mark such place as error like below:
!the empty string marked as error.png!

> Improve support to Swagger tag
> ------------------------------
>
>                 Key: SCB-195
>                 URL: https://issues.apache.org/jira/browse/SCB-195
>             Project: Apache ServiceComb
>          Issue Type: Improvement
>          Components: Java-Chassis
>            Reporter: YaoHaishi
>            Assignee: YaoHaishi
>         Attachments: the empty string marked as error.png
>
>
> As a user, I want to use io.swagger.annotations.Api annotation to set default tags to operations.
> At present, ServiceComb doesn't support `@Api` annotation, we need to provide a processor to handle this annotation.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)