From 2193d16d5cede695d6e9836ef37deaa1ac19de32 Mon Sep 17 00:00:00 2001 From: "Fawzi E. Abdulfattah" Date: Wed, 3 Feb 2021 02:06:36 +0200 Subject: [PATCH] Update lib/types/array.js continue if ordered is required Co-authored-by: Brian Le <48520047+brianle1301@users.noreply.github.com> --- lib/types/array.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/types/array.js b/lib/types/array.js index dc650a45d..972678d80 100755 --- a/lib/types/array.js +++ b/lib/types/array.js @@ -669,6 +669,7 @@ internals.checkRemainingOrdereds = function (schema, errors, ordereds, value, st for (const ordered of ordereds) { if (ordered._flags.presence === 'required') { requiredOrdereds.push(ordered); + continue; } const res = ordered.$_validate(undefined,state,prefs);