From 4eccc8a74befcc0daf05f5148be3141f3f419541 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Tue, 31 May 2022 18:42:20 +0200 Subject: [PATCH] fix: build error jsonSchema metadata not nullable --- lib/validations/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validations/user.ts b/lib/validations/user.ts index 3955caabd4..528bc2e292 100644 --- a/lib/validations/user.ts +++ b/lib/validations/user.ts @@ -93,7 +93,7 @@ const schemaUserEditParams = z.object({ .optional() .nullable(), locale: z.nativeEnum(locales).optional().nullable(), - metadata: jsonSchema.or(z.null()), + metadata: jsonSchema, }); // @note: These are the values that are editable via PATCH method on the user Model,