From e07112961efc771cf948c8cf82c4b1352d1166d1 Mon Sep 17 00:00:00 2001 From: Dmitry Mashkovtsev Date: Thu, 24 Feb 2022 19:36:41 +0500 Subject: [PATCH] fix(correction12): remove required validator from customerContact --- lib/validation/schemes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validation/schemes.js b/lib/validation/schemes.js index 15b0cfb..db886b8 100644 --- a/lib/validation/schemes.js +++ b/lib/validation/schemes.js @@ -198,7 +198,7 @@ const correction12 = { payments: [required, arrayOf(payment), maxPaymentsTotal(MAX_MONEY_AMOUNT)], taxationSystem: [required, integer, oneOf([0, 1, 2, 3, 4, 5])], })], - customerContact: [maxLength(64), or([email, phone]), required], + customerContact: [maxLength(64), or([email, phone])], correctionType: [required, oneOf([0, 1])], causeDocumentDate: [required, isIso8601], causeDocumentNumber: [required, maxLength(32)],