data-validation-proximity 1.3.1 → 1.3.3
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 +3 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -447,7 +447,7 @@ const variantSchema = joi.object({
|
|
|
447
447
|
joi.string(),
|
|
448
448
|
joi.string()
|
|
449
449
|
),
|
|
450
|
-
available: joi
|
|
450
|
+
available: joi.bool().optional(),
|
|
451
451
|
});
|
|
452
452
|
|
|
453
453
|
const createVariantSchema = joi.object({
|
|
@@ -468,7 +468,8 @@ const updateProductSchema = joi.object({
|
|
|
468
468
|
tags: joi.array().items(joi.string().min(3)),
|
|
469
469
|
discount: joi.number().min(0),
|
|
470
470
|
image: joi.string().min(3),
|
|
471
|
-
images: joi.array().items(joi.string().min(3)),
|
|
471
|
+
images: joi.array().items(joi.string().min(3)).allow([]),
|
|
472
|
+
existingImages: joi.array().items(joi.string().min(3)).allow([]),
|
|
472
473
|
storeId: joi.string().required(),
|
|
473
474
|
categoryId: joi.string(),
|
|
474
475
|
storeCategoryId: joi.string(),
|