-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Add support for Zod .refine
and .superRefine
#1319
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1319 +/- ##
=======================================
Coverage 94.55% 94.56%
=======================================
Files 231 231
Lines 3823 3825 +2
Branches 1030 1031 +1
=======================================
+ Hits 3615 3617 +2
Misses 82 82
Partials 126 126 ☔ View full report in Codecov by Sentry. |
.refine
and .superRefine
.refine
and .superRefine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a simple test that creates the ZodBridge
from a z.object(...).refine()
and z.object(...).superRefine()
?
Motivation: https://github.com/vazco/uniforms/pull/1319/files#annotation_20741969379
This allows to pass to the
ZodBridge
schema that hasrefine
orsuperRefine
.Example: