From 9cb2f9bc704a0bb2d60fd19f7289265686113870 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Sat, 23 Apr 2022 02:06:16 +0200 Subject: [PATCH] fix: clearer note about dropping metadata and locations in event-type --- lib/validations/event-type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validations/event-type.ts b/lib/validations/event-type.ts index ab24a9b0d1..119edcb248 100644 --- a/lib/validations/event-type.ts +++ b/lib/validations/event-type.ts @@ -12,7 +12,7 @@ const schemaEventTypeRequiredParams = z.object({ }); export const schemaEventTypeBodyParams = schemaEventTypeBaseBodyParams.merge(schemaEventTypeRequiredParams); -// Omitting those two (locations/ metadata) because the validations where choking at array and JSON object. add them later if needed +// @NOTE: Removing locations and metadata properties before validation, add them later if required export const schemaEventTypePublic = EventType.omit({ locations: true, metadata: true }); export const withValidEventType = withValidation({