Skip to content

fix(schema): make visible optional for validation#290

Open
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:codex/fix-visible-zod-44
Open

fix(schema): make visible optional for validation#290
EfeDurmaz16 wants to merge 1 commit into
vercel-labs:mainfrom
EfeDurmaz16:codex/fix-visible-zod-44

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

  • mark renderer visible fields as explicitly optional in schema definitions
  • update spec type inference so s.optional() fields are optional in inferred spec types
  • add regression coverage for validating specs that omit visible

Fixes #287.

Verification

  • pnpm exec vitest run packages/core/src/schema.test.ts
  • pnpm type-check
  • temporary local smoke with @json-render/core using zod@4.4.3: pnpm exec vitest run packages/core/src/schema.test.ts

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 15, 2026

@EfeDurmaz16 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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.

fix: Element visible field rejected as required under Zod 4.4

1 participant