Skip to content

BUILD #3: DTCG v1 design token validation#77

Draft
nujovich wants to merge 4 commits into
mainfrom
hermes/build/mint-dtcg-validation
Draft

BUILD #3: DTCG v1 design token validation#77
nujovich wants to merge 4 commits into
mainfrom
hermes/build/mint-dtcg-validation

Conversation

@nujovich

@nujovich nujovich commented Jul 6, 2026

Copy link
Copy Markdown
Owner

Card: https://github.com/nujovich/mint-radar/issues/3

Milestones

  • Milestone 1 -- DTCG parser and structural validation: validate tokens.json against DTCG Format Module v1, check $type, $value types, nesting structure
  • Milestone 2 -- Semantic coherence: detect broken references, circular dependencies, naming convention consistency, type-mismatch cross-references
  • Milestone 3 -- CI integration: pre-commit hook, GitHub Actions template, exit codes, output formats
  • Milestone 4 -- Extras: $extensions validation, snapshot comparison (mint-ds diff)

nujovich and others added 4 commits June 16, 2026 11:26
- add lib/dtcg-validator.mjs with DTCG Format Module v1 validation
- add validate command to CLI: mint-ds validate <file> --spec dtcg
- support validation rules: required $type, $value per type, valid nesting
- exit codes: 0=ok, 1=warnings, 2=errors
- output formats: terminal (default), JSON (--json)
- add comprehensive test suite (31 tests)
- Detect broken references to non-existent tokens and groups
- Detect circular dependencies via DFS
- Check naming convention consistency (kebab-case vs camelCase)
- Detect type mismatch cross-references
- Add 9 new tests covering all semantic checks
- Support {semantic: false} option to skip semantic validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant