We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6de79f commit a912c53Copy full SHA for a912c53
1 file changed
packages/server/src/api/rpc/index.ts
@@ -240,7 +240,7 @@ export class RPCApiHandler<Schema extends SchemaDef = SchemaDef> implements ApiH
240
if (!this.isValidModel(client, lowerCaseFirst(itemModel))) {
241
return this.makeBadInputErrorResponse(`operation at index ${i} has unknown model: ${itemModel}`);
242
}
243
- if (itemArgs !== undefined && itemArgs !== null && typeof itemArgs !== 'object') {
+ if (itemArgs !== undefined && itemArgs !== null && (typeof itemArgs !== 'object' || Array.isArray(itemArgs))) {
244
return this.makeBadInputErrorResponse(`operation at index ${i} has invalid "args" field`);
245
246
0 commit comments