skema

IfThenElse

@Serializable
@SerialName(value = "IfThenElse")
data class IfThenElse(val condition: JsonSpec, val then: JsonSpec? = null, val otherwise: JsonSpec? = null) : JsonSpec(source)

Conditional schema. If condition matches, then applies; otherwise otherwise applies. Either branch may be omitted.

Constructors

IfThenElse

constructor(condition: JsonSpec, then: JsonSpec? = null, otherwise: JsonSpec? = null)(source)

Properties

condition

The condition spec.

otherwise

Applied when condition does not match.

then

Applied when condition matches.