Skip to content

Commit

Permalink
Remove incorrect zod optional flag
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Jun 3, 2024
1 parent bf562ea commit 15ec51f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 1 addition & 1 deletion src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15ec51f

Please sign in to comment.