Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Update `codeLocationSchema` with required Oid
Sebastian Martinez committed 2 years ago
commit 8a3864b19bb6f5fd3bef2792c33d6b1b77ef2045
parent 4a5e67dd2b50c898b20d2b0f86459e22dcb0a39d
1 file changed +3 -2
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>;