From a965116aa520f703cfabee8ea665082cd1962a20 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Sun, 25 May 2025 00:21:33 +0530 Subject: [PATCH] added schema for bucket form validation --- src/components/Directory/DirectorySchema.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/components/Directory/DirectorySchema.js b/src/components/Directory/DirectorySchema.js index a9743829..3d30292f 100644 --- a/src/components/Directory/DirectorySchema.js +++ b/src/components/Directory/DirectorySchema.js @@ -53,5 +53,13 @@ export const ContactSchema = z // return hasValidEmail || hasValidPhone; // }, { // message: "At least one contact (email or phone) is required", -// path: ["contactPhone"], +// path: ["contactPhone"], // }); + + +// Buckets + +export const bucketScheam = z.object( { + name: z.string().min( 1, {message: "Name is required"} ), + description:z.string().min(1,{message:"Description is required"}) +}) \ No newline at end of file