WORK-458
ID:WORK-458Status:ready

Token-contract JSON Schema for preset authoring

SPEC-111 §6 — publish a JSON Schema derived from the universal token contract (SPEC-048) so JSON presets get editor validation/autocomplete and a future visual editor has a foundation.

Priority:mediumComplexity:moderateMilestone:v0.25.0Source:SPEC-111
claude/v0.25.0-workitems View source

Criteria completion

Criteria completion: 0 of 4 (0%) checked; tracking started on Jun 23, no incremental history yet0%25%50%75%100%Jun 23Jul 11

Tracking started Jun 23 — check back for trends.

Branches 3
History 1
  1. a6bdcba
    Created (ready)by bjornolofandersson

Acceptance Criteria

  • A JSON Schema is generated from the universal token contract and published at a stable path/URL
  • A JSON preset declaring "$schema": "…" validates against it, with editor autocomplete
  • The preset-pack scaffold seeds $schema in its example preset (WORK-448/WORK-456)
  • The schema is regenerated/checked in CI so it tracks the token contract (no drift)

Approach

Derive the schema from the typed token contract in packages/types (codegen from the TS types, or a hand-maintained schema with a CI drift check). Keep it the single source editors and the validator (WORK-459) reference.

Dependencies

  • WORK-456 — the pack format

References

  • SPEC-111 §6; SPEC-048 (universal token contract)