Last change
on this file since 8d391a1 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
938 bytes
|
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 content = require("./meta/content.json");
|
---|
6 | const core = require("./meta/core.json");
|
---|
7 | const format = require("./meta/format.json");
|
---|
8 | const metadata = require("./meta/meta-data.json");
|
---|
9 | const validation = require("./meta/validation.json");
|
---|
10 | const META_SUPPORT_DATA = ["/properties"];
|
---|
11 | function addMetaSchema2019($data) {
|
---|
12 | ;
|
---|
13 | [
|
---|
14 | metaSchema,
|
---|
15 | applicator,
|
---|
16 | content,
|
---|
17 | core,
|
---|
18 | with$data(this, format),
|
---|
19 | metadata,
|
---|
20 | with$data(this, validation),
|
---|
21 | ].forEach((sch) => this.addMetaSchema(sch, undefined, false));
|
---|
22 | return this;
|
---|
23 | function with$data(ajv, sch) {
|
---|
24 | return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch;
|
---|
25 | }
|
---|
26 | }
|
---|
27 | exports.default = addMetaSchema2019;
|
---|
28 | //# sourceMappingURL=index.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.