data-validation-proximity 1.3.8 → 1.3.9

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 +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -478,6 +478,7 @@ const updateProductSchema = joi.object({
478
478
  subCategoryId: joi.string(),
479
479
  subcategory: joi.string().min(3).optional(),
480
480
  rayonId: joi.string(),
481
+ subRayonId: joi.string().allow('').allow(null),
481
482
  variants: joi.array().items(variantSchema),
482
483
  policy: policySchema,
483
484
  discountType: joi.string(),
@@ -505,6 +506,7 @@ const createProductSchema = joi.object({
505
506
  subcategory: joi.string().min(3).optional(),
506
507
  categoryId: joi.string().allow(''),
507
508
  rayonId: joi.string().allow(''),
509
+ subRayonId: joi.string().allow('').allow(null),
508
510
  storeId: joi.string().required(),
509
511
  variants: joi.array().items(createVariantSchema),
510
512
  policy: policySchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",