Fix: metadata nullish

pull/9078/head
Agusti Fernandez Pardo 2022-05-17 21:45:16 +02:00
parent 679f81d00d
commit c5fa861d41
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ const schemaEventTypeBaseParams = z
description: z.string().optional().nullable(), description: z.string().optional().nullable(),
length: z.number().int(), length: z.number().int(),
locations: jsonSchema, locations: jsonSchema,
metadata: jsonSchema, metadata: jsonSchema.optional().nullable().or(z.null()),
recurringEvent: jsonSchema, recurringEvent: jsonSchema,
}) })
.strict(); .strict();