| 5017 | cxt.ok(valid); |
| 5018 | }); |
| 5019 | function checkStrictTuple(sch) { |
| 5020 | const { opts, errSchemaPath } = it; |
| 5021 | const l = schArr.length; |
| 5022 | const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false); |
| 5023 | if (opts.strictTuples && !fullTuple) { |
| 5024 | const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`; |
| 5025 | (0, util_1.checkStrictMode)(it, msg, opts.strictTuples); |
| 5026 | } |
| 5027 | } |
| 5028 | } |
| 5029 | exports.validateTuple = validateTuple; |
| 5030 | exports.default = def; |