您需要具有
attachment属性的包装对象的附加定义:
"attachmentWrapper": { "type": "object", "properties": { "attachment": { "$ref": "#/definitions/attachment" } }}
然后更改您的数组定义以将此包装器用作项目类型:
"attachments": { "type":"array", "items": { "$ref": "#/definitions/attachmentWrapper" }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)