Commit 2d4e20a
feat: add ts-to-zod schema generation from spec.types.ts
Add automated Zod schema generation using ts-to-zod:
- New npm script `generate:schemas` to regenerate schemas from spec.types.ts
- Post-processing script for Zod v4 compatibility (zod/v4 import, looseObject)
- src/schemas.generated.ts: Auto-generated schemas
- src/schemas.ts: Re-exports with PascalCase naming for backwards compatibility
The generated schemas provide simpler validation without the custom refinements
in types.ts (like Base64 validation), making them useful for lighter validation
scenarios or as reference implementations.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 2aa697c commit 2d4e20a
File tree
5 files changed
+2093
-23
lines changed- scripts
- src
5 files changed
+2093
-23
lines changed
0 commit comments