Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Update `codeLocationSchema` with required Oid
Merged did:key:z6MkkfM3...sVz5 opened 2 years ago

We where missing an update for CodeLocation introduced in heartwood commit 2dea54c6eeb7bf3a177fac77ae04fd4aeadd772d

1 file changed +3 -2 4a5e67dd 8a3864b1
modified httpd-client/lib/shared.ts
@@ -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>;