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 z.string().uuid() support, fiz nullable() and nullish() and fix output type #23

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

DenisBessa
Copy link
Contributor

This PR adds support for z.string().uuid(). Now the init function generates a random uuid in this scenario.

Also, it fixes the behavior of the nullable() and nullish() validations, to return null values instead of empty ones.

@toiroakr
Copy link
Owner

@DenisBessa
Thank you!
It seems there's an issue with the Actions settings, which is causing the tests to fail, but I've verified everything locally, so I'll go ahead and merge it.

@toiroakr toiroakr merged commit 6be822d into toiroakr:main Jan 10, 2025
1 of 3 checks passed
Copy link

🎉 This PR is included in version 1.3.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants