WarUI

Schema-based validation (JSON Schema)

GRID-A15-F10P1beyond-baselinePlanned

Derive cell and row rules from a JSON Schema (draft 2020-12 subset), so client and server can share one source of truth. Unsupported keywords are reported, never ignored silently.

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

Live example

Editable JSON Schema editor next to a grid of customers.

Expected behavior

Editing the schema re-derives the rules live. The keywords type, minimum, maximum, pattern, enum, required, format, minLength and maxLength map to cells. dependentRequired maps to row validators. Unsupported keywords are listed.

Planned API surface

validationSchemaschemaAdapterschemaKeywordSupportschemaWarnings

Acceptance criteria

  • The documented keyword support table matches the implementation tests. (pending)
  • Strict mode throws a configuration error for unknown keywords. (pending)
  • The schema adapter is pluggable, for example for alternative schema libraries. (pending)
  • No schema library is bundled by default unless it is tree-shakeable. (pending)