Skip to content

Commit 0f6add6

Browse files
waleedlatif1claude
andcommitted
fix(jira): update environment Zod schema to accept ADF objects
Match the description field schema change — environment also passes through toAdf() so its Zod schema must accept objects too. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4d2e0f9 commit 0f6add6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/api/tools/jira/update

apps/sim/app/api/tools/jira/update/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const jiraUpdateSchema = z.object({
2222
components: z.array(z.string()).optional(),
2323
duedate: z.string().optional(),
2424
fixVersions: z.array(z.string()).optional(),
25-
environment: z.string().optional(),
25+
environment: z.union([z.string(), z.record(z.unknown())]).optional(),
2626
customFieldId: z.string().optional(),
2727
customFieldValue: z.string().optional(),
2828
notifyUsers: z.boolean().optional(),

0 commit comments

Comments
 (0)