我想知道是否可以在swagger.yaml/json中使用异或运算符。 例如,如果我有以下内容:
PostableEntity:
properties:
first_property:
type: string
second_property:
type: string
minLength: 1
description: foo
third_property:
type: number
required:
- third_property
如果second_property未设置,我如何使first_property为必填项?反之亦然。