source: trip-planner-front/node_modules/ajv/dist/vocabularies/applicator/index.js

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

initial commit

  • Property mode set to 100644
File size: 1.5 KB
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const additionalItems_1 = require("./additionalItems");
4const prefixItems_1 = require("./prefixItems");
5const items_1 = require("./items");
6const items2020_1 = require("./items2020");
7const contains_1 = require("./contains");
8const dependencies_1 = require("./dependencies");
9const propertyNames_1 = require("./propertyNames");
10const additionalProperties_1 = require("./additionalProperties");
11const properties_1 = require("./properties");
12const patternProperties_1 = require("./patternProperties");
13const not_1 = require("./not");
14const anyOf_1 = require("./anyOf");
15const oneOf_1 = require("./oneOf");
16const allOf_1 = require("./allOf");
17const if_1 = require("./if");
18const thenElse_1 = require("./thenElse");
19function getApplicator(draft2020 = false) {
20 const applicator = [
21 // any
22 not_1.default,
23 anyOf_1.default,
24 oneOf_1.default,
25 allOf_1.default,
26 if_1.default,
27 thenElse_1.default,
28 // object
29 propertyNames_1.default,
30 additionalProperties_1.default,
31 dependencies_1.default,
32 properties_1.default,
33 patternProperties_1.default,
34 ];
35 // array
36 if (draft2020)
37 applicator.push(prefixItems_1.default, items2020_1.default);
38 else
39 applicator.push(additionalItems_1.default, items_1.default);
40 applicator.push(contains_1.default);
41 return applicator;
42}
43exports.default = getApplicator;
44//# sourceMappingURL=index.js.map
Note: See TracBrowser for help on using the repository browser.