Skip to content

Commit

Permalink
feat(gitlab): Make owner and fork properties optional
Browse files Browse the repository at this point in the history
  • Loading branch information
cong-toquang committed Mar 4, 2025
1 parent 941266c commit 732c119
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gitlab/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export const GitLabRepositorySchema = z.object({
name: z.string(),
path_with_namespace: z.string(), // Changed from full_name to match GitLab API
visibility: z.string(), // Changed from private to match GitLab API
owner: GitLabOwnerSchema,
owner: GitLabOwnerSchema.optional(),
web_url: z.string(), // Changed from html_url to match GitLab API
description: z.string().nullable(),
fork: z.boolean(),
fork: z.boolean().optional(),
ssh_url_to_repo: z.string(), // Changed from ssh_url to match GitLab API
http_url_to_repo: z.string(), // Changed from clone_url to match GitLab API
created_at: z.string(),
Expand Down

0 comments on commit 732c119

Please sign in to comment.