data-validation-proximity 1.2.7 → 1.2.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 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -469,7 +469,7 @@ const updateProductSchema = joi.object({
469
469
  price: joi.number().min(1).max(1000000),
470
470
  description: joi.string().min(3).max(800),
471
471
  tags: joi.array().items(joi.string().min(3)),
472
- discount: joi.number().min(0).max(100),
472
+ discount: joi.number().min(0),
473
473
  image: joi.string().min(3),
474
474
  images: joi.array().items(joi.string().min(3)),
475
475
  storeId: joi.string().required(),
@@ -496,7 +496,7 @@ const createProductSchema = joi.object({
496
496
  images: joi.array().items(joi.string().min(3)),
497
497
  tags: joi.array().items(joi.string().min(2)),
498
498
  sellerId: joi.string(),
499
- discount: joi.number().min(1).max(100),
499
+ discount: joi.number().min(0),
500
500
  discountType: joi.string(),
501
501
  discountExpiration: joi.string(),
502
502
  image: joi.string().min(3),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.2.7",
3
+ "version": "1.2.9",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",