You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "liubao (Jira)" <ji...@apache.org> on 2019/10/26 04:00:00 UTC
[jira] [Closed] (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 ]
liubao closed SCB-1511.
-----------------------
> 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 20m
> 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)