Merge pull request #74 from calcom/fix-event-type-json-optional

fix: event type make locations metadata and recurringEvent nullable a…
This commit is contained in:
Agusti Fernandez Pardo
2022-05-17 21:51:52 +02:00
committed by GitHub
+2 -2
View File
@@ -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();