added schema for bucket form validation

This commit is contained in:
Pramod Mahajan 2025-05-25 00:21:33 +05:30 committed by Vikas Nale
parent 16f40f7566
commit 06c0c5ebb3

View File

@ -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"})
})