Skip to content

Commit eeb89e1

Browse files
authored
Merge pull request #11 from yepcode/bugfix/fix-parameters-schemas
Fix parameters definition in execute process tools
2 parents 628513d + 90eec27 commit eeb89e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tools/processes-tool-definitions.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export const ExecuteProcessAsyncSchema = z.object({
144144
"Unique identifier of the process to execute asynchronously (UUID or slug)"
145145
),
146146
parameters: z
147-
.union([z.string(), z.record(z.any())])
147+
.any()
148148
.optional()
149149
.describe(
150150
"Process parameters (JSON string or object). Must match the process parameter schema."
@@ -174,7 +174,7 @@ export const ExecuteProcessSyncSchema = z.object({
174174
"Unique identifier of the process to execute synchronously (UUID or slug)"
175175
),
176176
parameters: z
177-
.union([z.string(), z.record(z.any())])
177+
.any()
178178
.optional()
179179
.describe(
180180
"Process parameters (JSON string or object). Must match the process parameter schema."
@@ -406,7 +406,7 @@ export const processesToolDefinitions = [
406406
"Unique identifier of the process to execute asynchronously (UUID or slug)",
407407
},
408408
parameters: {
409-
oneOf: [{ type: "string" }, { type: "object" }],
409+
type: ["string", "object"],
410410
description:
411411
"Process parameters (JSON string or object). Must match the process parameter schema.",
412412
},
@@ -457,7 +457,7 @@ export const processesToolDefinitions = [
457457
"Unique identifier of the process to execute synchronously (UUID or slug)",
458458
},
459459
parameters: {
460-
oneOf: [{ type: "string" }, { type: "object" }],
460+
type: ["string", "object"],
461461
description:
462462
"Process parameters (JSON string or object). Must match the process parameter schema.",
463463
},

0 commit comments

Comments
 (0)