Skip to content

Scheduling infrastructure for absolutely everyone.

fix: metadata null or json schema

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