Repository navigation
feat(web_core): write the v0.8 basic catalog in Zod 4 - #38
Closed
louis-bompart wants to merge 1 commit into
Closed
louis-bompart wants to merge 1 commit into
louis-bompart wants to merge 1 commit into
Conversation
The v0.8 catalog generator writes strict Zod 4 objects annotated with specMeta() instead of Zod 3 objects annotated with spec(). The catalog's document, validation schema and accepted payloads are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 29, 2026
Collaborator
Author
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.
Description
This PR moves the v0.8 basic catalog to Zod 4, stacked on #37. Its document,
validationSchemaand accepted payloads are unchanged.src/v0_8/scripts/generate-catalog.mjsnow generates:z.strictObjectannotated with.meta(specMeta(...)), instead of a Zod 3.strict()object wrapped inspec();stylestheme (ThemeSchema) the same way.v0.8 has no common types and no catalog mixins, so nothing else needed to change.
Breaking, per the changelog: the v0.8 basic catalog's schemas are Zod 4.
Next: the exported common types and authoring helpers,
spec(),exclusiveUnionandfromZod3, and then removing Zod 3.Validation
yarn buildfrom clean, with the generator rerun (stable output)node --test "dist/**/*.test.js": 1453 passing, 0 failing, 42 todo (the known cases)node tests/conformance/conformance_test.mjs: all vectors passingyarn lint: 0 errors, same warning countyarn format:checkyarn testintypescript/catalogs/{mcp,vegachart},typescript/renderers/{lit,react,markdown-it}andtypescript/agents/a2ui_agent. Angular builds and passestest:unit(328) andtest:integration(222);test:closure-compilerneeds Java 21.toJson()andvalidationSchemaof every code catalog: byte for byte identical;Part of a2ui-project#2160
Pre-launch Checklist
One time:
For this PR:
🤖 Generated with Claude Code