Skip to content

Commit

Permalink
fix(dfx-openapi): Prevent orphan ampersands in query from empty arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafnik committed Dec 8, 2024
1 parent 2d029a0 commit 8f165f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/dfx-openapi/src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,9 @@ export function createQuerySerializer<T = unknown>(options?: QuerySerializerOpti
continue;
}
if (Array.isArray(value)) {
if (value.length === 0) {
continue;
}
search.push(
serializeArrayParam(name, value, {
style: 'form',
Expand Down

0 comments on commit 8f165f1

Please sign in to comment.