Discriminator with Nested Schemas without Mapping
GET/discriminator-nested
Schema:
type: object
discriminator:
propertyName: type
properties:
type:
type: string
oneOf:
- $ref: '#/components/schemas/NestedTypeA'
- $ref: '#/components/schemas/NestedTypeB'
Responses
- 200
Successful response