From dc99f864ca64207cc19400fe3828de82f650dde3 Mon Sep 17 00:00:00 2001 From: iwakitakuma33 Date: Tue, 27 May 2025 02:00:36 +0900 Subject: [PATCH] FIX: description null error --- schemas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas.ts b/schemas.ts index f8154ef..9393db0 100644 --- a/schemas.ts +++ b/schemas.ts @@ -407,7 +407,7 @@ export const GitLabMilestoneSchema = z.object({ id: z.number(), iid: z.number(), // Added to match GitLab API title: z.string(), - description: z.string(), + description: z.string().nullable().default(""), state: z.string(), web_url: z.string(), // Changed from html_url to match GitLab API }); @@ -417,7 +417,7 @@ export const GitLabIssueSchema = z.object({ iid: z.number(), // Added to match GitLab API project_id: z.number(), // Added to match GitLab API title: z.string(), - description: z.string(), // Changed from body to match GitLab API + description: z.string().nullable().default(""), // Changed from body to match GitLab API state: z.string(), author: GitLabUserSchema, assignees: z.array(GitLabUserSchema),