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.
This commit is contained in:
Sven Groot
2025-05-28 15:44:15 +02:00
parent f8b1444afd
commit ab571d211d

View File

@ -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
});