From 3af10a3844bbf12f551ff5fc46a9505b50e0700a Mon Sep 17 00:00:00 2001 From: iwakitakuma33 Date: Wed, 28 May 2025 01:31:37 +0900 Subject: [PATCH] FIX: line range start and end optional --- schemas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas.ts b/schemas.ts index 9393db0..e5f8e46 100644 --- a/schemas.ts +++ b/schemas.ts @@ -549,13 +549,13 @@ export const GitLabDiscussionNoteSchema = z.object({ .object({ start: z.object({ line_code: z.string(), - type: z.enum(["new", "old", "expanded"]), + type: z.enum(["new", "old", "expanded"]).optional(), old_line: z.number().nullable(), new_line: z.number().nullable(), }), end: z.object({ line_code: z.string(), - type: z.enum(["new", "old", "expanded"]), + type: z.enum(["new", "old", "expanded"]).optional(), old_line: z.number().nullable(), new_line: z.number().nullable(), }),