data-validation-proximity 1.3.8 → 1.3.10
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.
- package/index.js +4 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -477,7 +477,8 @@ const updateProductSchema = joi.object({
|
|
|
477
477
|
storeCategoryId: joi.string(),
|
|
478
478
|
subCategoryId: joi.string(),
|
|
479
479
|
subcategory: joi.string().min(3).optional(),
|
|
480
|
-
rayonId: joi.string(),
|
|
480
|
+
rayonId: joi.string().allow('').allow(null),
|
|
481
|
+
subRayonId: joi.string().allow('').allow(null),
|
|
481
482
|
variants: joi.array().items(variantSchema),
|
|
482
483
|
policy: policySchema,
|
|
483
484
|
discountType: joi.string(),
|
|
@@ -504,7 +505,8 @@ const createProductSchema = joi.object({
|
|
|
504
505
|
subCategoryId: joi.string().allow(''),
|
|
505
506
|
subcategory: joi.string().min(3).optional(),
|
|
506
507
|
categoryId: joi.string().allow(''),
|
|
507
|
-
rayonId: joi.string().allow(''),
|
|
508
|
+
rayonId: joi.string().allow('').allow(null),
|
|
509
|
+
subRayonId: joi.string().allow('').allow(null),
|
|
508
510
|
storeId: joi.string().required(),
|
|
509
511
|
variants: joi.array().items(createVariantSchema),
|
|
510
512
|
policy: policySchema,
|