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 2022/11/15 06:23:00 UTC

[jira] [Closed] (SCB-2031) There is a problem in the mapping logic between pojo consumer meta and swagger operation

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

liubao closed SCB-2031.
-----------------------
    Resolution: Fixed

> There is a problem in the mapping logic between pojo consumer meta and swagger operation
> ----------------------------------------------------------------------------------------
>
>                 Key: SCB-2031
>                 URL: https://issues.apache.org/jira/browse/SCB-2031
>             Project: Apache ServiceComb
>          Issue Type: Bug
>          Components: Java-Chassis
>    Affects Versions: java-chassis-2.0.0, java-chassis-2.0.1, java-chassis-2.0.2, java-chassis-2.1.0
>            Reporter: Haishi Yao
>            Assignee: Haishi Yao
>            Priority: Major
>
> There are two RPC consumer scenario should be covered.
> 1. There are two method in the pojo interface with the same method name pointing to the two different provider swagger operations:
> {code:java}
> interface OptionalIntf {
>   @ApiOperation(value = "", nickname = "sayHi")
>   String sayHello(Long index);
>   @ApiOperation(value = "", nickname = "sayHello")
>   String sayHello(String name);
> }
> {code}
> 2. There are two method in the pojo interface with different method name pointing to the same provider swagger operation:
> {code:java}
> interface OptionalIntf {
>   @ApiOperation(value = "", nickname = "sayHi")
>   String sayHello(Long index);
>   @ApiOperation(value = "", nickname = "sayHi")
>   CompletableFuture<ResponseEntity<String>> sayHelloEntityAsync(Long index);
> }
> {code}
> In order to achieve such feature, the mapping relationship should be from consumer pojo method to provider swagger operationId, instead in the reverse direction.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)