[79a0317] | 1 | "use strict";
|
---|
| 2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
| 3 | const additionalItems_1 = require("./additionalItems");
|
---|
| 4 | const prefixItems_1 = require("./prefixItems");
|
---|
| 5 | const items_1 = require("./items");
|
---|
| 6 | const items2020_1 = require("./items2020");
|
---|
| 7 | const contains_1 = require("./contains");
|
---|
| 8 | const dependencies_1 = require("./dependencies");
|
---|
| 9 | const propertyNames_1 = require("./propertyNames");
|
---|
| 10 | const additionalProperties_1 = require("./additionalProperties");
|
---|
| 11 | const properties_1 = require("./properties");
|
---|
| 12 | const patternProperties_1 = require("./patternProperties");
|
---|
| 13 | const not_1 = require("./not");
|
---|
| 14 | const anyOf_1 = require("./anyOf");
|
---|
| 15 | const oneOf_1 = require("./oneOf");
|
---|
| 16 | const allOf_1 = require("./allOf");
|
---|
| 17 | const if_1 = require("./if");
|
---|
| 18 | const thenElse_1 = require("./thenElse");
|
---|
| 19 | function 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 | }
|
---|
| 43 | exports.default = getApplicator;
|
---|
| 44 | //# sourceMappingURL=index.js.map |
---|