Skip to content

zod schema generator does not recognize union types #236

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

Closed
alisabzevari opened this issue Nov 9, 2022 · 1 comment · Fixed by #237
Closed

zod schema generator does not recognize union types #236

alisabzevari opened this issue Nov 9, 2022 · 1 comment · Fixed by #237
Labels
good first issue Good for newcomers

Comments

@alisabzevari
Copy link
Contributor

It seems like the implementation does not recognize the union types when enabling withObjectType option.

I get unhandled scalar name error.

Seems like we should add a condition to handle unions here:

const generateNameNodeZodSchema = (

@Code-Hex
Copy link
Owner

@alisabzevari published as v0.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants