2 Object.defineProperty(exports, "__esModule", { value: true });
3 const util_1 = require("../../compile/util");
8 const { gen, schema, it } = cxt;
9 /* istanbul ignore if */
10 if (!Array.isArray(schema))
11 throw new Error("ajv implementation error");
12 const valid = gen.name("valid");
13 schema.forEach((sch, i) => {
14 if ((0, util_1.alwaysValidSchema)(it, sch))
16 const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid);
18 cxt.mergeEvaluated(schCxt);
22 exports.default = def;
23 //# sourceMappingURL=allOf.js.map