我的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
但是,结果是
我想像这样改变
{
"Students":
[
[1, 2, "tom", true]
],
"OtherOne":[true, 1, "test"]
}
感谢您阅读@ __ @