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

fix empty string not throwing error on number field #557

Merged
merged 1 commit into from
May 23, 2024

Conversation

diegoalzate
Copy link
Contributor

@diegoalzate diegoalzate commented May 23, 2024

overview

turns out zod automatically parses and empty string as 0. this gives us a manual check on empty strings

reference: colinhacks/zod#2461

@diegoalzate diegoalzate added the bug Something isn't working label May 23, 2024
@diegoalzate diegoalzate self-assigned this May 23, 2024
Copy link

vercel bot commented May 23, 2024

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

Name Status Preview Comments Updated (UTC)
core ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 1:25pm
forum-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2024 1:25pm

Copy link
Collaborator

@MartinBenediktBusch MartinBenediktBusch left a comment

Choose a reason for hiding this comment

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

works.

@diegoalzate diegoalzate merged commit 660af0e into develop May 23, 2024
5 checks passed
@diegoalzate diegoalzate deleted the diego/fix-nullable-num-field branch May 23, 2024 13:31
diegoalzate added a commit that referenced this pull request May 23, 2024
fix empty string not throwing error (#557)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants