added schema for bucket form validation
This commit is contained in:
parent
889b5ab069
commit
0bc56c82cf
@ -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"})
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user