From 856caf0ec1502858f98db3b826b59ae1492598c8 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Fri, 14 Mar 2025 12:18:42 +0100 Subject: [PATCH] Fix `new` and `old` fields in code locations Instead of being `nullable()` the `new` and `old` fields in a code location are optional. --- http-client/lib/shared.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http-client/lib/shared.ts b/http-client/lib/shared.ts index 64b193f69..0c7950d46 100644 --- a/http-client/lib/shared.ts +++ b/http-client/lib/shared.ts @@ -113,8 +113,8 @@ export type Range = z.infer; export const codeLocationSchema = object({ commit: string(), path: string(), - old: rangeSchema.nullable(), - new: rangeSchema.nullable(), + old: rangeSchema.optional(), + new: rangeSchema.optional(), }); export type Author = z.infer;