Skip to content
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

Support for intersections and unions in the schema #43

Merged
merged 4 commits into from
Aug 18, 2023

Conversation

GRA0007
Copy link
Member

@GRA0007 GRA0007 commented Aug 17, 2023

Adds support for ZodIntersection, ZodUnion and ZodDiscriminatedUnion in the form's Zod validation schema. Useful for conditional fields. Also added a new example to demonstrate how it can be used.

@GRA0007 GRA0007 requested a review from giraugh August 17, 2023 04:30
@GRA0007 GRA0007 self-assigned this Aug 17, 2023
@changeset-bot
Copy link

changeset-bot bot commented Aug 17, 2023

🦋 Changeset detected

Latest commit: 72d8a73

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stevent-team/react-zoom-form Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@giraugh giraugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may have some false assumptions but we can address them over time.
Looks good! Impressed you managed to sort this one out :)

@GRA0007 GRA0007 merged commit be35389 into main Aug 18, 2023
3 checks passed
@GRA0007 GRA0007 deleted the feat/support-intersections-and-unions branch August 18, 2023 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants