8000 "z.object({ ...schema.shape })" does not validate fields when using zod/v4-mini · colinhacks zod · Discussion #4711 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

"z.object({ ...schema.shape })" does not validate fields when using zod/v4-mini #4711

Answered by andersk
I-am-tk asked this question in Q&A
Discussion options

You must be logged in to vote

Dog.shape is undefined at runtime, despite being declared in the type declarations. This is a clear bug. Either it needs to be defined at runtime, or it needs to be removed from the type declarations. I’ve filed this as #4727.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@I-am-tk
Comment options

@dosubot
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by I-am-tk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
0