Files
Tabish Bidiwale 87cb206e88 feat: add JSON output and Zod validation change proposals
Add three OpenSpec change proposals for enhancing the CLI:
- add-spec-commands: Resource-based spec commands with JSON output
- add-change-commands: Resource-based change commands with JSON output
- add-zod-validation: Runtime validation with detailed error reporting

These proposals enable programmatic access to specs and changes,
improving integration with CI/CD pipelines and external tooling.
2025-08-15 17:40:06 +10:00

583 B

ADDED Requirements

Requirement: Archive Validation

The archive command SHALL validate changes before applying them to ensure data integrity.

Scenario: Pre-archive validation

  • WHEN executing openspec archive change-name
  • THEN validate the change structure first
  • AND only proceed if validation passes
  • AND show validation errors if it fails

Scenario: Force archive without validation

  • WHEN executing openspec archive change-name --no-validate
  • THEN skip validation (unsafe mode)
  • AND show warning about skipping validation