-
-
Notifications
You must be signed in to change notification settings - Fork 181
-
-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined
and unkown
are marked as optional
#242
Comments
Thanks a lot for creating this issue. I will fix that as soon as possible. |
I have now investigated the problem. Zod behaves the same way as Valibot, and theoretically it is not completely wrong, since |
In my opinion, it should be only if |
This issue will be solved in the next minor version of Valibot. |
v0.23.0 is now available. |
For example, with the follow schema:
valibot
returns as:and
is equal to
but it should be:
The text was updated successfully, but these errors were encountered: