Skip to content

feat(validate): add --json output for machine-readable validation#10

Open
sonwr wants to merge 1 commit intofeat/validate-and-dry-runfrom
feat/validate-json-output
Open

feat(validate): add --json output for machine-readable validation#10
sonwr wants to merge 1 commit intofeat/validate-and-dry-runfrom
feat/validate-json-output

Conversation

@sonwr
Copy link

@sonwr sonwr commented Feb 28, 2026

Summary

  • add --json support to heymark validate for machine-readable output
  • include structured fields: valid, skillCount, and errors[] entries with tool, path, error
  • keep existing human-readable validate output unchanged when --json is not passed
  • update help text and README with validate --json usage and example
  • add integration tests for valid/invalid JSON validation flows

Testing

  • npm test
    • pass: validate --json returns structured errors and exit code 1 when invalid
    • pass: validate --json returns valid=true and exit code 0 when valid

Notes

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