Skip to content

Commit e90e211

Browse files
committed
fix: add ttl field to TaskResource zod schema to prevent silent stripping
1 parent 4d99f68 commit e90e211

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/v3/schemas/resources.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const TaskResource = z.object({
1313
triggerSource: z.string().optional(),
1414
schedule: ScheduleMetadata.optional(),
1515
maxDuration: z.number().optional(),
16+
ttl: z.string().or(z.number().nonnegative()).optional(),
1617
// JSONSchema type - using z.unknown() for runtime validation to accept JSONSchema7
1718
payloadSchema: z.unknown().optional(),
1819
});

0 commit comments

Comments
 (0)