From ab571d211de494f116a74bb403267b10e75460a8 Mon Sep 17 00:00:00 2001 From: Sven Groot Date: Wed, 28 May 2025 15:44:15 +0200 Subject: [PATCH] fix(schemas): make avatar_url nullable in GitLabUserSchema Users without profile pictures have null avatar_url values in GitLab API responses. This change prevents errors when calling get_issue tool. --- schemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas.ts b/schemas.ts index 9393db0..d8c78f1 100644 --- a/schemas.ts +++ b/schemas.ts @@ -399,7 +399,7 @@ export const GitLabUserSchema = z.object({ username: z.string(), // Changed from login to match GitLab API id: z.number(), name: z.string(), - avatar_url: z.string(), + avatar_url: z.string().nullable(), web_url: z.string(), // Changed from html_url to match GitLab API });