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

Handle failing Zod number validations #10

Merged
merged 2 commits into from
Mar 1, 2024

Conversation

nigelnindodev
Copy link
Owner

@nigelnindodev nigelnindodev commented Mar 1, 2024

Creates a custom Zod transformer that fixes parsing of numbers from strings in request bodies or params.

Also note that a ZodError will be thrown if parsing the number fails.

Closes #9

@nigelnindodev nigelnindodev self-assigned this Mar 1, 2024
@nigelnindodev nigelnindodev merged commit 88a6e17 into master Mar 1, 2024
@nigelnindodev nigelnindodev deleted the fix/elegantly-handle-failed-zod-validations branch March 1, 2024 16:32
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.

Elegantly Handle Failed Zod Validations
1 participant