From c5fa861d41031674093ba878aea8c17c4adc7ba0 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Tue, 17 May 2022 21:45:16 +0200 Subject: [PATCH] Fix: metadata nullish --- 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 a23967be76..85f2500bbc 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, - metadata: jsonSchema, + metadata: jsonSchema.optional().nullable().or(z.null()), recurringEvent: jsonSchema, }) .strict();