Update codeLocationSchema with required Oid

We where missing an update for CodeLocation introduced in heartwood
commit 2dea54c6eeb7bf3a177fac77ae04fd4aeadd772d
This commit is contained in:
Sebastian Martinez
2024-02-26 15:53:02 +00:00
committed by Rūdolfs Ošiņš
parent 4a5e67dd2b
commit 8a3864b19b
+3 -2
View File
@@ -63,9 +63,10 @@ export const rangeSchema = union([
export type Range = z.infer<typeof rangeSchema>;
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<typeof codeLocationSchema>;