added schema for bucket form validation

This commit is contained in:
Pramod Mahajan 2025-05-25 00:21:33 +05:30
parent 889b5ab069
commit 0bc56c82cf

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