data-validation-proximity 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +4 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -344,7 +344,6 @@ exports.itemSchemaValidation = createValidationMiddleware(itemSchema);
|
|
|
344
344
|
|
|
345
345
|
const createCategorySchema = joi.object({
|
|
346
346
|
name: joi.string().required(),
|
|
347
|
-
description: joi.string().required(),
|
|
348
347
|
});
|
|
349
348
|
|
|
350
349
|
exports.createCategorySchemaValidation = createValidationMiddleware(createCategorySchema);
|
|
@@ -562,6 +561,10 @@ const schemaStore = joi.object({
|
|
|
562
561
|
workingTime: workingTimeSchema,
|
|
563
562
|
policy: policySchema,
|
|
564
563
|
image: joi.string().min(3),
|
|
564
|
+
storeCategories: joi.string(),
|
|
565
|
+
productCategories: joi.string(),
|
|
566
|
+
storeRayons: joi.string(),
|
|
567
|
+
template: joi.string(),
|
|
565
568
|
});
|
|
566
569
|
|
|
567
570
|
exports.schemaStoreValidation = (req, res, next) => {
|