swagger spec响应多个数组

时间:2016-07-19 03:21:36

标签: swagger swagger-ui

我的swagger.yaml在这里

  responses:
    200:
      description: An array of Students
      schema:
        type: array
        items:
          $ref: '#/definitions/Students'
definitions:
  Students:
    type: array
    items:
      $ref: '#/definitions/Student'
  Student:
    properties:
      name:
        type: string

但是,结果是

this image

我想像这样改变

{
  "Students":
  [
     [1, 2, "tom", true]
  ],
  "OtherOne":[true, 1, "test"]
}

感谢您阅读@ __ @

0 个答案:

没有答案