MatchesComputedValue

Validation that checks that a form value matches a given computedValue.

When the value being validated is different from the result of evaluating computedValue, then an issue is emitted with the provided code (defaults to DEFAULT_CODE). This issue contains a value data property with the value that was validated and a computedValue data property with the value that was computed.

A validation of this kind is automatically added to declared computed schemas.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val code: String

Issue code to use when the value differs from the computedValue.

Link copied to clipboard

Computed value that should be matched.

Link copied to clipboard

Dependencies of the computation. Mapping of keys to the paths this computation depends on. Keys can be used within a ComputationContext to access the value of the dependencies.

Link copied to clipboard

Set of external context dependencies of the computation.

Link copied to clipboard

Severity of the issue emitted when the value differs from the computedValue.