diff --git a/src/lib/client.ts b/src/lib/client.ts index 3991d86..bb3ec2b 100644 --- a/src/lib/client.ts +++ b/src/lib/client.ts @@ -106,6 +106,10 @@ export class Client { }); } else if (typeof v === 'object') { out[k] = JSON.stringify(v); + } else if (k === 'search' && typeof v === 'string') { + // The records list API expects `search[]=value` (tuple), not a plain + // `search=value` string. https://github.com/colinhacks/zod + out['search[]'] = v; } else { out[k] = String(v); }