source: trip-planner-front/node_modules/ajv/dist/vocabularies/applicator/allOf.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 751 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const util_1 = require("../../compile/util");
4const def = {
5 keyword: "allOf",
6 schemaType: "array",
7 code(cxt) {
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 (util_1.alwaysValidSchema(it, sch))
15 return;
16 const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid);
17 cxt.ok(valid);
18 cxt.mergeEvaluated(schCxt);
19 });
20 },
21};
22exports.default = def;
23//# sourceMappingURL=allOf.js.map
Note: See TracBrowser for help on using the repository browser.