@@ -22,10 +22,10 @@ export const GitLabRepositorySchema = z.object({
2222 name : z . string ( ) ,
2323 path_with_namespace : z . string ( ) , // Changed from full_name to match GitLab API
2424 visibility : z . string ( ) , // Changed from private to match GitLab API
25- owner : GitLabOwnerSchema ,
25+ owner : GitLabOwnerSchema . optional ( ) ,
2626 web_url : z . string ( ) , // Changed from html_url to match GitLab API
2727 description : z . string ( ) . nullable ( ) ,
28- fork : z . boolean ( ) ,
28+ fork : z . boolean ( ) . optional ( ) ,
2929 ssh_url_to_repo : z . string ( ) , // Changed from ssh_url to match GitLab API
3030 http_url_to_repo : z . string ( ) , // Changed from clone_url to match GitLab API
3131 created_at : z . string ( ) ,
@@ -218,12 +218,12 @@ export const GitLabMergeRequestSchema = z.object({
218218 title : z . string ( ) ,
219219 description : z . string ( ) , // Changed from body to match GitLab API
220220 state : z . string ( ) ,
221- merged : z . boolean ( ) ,
221+ merged : z . boolean ( ) . optional ( ) ,
222222 author : GitLabUserSchema ,
223223 assignees : z . array ( GitLabUserSchema ) ,
224224 source_branch : z . string ( ) , // Changed from head to match GitLab API
225225 target_branch : z . string ( ) , // Changed from base to match GitLab API
226- diff_refs : GitLabMergeRequestDiffRefSchema ,
226+ diff_refs : GitLabMergeRequestDiffRefSchema . nullable ( ) ,
227227 web_url : z . string ( ) , // Changed from html_url to match GitLab API
228228 created_at : z . string ( ) ,
229229 updated_at : z . string ( ) ,
0 commit comments