From 8481a96829dad81fa0fab32c3b04c2f35f3ff811 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Wed, 18 May 2022 14:41:55 +0200 Subject: [PATCH] fix: null or --- lib/validations/event-type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validations/event-type.ts b/lib/validations/event-type.ts index 595217a37a..28dd76cf11 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: jsonSchema.optional().nullable().or(z.null()), + metadata: z.null().or(jsonSchema).optional().nullable(), recurringEvent: jsonSchema.optional().nullable().or(z.null()), }) .strict();