data-validation-proximity 1.3.10 → 1.3.12

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 +3 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -346,6 +346,7 @@ exports.itemSchemaValidation = createValidationMiddleware(itemSchema);
346
346
  const createCategorySchema = joi.object({
347
347
  name: joi.string().required(),
348
348
  confirmed: joi.bool(),
349
+ rayonId: joi.string().allow('').allow(null),
349
350
  });
350
351
 
351
352
  exports.createCategorySchemaValidation = createValidationMiddleware(createCategorySchema);
@@ -571,7 +572,7 @@ const schemaStore = joi.object({
571
572
  image: joi.string().min(3),
572
573
  storeCategories: joi.string(),
573
574
  productCategories: joi.string(),
574
- storeRayons: joi.string(),
575
+ storeRayons: joi.string().allow('').allow(null),
575
576
  template: joi.string(),
576
577
  registrationNumber: joi.string(),
577
578
  });
@@ -604,7 +605,7 @@ const schemaUpdateStore = joi.object({
604
605
  image: joi.string().min(3),
605
606
  storeCategories: joi.string(),
606
607
  productCategories: joi.string(),
607
- storeRayons: joi.string(),
608
+ storeRayons: joi.string().allow('').allow(null),
608
609
  template: joi.string(),
609
610
  registrationNumber: joi.string(),
610
611
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.3.10",
3
+ "version": "1.3.12",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",