mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
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:
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user