Fix new and old fields in code locations

Instead of being `nullable()` the `new` and `old` fields in a code
location are optional.
This commit is contained in:
Sebastian Martinez
2025-03-14 12:18:42 +01:00
parent 46d1c2177d
commit 856caf0ec1
+2 -2
View File
@@ -113,8 +113,8 @@ export type Range = z.infer<typeof rangeSchema>;
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<typeof authorSchema>;