File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/core/src/v3/schemas Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +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 ( ) ,
16+ ttl : z . string ( ) . or ( z . number ( ) . nonnegative ( ) . int ( ) ) . optional ( ) ,
1717 // JSONSchema type - using z.unknown() for runtime validation to accept JSONSchema7
1818 payloadSchema : z . unknown ( ) . optional ( ) ,
1919} ) ;
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ const taskMetadata = {
189189 triggerSource : z . string ( ) . optional ( ) ,
190190 schedule : ScheduleMetadata . optional ( ) ,
191191 maxDuration : z . number ( ) . optional ( ) ,
192- ttl : z . string ( ) . or ( z . number ( ) . nonnegative ( ) ) . optional ( ) ,
192+ ttl : z . string ( ) . or ( z . number ( ) . nonnegative ( ) . int ( ) ) . optional ( ) ,
193193 payloadSchema : z . unknown ( ) . optional ( ) ,
194194} ;
195195
You can’t perform that action at this time.
0 commit comments