You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "Haishi Yao (Jira)" <ji...@apache.org> on 2019/10/10 12:13:00 UTC

[jira] [Resolved] (SCB-1511) when use method override, the generated swagger body is wrong

     [ https://issues.apache.org/jira/browse/SCB-1511?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Haishi Yao resolved SCB-1511.
-----------------------------
    Fix Version/s: java-chassis-1.3.0
       Resolution: Fixed

> when use method override, the generated swagger body is wrong
> -------------------------------------------------------------
>
>                 Key: SCB-1511
>                 URL: https://issues.apache.org/jira/browse/SCB-1511
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>            Reporter: liubao
>            Assignee: liubao
>            Priority: Major
>             Fix For: java-chassis-1.3.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> For example:
>  
> ```
> public class Test {
>   @ApiOperation(value="helloWithValue", nickname="helloWithValue")
>    public String hello(String name, String value);
>  
>   @ApiOperation(value="hello", nickname="hello")
>    public String hello(String name);
> }
> ```
>  
> The generated swagger will have randomly helloBdoy like:
> ```
> helloBody:
>    properties:
>       name: String
> ```
>  
> or 
>  
>  
> ```
> helloBody:
>    properties:
>       name: String
>       value: String
> ```
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)