From 518b82125060d6a4e53558dbc16bc8df8ec5b714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 26 Apr 2023 10:42:00 +0200 Subject: [PATCH] Fix patch review schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rūdolfs Ošiņš --- httpd-client/lib/project/patch.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/httpd-client/lib/project/patch.ts b/httpd-client/lib/project/patch.ts index 35f2a89c9..200193e01 100644 --- a/httpd-client/lib/project/patch.ts +++ b/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;