Skip to content

Commit f048420

Browse files
committed
debounce keys with a maximum size of 512
1 parent 36cded7 commit f048420

File tree

1 file changed

+2
-2
lines changed
  • packages/core/src/v3/schemas

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export const TriggerTaskRequestBody = z.object({
205205
region: z.string().optional(),
206206
debounce: z
207207
.object({
208-
key: z.string(),
208+
key: z.string().max(512),
209209
delay: z.string(),
210210
})
211211
.optional(),
@@ -259,7 +259,7 @@ export const BatchTriggerTaskItem = z.object({
259259
region: z.string().optional(),
260260
debounce: z
261261
.object({
262-
key: z.string(),
262+
key: z.string().max(512),
263263
delay: z.string(),
264264
})
265265
.optional(),

0 commit comments

Comments
 (0)