fix: null or

This commit is contained in:
Agusti Fernandez Pardo
2022-05-18 14:41:55 +02:00
parent 0ca9748674
commit 8481a96829
+1 -1
View File
@@ -40,7 +40,7 @@ const schemaEventTypeBaseParams = z
description: z.string().optional().nullable(),
length: z.number().int(),
locations: jsonSchema.optional().nullable().or(z.null()),
metadata: jsonSchema.optional().nullable().or(z.null()),
metadata: z.null().or(jsonSchema).optional().nullable(),
recurringEvent: jsonSchema.optional().nullable().or(z.null()),
})
.strict();