-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
fix: ZodObject pick/omit/required/partial strict args keys #2716
Conversation
✅ Deploy Preview for guileless-rolypoly-866f8a ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
This would be great to have! @colinhacks would it be possible to merge this? 🙇🏾 as a work around i've been using satisfies to make it typesafe for now. Its not very ideal
|
Oh this would be very useful! |
+1 to this - Would be super useful |
@ShravanSunder Would you be willing to share your implementation of |
I think it was |
Thanks a lot @ShravanSunder!
did the job. |
This PR add the ability to ZodObject pick/omit/required/partial functions to only allow valid object keys, instead of allowing any unkown keys (current behavior).
This fix the following Issues: #2607
New behavior: