Closed
Description
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
- I’m willing to open a PR (see CONTRIBUTING.md)