@@ -22,10 +22,10 @@ export const GitLabRepositorySchema = z.object({
22
22
name : z . string ( ) ,
23
23
path_with_namespace : z . string ( ) , // Changed from full_name to match GitLab API
24
24
visibility : z . string ( ) , // Changed from private to match GitLab API
25
- owner : GitLabOwnerSchema ,
25
+ owner : GitLabOwnerSchema . optional ( ) ,
26
26
web_url : z . string ( ) , // Changed from html_url to match GitLab API
27
27
description : z . string ( ) . nullable ( ) ,
28
- fork : z . boolean ( ) ,
28
+ fork : z . boolean ( ) . optional ( ) ,
29
29
ssh_url_to_repo : z . string ( ) , // Changed from ssh_url to match GitLab API
30
30
http_url_to_repo : z . string ( ) , // Changed from clone_url to match GitLab API
31
31
created_at : z . string ( ) ,
@@ -218,12 +218,12 @@ export const GitLabMergeRequestSchema = z.object({
218
218
title : z . string ( ) ,
219
219
description : z . string ( ) , // Changed from body to match GitLab API
220
220
state : z . string ( ) ,
221
- merged : z . boolean ( ) ,
221
+ merged : z . boolean ( ) . optional ( ) ,
222
222
author : GitLabUserSchema ,
223
223
assignees : z . array ( GitLabUserSchema ) ,
224
224
source_branch : z . string ( ) , // Changed from head to match GitLab API
225
225
target_branch : z . string ( ) , // Changed from base to match GitLab API
226
- diff_refs : GitLabMergeRequestDiffRefSchema ,
226
+ diff_refs : GitLabMergeRequestDiffRefSchema . nullable ( ) ,
227
227
web_url : z . string ( ) , // Changed from html_url to match GitLab API
228
228
created_at : z . string ( ) ,
229
229
updated_at : z . string ( ) ,
0 commit comments