Skip to content

Commit 56cedd8

Browse files
committed
components: wishlist[validation]
1 parent e6dbe60 commit 56cedd8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Joi from "joi";
2+
3+
4+
const addToWishListValidation = Joi.object({
5+
productId: Joi.string().hex().length(24).required(),
6+
});
7+
8+
const deleteFromWishListValidation = Joi.object({
9+
productId: Joi.string().hex().length(24).required(),
10+
});
11+
12+
13+
export { addToWishListValidation, deleteFromWishListValidation };

0 commit comments

Comments
 (0)