WarUI

Validation engine boundary

GRID-A01-F17P1baselinePlanned

Validation is a separate engine that runs synchronous and asynchronous validators at cell and row level. It stores results keyed by row id and column id. Editing proposes values, and validation decides whether they commit, so business rules stay out of renderers.

Planned. This page shows the specification from issue #177. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

An editable product grid with a quantity >= 0 rule and an async SKU uniqueness rule (simulated 500 ms).

Expected behavior

Invalid edits follow the selected policy. While async validation is pending, the cell shows a pending state. A newer edit cancels the pending validation of an older one.

Planned API surface

ValidatorColumnDef.validatorsGridOptions.rowValidatorsapi.validateapi.getValidationErrorsvalidation:changedValidationPolicy

Acceptance criteria

  • Validation results are queryable without a renderer (pending)
  • Async validators receive an AbortSignal (pending)
  • Validate all returns a promise that resolves with a summary (pending)
  • Row-level validators run after cell-level validators (pending)