Skip to content

Why is strict mode required #1755

Answered by colinhacks
efreethy asked this question in Q&A
Discussion options

You must be logged in to vote

You can use Zod without strict mode but the inferred types will be incorrect. Specifically, all object keys will be optional. There may be other unexpected behaviors but that's the main one. If that's okay for your team then you don't need strict mode.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JacobWeisenburger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1750 on December 24, 2022 16:42.