Skip to content

Commit e85c146

Browse files
committed
fix: Allow workflow run source to be nullable
1 parent 99944c1 commit e85c146

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dto/workflows.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export const V1Alpha1WorkflowRunSchema = z.object({
4747
finished_at: z.optional(z.coerce.date()),
4848
result: z.any(),
4949
state: z.enum(['pending', 'running', 'finished', 'failed']),
50-
source: z.string().optional(),
50+
source: z.string().optional().nullable(),
5151
})
5252
export type V1Alpha1WorkflowRun = z.infer<typeof V1Alpha1WorkflowRunSchema>
5353

@@ -119,7 +119,7 @@ export const V1Alpha1WorkflowRunReadResponseSchema = z.object({
119119
finished_at: z.optional(z.coerce.date()),
120120
result: z.any(),
121121
state: z.enum(['pending', 'running', 'finished', 'failed']),
122-
source: z.string().optional(),
122+
source: z.string().optional().nullable(),
123123
})
124124
/**
125125
* V1Alpha1WorkflowRunReadResponse is a type for a response to a read request for a workflow run.

0 commit comments

Comments
 (0)