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;