From 2e37358039272dce1349bfe1771b69ce8f16da3d Mon Sep 17 00:00:00 2001 From: p-sw Date: Sat, 6 Jun 2026 23:32:55 +0900 Subject: [PATCH] fix: fix dailyScheduleSchema --- src/openrouter/schema.ts | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/src/openrouter/schema.ts b/src/openrouter/schema.ts index 115f50f..acd33cd 100644 --- a/src/openrouter/schema.ts +++ b/src/openrouter/schema.ts @@ -46,20 +46,27 @@ const endTimeString = { }; export const dailyScheduleSchema = { - type: "array", - minItems: 48, - maxItems: 48, - items: { - type: "object", - additionalProperties: false, - properties: { - start: timeString, - end: endTimeString, - activity: { type: "string" }, - notes: { type: "string" }, + type: "object", + additionalProperties: false, + properties: { + items: { + type: "array", + minItems: 48, + maxItems: 48, + items: { + type: "object", + additionalProperties: false, + properties: { + start: timeString, + end: endTimeString, + activity: { type: "string" }, + notes: { type: "string" }, + }, + required: ["start", "end", "activity", "notes"], + }, }, - required: ["start", "end", "activity"], }, + required: ["items"], }; export const monthlyScheduleSchema = {