swagger编辑抱怨不是有效的参数定义

时间:2018-03-02 01:35:40

标签: java swagger

我是新来的招摇。我有一个摇摇欲坠的yaml

    /myApp/**:
get:
  tags:
    - myApp-controller
  summary: process a GET request for all URLs
  operationId: getRequestWithGhostURLsUsingGET
  produces:
    - application/vnd.api+json
  parameters:
    - name: multiParams
      in: query
      description: multiParams
      required: true
      items:
        type: object
        additionalProperties:
          type: string

它抱怨multiParams出错 细节  宾语 代码:“ONE_OF_MISSING”  参数:数组[0] 消息:“不是有效的参数定义”

从技术上讲,方法定义如下所示:

    @RequestMapping(value={"/**"},
            method = RequestMethod.GET,
            produces = {"application/vnd.api+json"} )
public MLRequest getRequestWithGhostURLs(HttpServletRequest request,
                                             @RequestParam MultiValueMap<String,String> multiParams){
}

我似乎无法找到如何描述multiValue请求参数。

0 个答案:

没有答案