【发布时间】:2017-11-26 14:35:21
【问题描述】:
我在 swagger.yaml 中有以下定义
Content:
type: object
properties:
text:
type: string
image:
ref: "#/definitions/Image"
allowEmptyValue: true
我得到 Additional properties not allowed: allowEmptyValue as an error
如何使图像成为可选的?即可能只有文字没有图片
【问题讨论】: