Compare commits
1 Commits
feat/issue
...
pxpeterxu-
Author | SHA1 | Date | |
---|---|---|---|
f60d68af2c |
12
schemas.ts
12
schemas.ts
@ -618,21 +618,21 @@ export const GitLabDiscussionNoteSchema = z.object({
|
|||||||
old_path: z.string(),
|
old_path: z.string(),
|
||||||
new_path: z.string(),
|
new_path: z.string(),
|
||||||
position_type: z.enum(["text", "image", "file"]),
|
position_type: z.enum(["text", "image", "file"]),
|
||||||
old_line: z.number().nullable(),
|
old_line: z.number().nullish(), // This is missing for image diffs
|
||||||
new_line: z.number().nullable(),
|
new_line: z.number().nullish(), // This is missing for image diffs
|
||||||
line_range: z
|
line_range: z
|
||||||
.object({
|
.object({
|
||||||
start: z.object({
|
start: z.object({
|
||||||
line_code: z.string(),
|
line_code: z.string(),
|
||||||
type: z.enum(["new", "old", "expanded"]),
|
type: z.enum(["new", "old", "expanded"]),
|
||||||
old_line: z.number().nullable(),
|
old_line: z.number().nullish(), // This is missing for image diffs
|
||||||
new_line: z.number().nullable(),
|
new_line: z.number().nullish(), // This is missing for image diffs
|
||||||
}),
|
}),
|
||||||
end: z.object({
|
end: z.object({
|
||||||
line_code: z.string(),
|
line_code: z.string(),
|
||||||
type: z.enum(["new", "old", "expanded"]),
|
type: z.enum(["new", "old", "expanded"]),
|
||||||
old_line: z.number().nullable(),
|
old_line: z.number().nullish(), // This is missing for image diffs
|
||||||
new_line: z.number().nullable(),
|
new_line: z.number().nullish(), // This is missing for image diffs
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.nullable()
|
.nullable()
|
||||||
|
Reference in New Issue
Block a user