Skip to content

fix: make TemplateManifest schema strict to reject unknown keys#163

Merged
ben-rogerson merged 3 commits into
mainfrom
fix/template-manifest-not-strict
May 13, 2026
Merged

fix: make TemplateManifest schema strict to reject unknown keys#163
ben-rogerson merged 3 commits into
mainfrom
fix/template-manifest-not-strict

Conversation

@ben-rogerson
Copy link
Copy Markdown
Owner

Summary

Added .strict() to the TemplateManifest Zod schema so unknown top-level keys in generata.template.json trigger validation errors instead of being silently dropped. Template authors who mistype field names now get immediate feedback. Includes test coverage for rejection of unknown keys.

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm test

Added .strict() to the TemplateManifest Zod schema so unknown top-level keys in generata.template.json trigger validation errors instead of being silently dropped. Template authors who mistype field names now get immediate feedback. Includes test coverage for rejection of unknown keys.
@ben-rogerson ben-rogerson enabled auto-merge (squash) May 13, 2026 22:24
@ben-rogerson ben-rogerson merged commit a1bf0e4 into main May 13, 2026
1 check passed
@ben-rogerson ben-rogerson deleted the fix/template-manifest-not-strict branch May 13, 2026 22:25
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