fix: use new zod 4 error property

This commit is contained in:
Nicola Spadari
2025-07-12 15:27:06 +02:00
parent abc619b1d2
commit b707c09176
4 changed files with 5 additions and 5 deletions

View File

@@ -29,7 +29,7 @@
const schema = z.object({
notificationTitle: z.string({
required_error: "Title is required"
error: "Title is required"
}).nonempty(),
notificationBody: z.string().optional()
});