diff --git a/lib/validations/event-type.ts b/lib/validations/event-type.ts index 6b03597f2a..eb1a5cc984 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();