Skip to main content

Basic Discriminator without Mapping

GET 

/discriminator-basic

Schema:

type: object
discriminator:
propertyName: type
properties:
type:
type: string
oneOf:
- $ref: '#/components/schemas/TypeA'
- $ref: '#/components/schemas/TypeB'

Responses

Successful response

Schema

    oneOf

    type stringrequired

    Possible values: [typeA]

    propA string
    type string
Loading...