Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | const metaSchema = require("./schema.json");
|
---|
4 | const applicator = require("./meta/applicator.json");
|
---|
5 | const unevaluated = require("./meta/unevaluated.json");
|
---|
6 | const content = require("./meta/content.json");
|
---|
7 | const core = require("./meta/core.json");
|
---|
8 | const format = require("./meta/format-annotation.json");
|
---|
9 | const metadata = require("./meta/meta-data.json");
|
---|
10 | const validation = require("./meta/validation.json");
|
---|
11 | const META_SUPPORT_DATA = ["/properties"];
|
---|
12 | function addMetaSchema2020($data) {
|
---|
13 | ;
|
---|
14 | [
|
---|
15 | metaSchema,
|
---|
16 | applicator,
|
---|
17 | unevaluated,
|
---|
18 | content,
|
---|
19 | core,
|
---|
20 | with$data(this, format),
|
---|
21 | metadata,
|
---|
22 | with$data(this, validation),
|
---|
23 | ].forEach((sch) => this.addMetaSchema(sch, undefined, false));
|
---|
24 | return this;
|
---|
25 | function with$data(ajv, sch) {
|
---|
26 | return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch;
|
---|
27 | }
|
---|
28 | }
|
---|
29 | exports.default = addMetaSchema2020;
|
---|
30 | //# sourceMappingURL=index.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.