Radish alpha
r
rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5
Radicle web interface
Radicle
Git
Fix `new` and `old` fields in code locations
Open did:key:z6MkkfM3...sVz5 opened 1 year ago

Instead of being nullable() the new and old fields in a code location are optional.

check check-visual check-unit-test check-http-client-unit-test check-radicle-httpd check-e2e check-build check-http

👉 Preview 👉 Workflow runs 👉 Branch on GitHub

1 file changed +2 -2 46d1c217 856caf0e
modified http-client/lib/shared.ts
@@ -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>;