A2uiSchemaKeyword.IfThen


class A2uiSchemaKeyword.IfThen : A2uiSchemaKeyword


Conditional subschema applicator (if-then-else).

Note: Standard JSON Schema Draft 2020-12 permits only one if-then-else block per schema node. To apply multiple conditional rules to a single node, wrap multiple IfThen keywords inside an AllOf list.

Summary

Public constructors

IfThen(
    ifSchema: A2uiSchema,
    thenSchema: A2uiSchema,
    elseSchema: A2uiSchema?
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

A2uiSchema?

optional subschema evaluated if ifSchema fails

A2uiSchema

condition subschema

A2uiSchema

subschema evaluated if ifSchema matches

Public constructors

IfThen

Added in 1.0.0-alpha01
IfThen(
    ifSchema: A2uiSchema,
    thenSchema: A2uiSchema,
    elseSchema: A2uiSchema? = null
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

elseSchema

Added in 1.0.0-alpha01
val elseSchemaA2uiSchema?

optional subschema evaluated if ifSchema fails

ifSchema

Added in 1.0.0-alpha01
val ifSchemaA2uiSchema

condition subschema

thenSchema

Added in 1.0.0-alpha01
val thenSchemaA2uiSchema

subschema evaluated if ifSchema matches