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

Make use of discriminated unions if oneOf discriminator is defined #106

Merged
merged 3 commits into from
Mar 31, 2023
Merged

Make use of discriminated unions if oneOf discriminator is defined #106

merged 3 commits into from
Mar 31, 2023

Conversation

dominik-parkopedia
Copy link
Contributor

This PR ensures that we make use of Zod's discriminated unions if an oneOf discriminator is defined. It also ensures that we treat single value string enums as literals.

More details:

@vercel
Copy link

vercel bot commented Mar 31, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
openapi-zod-client ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 31, 2023 at 1:09PM (UTC)

@astahmer
Copy link
Owner

hey, LGTM ! 👍 could you add a changeset so we can merge it directly ?
thank you for your time

@dominik-parkopedia
Copy link
Contributor Author

@astahmer Sure! Hope that's okay. Haven't used changesets before …

@astahmer
Copy link
Owner

yes perfect ! thanks

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