We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6dbe60 commit 56cedd8Copy full SHA for 56cedd8
components/wishlist/wishlist_validation.js
@@ -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
10
11
12
13
+export { addToWishListValidation, deleteFromWishListValidation };
0 commit comments