data-validation-proximity 1.3.6 → 1.3.8

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 +1 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -334,6 +334,7 @@ const itemSchema = joi.object({
334
334
  productId: joi.string().required(),
335
335
  quantity: joi.number().min(1),
336
336
  variantId: joi.string().required(),
337
+ offerId: joi.string().required().allow(null),
337
338
  });
338
339
 
339
340
  exports.itemSchemaValidation = createValidationMiddleware(itemSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.3.6",
3
+ "version": "1.3.8",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",