From ef78c3beca36cfc058f62d8ecb591fcac83df296 Mon Sep 17 00:00:00 2001 From: Aotumuri Date: Fri, 23 May 2025 07:58:51 +0900 Subject: [PATCH] optional() --- src/core/Schemas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Schemas.ts b/src/core/Schemas.ts index 13c7d0edd..bfe495838 100644 --- a/src/core/Schemas.ts +++ b/src/core/Schemas.ts @@ -204,8 +204,8 @@ export const AttackIntentSchema = BaseIntentSchema.extend({ }); export const SpawnIntentSchema = BaseIntentSchema.extend({ - flag: z.string().nullable(), - pattern: z.string().nullable(), + flag: z.string().optional(), + pattern: z.string().optional(), type: z.literal("spawn"), name: SafeString, playerType: PlayerTypeSchema,