-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Closed
Labels
clarificationrequests to clarify, but not change, part of the specrequests to clarify, but not change, part of the specdiscriminator
Milestone
Description
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 schemasI don't see an obvious intepretation for an schema that has both discriminator and allOf.
Metadata
Metadata
Assignees
Labels
clarificationrequests to clarify, but not change, part of the specrequests to clarify, but not change, part of the specdiscriminator