WarUI

Schema validation with structured error report

GRID-A05-F10P0baselinePlanned

Provides a validator that returns every problem in an AST at once, each with a stable code, a JSON-pointer path and a human-readable message. The UI can then highlight the offending builder nodes, and servers can return machine-readable 400 responses.

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

Live example

An editable AST textarea pre-filled with an AST containing four deliberate errors, plus an issues table.

Expected behavior

Collect-all lists all four issues with codes and paths. Fail-fast lists only the first. Clicking an issue selects the corresponding JSON range and the corresponding builder node.

Planned API surface

validateQuery()ValidationResultissues[].codeissues[].pathissues[].messagevalidationMode

Acceptance criteria

  • Issue codes are documented, stable, and change only in major versions (pending)
  • Paths use RFC 6901 JSON Pointer syntax (pending)
  • Valid ASTs return {ok:true, issues:[]} (pending)
  • The validator is pure and deterministic, with no network access (pending)