From f55aaf3eaaa29bf881e3e86cacb6ca1e3a7d7bd2 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Tue, 17 May 2022 21:51:26 +0200 Subject: [PATCH] fix: event type make locations metadata and recurringEvent nullable and optional --- lib/validations/event-type.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/validations/event-type.ts b/lib/validations/event-type.ts index 85f2500bbc..a5eefab6ca 100644 --- a/lib/validations/event-type.ts +++ b/lib/validations/event-type.ts @@ -39,9 +39,9 @@ const schemaEventTypeBaseParams = z slug: z.string(), description: z.string().optional().nullable(), length: z.number().int(), - locations: jsonSchema, + locations: jsonSchema.optional().nullable().or(z.null()), metadata: jsonSchema.optional().nullable().or(z.null()), - recurringEvent: jsonSchema, + recurringEvent: jsonSchema.optional().nullable().or(z.null()), }) .strict();