data-validation-proximity 1.3.5 → 1.3.7
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 +2 -0
- 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(),
|
|
337
338
|
});
|
|
338
339
|
|
|
339
340
|
exports.itemSchemaValidation = createValidationMiddleware(itemSchema);
|
|
@@ -344,6 +345,7 @@ exports.itemSchemaValidation = createValidationMiddleware(itemSchema);
|
|
|
344
345
|
|
|
345
346
|
const createCategorySchema = joi.object({
|
|
346
347
|
name: joi.string().required(),
|
|
348
|
+
confirmed: joi.bool(),
|
|
347
349
|
});
|
|
348
350
|
|
|
349
351
|
exports.createCategorySchemaValidation = createValidationMiddleware(createCategorySchema);
|