Skip to content

Scheduling infrastructure for absolutely everyone.

fix: metadata

Agusti Fernandez Pardo91f9405fa0f1
diff --git a/lib/validations/event-type.ts b/lib/validations/event-type.ts
index 28dd76cf11f..10e3e85fb31 100644
--- a/lib/validations/event-type.ts
+++ b/lib/validations/event-type.ts
@@ -40,7 +40,7 @@ const schemaEventTypeBaseParams = z
description: z.string().optional().nullable(),
length: z.number().int(),
locations: jsonSchema.optional().nullable().or(z.null()),
- metadata: z.null().or(jsonSchema).optional().nullable(),
+ metadata: jsonSchema.optional().nullable().nullish(),
recurringEvent: jsonSchema.optional().nullable().or(z.null()),
})
.strict();