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

Query params validation fails for numbers with Typebox and are not casted without #919

Open
adriencohen opened this issue Dec 8, 2023 · 0 comments

Comments

@adriencohen
Copy link
Contributor

adriencohen commented Dec 8, 2023

Describe the bug

Passing query params other than string will result in a 400 Bad Request because they are not casted to the correct type before validation with TypeBox. If you are not using TypeBox to describe the schema all query params are string in the response (so they are not correctly typed)

To Reproduce Steps to reproduce the behavior:

Codesandbox

Expected behavior

Correct casting and type validation of query params with or without TypeBox

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

No branches or pull requests

1 participant