From b1dd1b85727d3e0b9b8badfe151c513e7b48eb75 Mon Sep 17 00:00:00 2001 From: Agusti Fernandez Pardo Date: Mon, 13 Jun 2022 23:58:15 +0200 Subject: [PATCH] fix: make jsonSchema.optional() --- 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 528bc2e292..2385224f5a 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, + metadata: jsonSchema.optional(), }); // @note: These are the values that are editable via PATCH method on the user Model,