Discriminator

Configures polymorphism using a discriminator property and optional explicit mappings.

Report a problem

Types

Link copied to clipboard
annotation class Mapping(val key: String, val ref: KClass<*>)

Key-value pair for discriminator mappings (name -> $ref / schema id).

Properties

Link copied to clipboard

An array of Mapping annotations defining the relationship between discriminator values and schema classes.

Link copied to clipboard

The name of the property in the payload used to identify the type.