Skip to content

Scheduling infrastructure for absolutely everyone.

fix: build error jsonSchema metadata not nullable

Agusti Fernandez Pardo4eccc8a74bef
diff --git a/lib/validations/user.ts b/lib/validations/user.ts
index 3955caabd44..528bc2e2927 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,