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.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. 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) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",