diff --git a/libs/dfx-openapi/src/lib/client.ts b/libs/dfx-openapi/src/lib/client.ts index f7f7d2d9..2807c25f 100644 --- a/libs/dfx-openapi/src/lib/client.ts +++ b/libs/dfx-openapi/src/lib/client.ts @@ -368,6 +368,9 @@ export function createQuerySerializer(options?: QuerySerializerOpti continue; } if (Array.isArray(value)) { + if (value.length === 0) { + continue; + } search.push( serializeArrayParam(name, value, { style: 'form',