我想在 Swagger 2.0 中声明模型类型的定义属性
这个定义正确吗?(特别是类型:StatusObject 部分)
definitions:
MyObject:
type: "object"
properties:
id:
type: "number"
country:
type: "string"
status:
type: StatusObject
StatusObject:
type: "object"
properties:
code:
type: "number"
shortMessage:
type: "string"
message:
type: "string"
谢谢!