From cfd99464b427fa99fa3d05bfc5c6de7e78a64140 Mon Sep 17 00:00:00 2001 From: Evan Date: Wed, 8 Apr 2026 09:41:59 -0700 Subject: [PATCH] Update ApiSchemas.ts --- src/core/ApiSchemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ApiSchemas.ts b/src/core/ApiSchemas.ts index 2a33e6f1d..74e7bf8c3 100644 --- a/src/core/ApiSchemas.ts +++ b/src/core/ApiSchemas.ts @@ -197,6 +197,6 @@ export const NewsItemSchema = z.object({ title: z.string(), description: z.string(), url: z.string().nullable().optional(), - type: z.enum(["tournament", "tutorial", "announcement"]), + type: z.enum(["tournament", "tutorial", "announcement"]).or(z.string()), }); export type NewsItem = z.infer;