4
我正在使用YAML处理Swagger编辑器中的API定义。我想表示以下响应正文:使用Swagger编辑器在YAML中定义响应对象使用Swagger编辑器
{
success: true,
ids: [123456, ...]
}
,这就是我的YAML的样子:
definitions:
SuccessfulResponse:
type: object
properties:
success:
type: boolean
description: True if the all operations were successful
ids:
type: array
items:
id:
type: string
香港专业教育学院尝试了几种不同的方法,但类似这样的,但似乎没有有效的
我如何正确描述上面给出的返回对象?
两个编辑器选项和引用的内容已经改变,不再是有效的。 –
更新了参考 –