From 8a3864b19bb6f5fd3bef2792c33d6b1b77ef2045 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 26 Feb 2024 16:22:20 +0100 Subject: [PATCH] Update `codeLocationSchema` with required Oid We where missing an update for CodeLocation introduced in heartwood commit 2dea54c6eeb7bf3a177fac77ae04fd4aeadd772d --- httpd-client/lib/shared.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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;