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: replace t.Number() for Type.Integer() #1017

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

and-rose
Copy link

Fixes #1011

Tightens the schema used for Elysia's custom t.Integer() to reject numbers with any decimal content.

If there's some other considerations I'm missing feel free to let me know.

@and-rose and-rose changed the title replace t.Number() for Type.Integer() fix: replace t.Number() for Type.Integer() Jan 17, 2025
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.

Nested t.Integer() validation too loose
1 participant