Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix patch review schema
Rūdolfs Ošiņš committed 3 years ago
commit 518b82125060d6a4e53558dbc16bc8df8ec5b714
parent 3a4a766cfad66629766565e4c67878c03b556501
1 file changed +3 -3
modified httpd-client/lib/project/patch.ts
@@ -73,14 +73,14 @@ type Verdict = "accept" | "reject";

export interface Review {
  verdict?: Verdict | null;
-
  comment?: string;
+
  comment?: string | null;
  inline: CodeComment[];
  timestamp: number;
}

const reviewSchema = strictObject({
-
  verdict: optional(union([literal("accept"), literal("reject")])).nullable(),
-
  comment: optional(string()),
+
  verdict: optional(union([literal("accept"), literal("reject")]).nullable()),
+
  comment: optional(string().nullable()),
  inline: array(codeCommentSchema),
  timestamp: number(),
}) satisfies ZodSchema<Review>;