我正在通过Swagger编写API文档。 我定义的响应格式为:
definitions:
ResponseFormat:
type: object
properties:
name:
type: string
msg:
type: string
description: Error or success message
data:
type: object
然后,对于每个API,数据(对象)的格式都会改变。我该如何更改。
谢谢!