Skip to content

v0.3.1 - JSON Schema Validation

Choose a tag to compare

@acossta acossta released this 19 Aug 21:44
· 28 commits to main since this release

What's Changed

✨ Features

  • Comprehensive JSON schema validation with Zod
  • Custom format validators for dates, UUIDs, emails, currency codes, and percentages
  • Extended validation with business rules and cross-entity checks
  • Warning system for non-critical issues (orphaned stakeholders, SAFEs without terms, etc.)
  • JSON Schema generation via captan schema command
  • Schema validation commands: captan validate and captan validate --extended
  • Automatic schema file generation on captan init for IDE support
  • 45 new tests covering schema validation, error messages, and integration scenarios

🐛 Bug Fixes

  • Entity type validation for SAFEs and option pools (preventing invalid entity combinations)

🔧 Infrastructure

  • Updated Zod dependency to ^3.24.1 for compatibility with zod-to-json-schema

📚 Documentation

  • Enhanced README with comprehensive JSON Schema & Validation documentation
  • Added IDE integration instructions
  • Added validation comparison tables

Installation

npm install -g captan@0.3.1

Full Changelog: v0.3.0...v0.3.1