Skip to main content

Discriminator with Shared Properties without Mapping

GET 

/discriminator-shared

Schema:

type: object
discriminator:
propertyName: type
properties:
type:
type: string
sharedProp:
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
    sharedProp string
Loading...