diff --git a/src/cron/tool/CronSchemas.ts b/src/cron/tool/CronSchemas.ts index 752f9f822..2e78c807f 100644 --- a/src/cron/tool/CronSchemas.ts +++ b/src/cron/tool/CronSchemas.ts @@ -26,7 +26,7 @@ export const CRON_SCHEDULE_SCHEMA = { properties: { type: { const: "delay" }, amount: { type: "number", exclusiveMinimum: 0 }, - unit: { enum: ["second", "minute", "hour", "day"] }, + unit: { type: "string", enum: ["second", "minute", "hour", "day"] }, }, }, ],