Hi, the spec says:
The discriminator object is legal only when using one of the composite keywords oneOf, anyOf, allOf.
What's the meaning behind something like this?
components:
schemas:
Cat:
allOf:
- $ref: '#/components/schemas/Pet'
- $ref: '#/components/schemas/Furry'
- $ref: '#/components/schemas/Cute'
discriminator:
propertyName: "petType"
# ... descriptions of other schemas
I don't see an obvious intepretation for an schema that has both discriminator and allOf.
Hi, the spec says:
What's the meaning behind something like this?
I don't see an obvious intepretation for an schema that has both
discriminatorandallOf.