From 15ec51f226b3ea47a8069b9a649d29e48064c7cb Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Mon, 3 Jun 2024 14:21:18 +0900 Subject: [PATCH] Remove incorrect zod optional flag --- dist/index.js | 2 +- src/schema.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index f72dc5b5..de99a321 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31064,7 +31064,7 @@ var FilterCondition = z2.object({ var SkipFilterCondition = FilterCondition.readonly(); var WaitFilterCondition = FilterCondition.extend( { - optional: z2.boolean().optional().default(false).readonly(), + optional: z2.boolean().default(false).readonly(), // - Intentionally avoided to use enum for now. Only GitHub knows whole eventNames and the adding plans // - Intentionally omitted in skip-list, let me know if you have the use-case eventName: z2.string().min(1).optional(), diff --git a/src/schema.ts b/src/schema.ts index 8d8ed533..57467d23 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -66,7 +66,7 @@ const FilterCondition = z.object({ const SkipFilterCondition = FilterCondition.readonly(); const WaitFilterCondition = FilterCondition.extend( { - optional: z.boolean().optional().default(false).readonly(), + optional: z.boolean().default(false).readonly(), // - Intentionally avoided to use enum for now. Only GitHub knows whole eventNames and the adding plans // - Intentionally omitted in skip-list, let me know if you have the use-case