getAllowDiscriminatedUnions

public final boolean getAllowDiscriminatedUnions()

Enable discriminated unions: variant object types expressed as anyOf with a shared constant discriminator field per variant. oneOf is never used — it is rejected by OpenAI strict mode and silently ignored by Gemini. When false (default), the schema contains no union types beyond null unions.

Return

The value of the AllowDiscriminatedUnions property.