-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Add a GH Actions workflow to validate that generated schemas are in sync with generator scripts. This will catch broken Zod schemas before publish, validate that schemas are regenerated when generator logic changes, and prevents stale/mismatched schemas.
Acceptance Criteria:
- TypeScript compilation - Zod schemas should compile without errors
- Schema consistency - Committed should schemas match generator output (dev MUST run
npm run buildafter updating generators, otherwise will fail)
Workflow:
on: [pull_request, push]
steps:
- npm ci
- npm run build
- git diff --exit-code # Fail if schemas don't match
- npx tsc --noEmit zod/index.ts # Fail if TS errorsMetadata
Metadata
Assignees
Labels
No labels