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

Add ZodDiscriminatedUnion to ZodFirstPartySchemaTypes #1002

Conversation

jacobmischka
Copy link
Contributor

Is there a reason why ZodDiscriminatedUnion, which is a ZodFirstPartyTypeKind, isn't in the ZodFirstPartySchemaTypes union type? It seems like an oversight?

@colinhacks colinhacks merged commit db82a0c into colinhacks:master Mar 18, 2022
@colinhacks
Copy link
Owner

Indeed. Thanks for the PR!

jacobmischka added a commit to interval/interval-node that referenced this pull request Jun 6, 2022
Effectively the same, but provides better error messages.

Changes to `MethodDef` can be reverted when `ZodDiscriminatedUnion` is
added to `ZodFirstPartySchemaTypes`.

colinhacks/zod#1002
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