fix: merge metadata jsonSchema nullable nullish

pull/9078/head
Agusti Fernandez Pardo 2022-05-18 15:04:44 +02:00
parent db09aeb50a
commit e25d0d79a0
1 changed files with 3 additions and 1 deletions

View File

@ -85,4 +85,6 @@ export const schemaEventTypeReadPublic = EventType.pick({
currency: true,
slotInterval: true,
successRedirectUrl: true,
}).partial();
})
.merge(z.object({ metadata: jsonSchema.nullable().nullish() }))
.partial();