RuleValue

data class RuleValue(val description: ArrayDeque<String>, val value: Any)

Result of applying a schema validation rule.

Inputs: a description stack (outermost prefix first) and an invalid value. Output: buildDescription concatenates the stack into a test case description. Determinism: description order is preserved; grow prepends a prefix for composed rules.

Equality compares descriptions by list contents to mirror previous Java semantics.

Constructors

Link copied to clipboard
constructor(description: ArrayDeque<String>, value: Any)
constructor(description: String, value: Any)

Properties

Link copied to clipboard
Link copied to clipboard
val value: Any

Functions

Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun grow(prefix: String, newValue: Any): RuleValue
Link copied to clipboard
open override fun hashCode(): Int