JsonSchemaDiscriminator

data class JsonSchemaDiscriminator(val propertyName: String, val mapping: Map<String, String>? = null)(source)

Adds support for polymorphism. The discriminator is the schema property name that is used to differentiate between other schema that inherit this schema. The property name used MUST be defined at this schema and it MUST be in the required property list. When used, the value MUST be the name of this schema or any schema that inherits it.

Report a problem

Constructors

Link copied to clipboard
constructor(propertyName: String, mapping: Map<String, String>? = null)

Properties

Link copied to clipboard
Link copied to clipboard