diff --git a/src/routes/ai.ts b/src/routes/ai.ts index 3193087..f00adb8 100644 --- a/src/routes/ai.ts +++ b/src/routes/ai.ts @@ -162,7 +162,7 @@ const parsedEventSchema = z.object({ content: z.string().optional(), // 详细内容(仅提醒) is_holiday: z.boolean().optional(), // 节假日(仅纪念日) priority: z.enum(['none', 'red', 'green', 'yellow']).optional(), // 颜色(仅提醒) - reminder_times: z.array(z.string()).optional(), // 提前提醒时间点 + reminder_times: z.array(z.string()).optional().nullable(), // 提前提醒时间点 }); // All routes require authentication diff --git a/src/routes/events.ts b/src/routes/events.ts index e920f8a..5f6acf2 100644 --- a/src/routes/events.ts +++ b/src/routes/events.ts @@ -52,7 +52,7 @@ const createEventSchema = z.object({ is_holiday: z.boolean().default(false), is_completed: z.boolean().default(false), priority: z.enum(['none', 'red', 'green', 'yellow']).default('none'), - reminder_times: z.array(z.string()).optional(), // 提醒时间点数组(JSON) + reminder_times: z.array(z.string()).optional().nullable(), // 提醒时间点数组(JSON) }); const updateEventSchema = createEventSchema.partial();