liubao68 edited a comment on issue #2081:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2081#issuecomment-734186595


   补充问下, `我们接口定义的请求参数是List ,然后传个空,接收下来是[null]`, 这个你是怎么请求的? 我用最新代码测试了下, 结果是空数组。 
下面的测试用例是可以通过的:
   
   ```
     @Path("queryListMULTI")
     @GET
     public String queryListMULTI(@ApiParam(collectionFormat = "multi") 
@QueryParam("queryList") List<String> queryList) {
       return queryList == null ? "null" : queryList.toString();
     }
   
   TestMgr.check("[]",
           
restTemplate.getForObject("cse://jaxrs/queryList/queryListMULTI?queryList=", 
String.class));
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to