Discriminator with Mapping and No Shared Properties
GET/discriminator-mapping-no-properties
Schema:
type: object
discriminator:
propertyName: type
mapping:
typeA: "#/components/schemas/TypeA"
typeB: "#/components/schemas/TypeB"
oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'
Responses
- 200
Successful response