fix: metadata null or json schema

pull/9078/head
Agusti Fernandez Pardo 2022-05-17 22:09:44 +02:00
parent e76ebd64f4
commit 8a62c3948d
1 changed files with 1 additions and 1 deletions

View File

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