Skip to content

Add cookbook recipe schema, types, and validator#625

Open
steve-calvert-glean wants to merge 1 commit into
mainfrom
cookbook-schema
Open

Add cookbook recipe schema, types, and validator#625
steve-calvert-glean wants to merge 1 commit into
mainfrom
cookbook-schema

Conversation

@steve-calvert-glean

@steve-calvert-glean steve-calvert-glean commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

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 cookbooks feature 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

@vercel

vercel Bot commented Jul 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
glean-developer-site Ready Ready Preview, Comment Jul 19, 2026 11:39pm

Request Review

steve-calvert-glean commented Jul 19, 2026

Copy link
Copy Markdown
Contributor Author

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>
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