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 87bd0f1 commit be3660dCopy full SHA for be3660d
components/brand/brand_validation.js
@@ -0,0 +1,16 @@
1
+import Joi from "joi";
2
+
3
+const addBrandValidation = Joi.object({
4
+ name: Joi.string().required().trim(),
5
+});
6
7
+const updateBrandValidation = Joi.object({
8
9
+ id: Joi.string().hex().length(24).required(),
10
11
12
+const deleteBrandValidation = Joi.object({
13
14
15
16
+export { addBrandValidation, updateBrandValidation, deleteBrandValidation };
0 commit comments