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 2019/04/12 14:38:00 UTC
[jira] [Updated] (SCB-1184) upgrade swagger from 1.5.12 to 1.5.22
to support convert swagger to html
[ https://issues.apache.org/jira/browse/SCB-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
YaoHaishi updated SCB-1184:
---------------------------
Description:
Before this issue, if a REST operation is defined as below, the response type in schema is org.springframework.http.ResponseEntity instead of the generic type of ResponseEntity:
{code:java}
@Path("/responseEntityString")
@GET
public CompletableFuture<ResponseEntity<String>> responseEntityString()
{code}
The response type of operation "responseEntityString" is expected to be String, but Java-Chassis takes the ResponseEntity as response data type in schema.
This issue fixed this problem.
> upgrade swagger from 1.5.12 to 1.5.22 to support convert swagger to html
> ------------------------------------------------------------------------
>
> Key: SCB-1184
> URL: https://issues.apache.org/jira/browse/SCB-1184
> Project: Apache ServiceComb
> Issue Type: Task
> Components: Java-Chassis
> Reporter: wujimin
> Assignee: wujimin
> Priority: Major
> Fix For: java-chassis-1.2.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Before this issue, if a REST operation is defined as below, the response type in schema is org.springframework.http.ResponseEntity instead of the generic type of ResponseEntity:
> {code:java}
> @Path("/responseEntityString")
> @GET
> public CompletableFuture<ResponseEntity<String>> responseEntityString()
> {code}
> The response type of operation "responseEntityString" is expected to be String, but Java-Chassis takes the ResponseEntity as response data type in schema.
> This issue fixed this problem.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)