Skip to content

Fix type error, improve CI pipeline, and complete example coverage#24

Merged
gvonness-apolitical merged 1 commit intomainfrom
feature/codebase-cleanup-phase-all
Feb 15, 2026
Merged

Fix type error, improve CI pipeline, and complete example coverage#24
gvonness-apolitical merged 1 commit intomainfrom
feature/codebase-cleanup-phase-all

Conversation

@gvonness-apolitical
Copy link
Collaborator

Summary

  • Fix TS2339 type error in check-spec-schema-sync.ts (lines 174-177) with proper type assertion for the allOf conditional array — tsc --noEmit now passes cleanly
  • Bump ajv 8.17.1 → 8.18.0 and @types/node 20.19.30 → 20.19.33
  • Add spec/** to CI path triggers so spec-only changes run validation
  • Add tsc --noEmit, check:refs, and check:coverage steps to CI pipeline
  • Extract shared AJV utilities (createAjv, loadSchema) into scripts/lib/ajv-utils.ts, removing duplication between validate-schemas.ts and validate-examples.ts
  • Add example files for 3 uncovered schemas: annotations, asset-index, and provenance — achieving 15/15 schema coverage (was 12/15)

Test plan

  • npx tsc --noEmit passes with 0 errors
  • npm test passes — 16 schemas compiled, 44 examples validated
  • npm run check:sync — 65/65 types synchronized
  • npm run check:refs — 26/26 cross-references valid
  • npm run check:coverage — 15/15 schemas covered, 8/8 extensions covered

- Fix TS2339 type error in check-spec-schema-sync.ts with proper
  type assertion for allOf conditional array
- Bump ajv 8.17.1->8.18.0 and @types/node 20.19.30->20.19.33
- Add spec/** path trigger to CI so spec changes run validation
- Add tsc --noEmit, check:refs, and check:coverage to CI pipeline
- Extract shared AJV utilities into scripts/lib/ajv-utils.ts to
  remove duplication between validate-schemas.ts and validate-examples.ts
- Add annotations, asset-index, and provenance example files to
  achieve 15/15 schema coverage (was 12/15)
@gvonness-apolitical gvonness-apolitical merged commit 124ce74 into main Feb 15, 2026
2 checks passed
@gvonness-apolitical gvonness-apolitical deleted the feature/codebase-cleanup-phase-all branch February 15, 2026 13:37
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