diff --git a/httpd-client/lib/shared.ts b/httpd-client/lib/shared.ts index 503e44f80..e8011d5b9 100644 --- a/httpd-client/lib/shared.ts +++ b/httpd-client/lib/shared.ts @@ -63,9 +63,10 @@ export const rangeSchema = union([ export type Range = z.infer; export const codeLocationSchema = object({ + commit: string(), path: string(), - old: rangeSchema.optional(), - new: rangeSchema.optional(), + old: rangeSchema.nullable(), + new: rangeSchema.nullable(), }); export type CodeLocation = z.infer;