-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
Object encoding in query parameters #606
Labels
bug
Something isn't working
Comments
Just realized that it may not be the intended usage for query parameters to be anything beyond strings: https://elysiajs.com/validation/schema-type#query If thats the case, maybe it would make sense to only every allow strings or optional strings to be passed as query schema to the handler? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Calling the API via the treaty encodes objects passed as query params as literally "[object Object]" instead of URL encoding it.
and on the receiving end:
results in
Is this as it should work and we are just expected to only send primitive values via query parameters?
Thanks!
The text was updated successfully, but these errors were encountered: