FIX: description null error

This commit is contained in:
iwakitakuma33
2025-05-27 02:00:36 +09:00
parent 8ba33986f3
commit dc99f864ca

View File

@ -407,7 +407,7 @@ export const GitLabMilestoneSchema = z.object({
id: z.number(), id: z.number(),
iid: z.number(), // Added to match GitLab API iid: z.number(), // Added to match GitLab API
title: z.string(), title: z.string(),
description: z.string(), description: z.string().nullable().default(""),
state: z.string(), state: z.string(),
web_url: z.string(), // Changed from html_url to match GitLab API 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 iid: z.number(), // Added to match GitLab API
project_id: z.number(), // Added to match GitLab API project_id: z.number(), // Added to match GitLab API
title: z.string(), 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(), state: z.string(),
author: GitLabUserSchema, author: GitLabUserSchema,
assignees: z.array(GitLabUserSchema), assignees: z.array(GitLabUserSchema),