data-validation-proximity 1.2.2 → 1.2.4

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
@@ -565,6 +565,7 @@ const schemaStore = joi.object({
565
565
  productCategories: joi.string(),
566
566
  storeRayons: joi.string(),
567
567
  template: joi.string(),
568
+ registrationNumber: joi.string(),
568
569
  });
569
570
 
570
571
  exports.schemaStoreValidation = (req, res, next) => {
@@ -587,11 +588,11 @@ const schemaUpdateStore = joi.object({
587
588
  isActive: joi.bool(),
588
589
  address: joi.object({
589
590
  city: joi.string().min(3),
590
- streetName: joi.string().min(3).max(40),
591
+ streetName: joi.string().min(3).max(120),
591
592
  postalCode: joi.string().min(3),
592
593
  country: joi.string().min(3),
593
594
  countryCode: joi.string().min(2),
594
- fullAdress: joi.string().min(3).max(40),
595
+ fullAdress: joi.string().min(3).max(120),
595
596
  region: joi.string().min(3),
596
597
  }),
597
598
  policy: policySchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "data-validation-proximity",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "description": "A library of Joi-based validation middlewares for Express.js",
5
5
  "main": "index.js",
6
6
  "license": "MIT",