DiscriminatorDescription

DiscriminatorDescription
DiscriminatorDescription

Discriminator configuration used within composite schemas (oneOf/anyOf) to select the matching sub-schema based on payload property values.

JSON Example
{
    "mapping": [
        {
            "discriminator_key": "string",
            "schema_ref": "string"
        }
    ],
    "property_name": "string"
}
mapping
Optional

Mapping of discriminator values to their corresponding schema descriptions. Field introduced in 32.1.4. Maximum of 32 items allowed. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

string
property_name
Optional

Name of the JSON property whose value determines which sub-schema applies. Field introduced in 32.1.4. Allowed with any value in Enterprise, Essentials, Basic, Enterprise with Cloud Services edition.

Property Of