We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Description
the default query serializer (v0.8.0) seems to not handle empty arrays correctly.
Reproduction
import { defaultQuerySerializer } from "openapi-fetch"; console.log( defaultQuerySerializer({ q: "term", categories: [], search: [], limit: 10, offset: 0, }) ); // logs: // q=term&&&limit=10&offset=0 // ^^^
Checklist
The text was updated successfully, but these errors were encountered:
Thanks for filing. What would be expected behavior here? Would it be specifying the key but set to nothing?
Edit: besides the extra ampersands
Sorry, something went wrong.
i think i'd expect an empty array to match the behavior for null and undefined (which currently is to skip the param)
null
undefined
Successfully merging a pull request may close this issue.
Description
the default query serializer (v0.8.0) seems to not handle empty arrays correctly.
Reproduction
Checklist
The text was updated successfully, but these errors were encountered: