Discriminator info of the union type.

interface IDiscriminator {
    mapping?: Record<string, string>;
    propertyName: string;
}

Properties

mapping?: Record<string, string>

Mapping of the discriminator value to the schema name.

This property is valid only for IReference typed IOneOf.oneof elements. Therefore, key of mapping is the discriminator value, and value of mapping is the schema name like #/components/schemas/SomeObject.

propertyName: string

Property name for the discriminator.