Add cookbook recipe schema, types, and validator#625
Open
steve-calvert-glean wants to merge 1 commit into
Open
Add cookbook recipe schema, types, and validator#625steve-calvert-glean wants to merge 1 commit into
steve-calvert-glean wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Jul 19, 2026
steve-calvert-glean
marked this pull request as ready for review
July 19, 2026 19:37
Foundation for the flag-gated Cookbooks section: a zod schema as the single source of truth for recipe frontmatter (nested recipe: block; page title/description double as recipe title/summary), build-failing validation helpers with tests, and a generated JSON Schema artifact (pnpm recipes:schema) for external consumers such as the planned glean-cookbooks plugin and cookbook repo CI. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
steve-calvert-glean
force-pushed
the
cookbook-schema
branch
from
July 19, 2026 23:39
bdd35e1 to
0a5f27a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Foundation for the flag-gated Cookbooks section: a zod schema as the single source of truth for recipe MDX frontmatter (nested
recipe:block — page title/description double as recipe title/summary), build-failing validation helpers, and a generated JSON Schema artifact (pnpm recipes:schema) for external consumers (planned glean-cookbooks plugin, cookbook repo CI).Part 1 of a 4-PR stack; nothing user-visible until #628, and the whole section stays behind the
cookbooksfeature flag (off by default).Verification
pnpm vitest run src/types/recipe.test.ts— 10 tests (enum/id/date validation, defaults, id↔filename match)🤖 Generated with Claude Code