Upload via GUI (7543 Dateien)
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
import type Ajv from "../../core";
|
||||
export default function addMetaSchema2020(this: Ajv, $data?: boolean): Ajv;
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const metaSchema = require("./schema.json");
|
||||
const applicator = require("./meta/applicator.json");
|
||||
const unevaluated = require("./meta/unevaluated.json");
|
||||
const content = require("./meta/content.json");
|
||||
const core = require("./meta/core.json");
|
||||
const format = require("./meta/format-annotation.json");
|
||||
const metadata = require("./meta/meta-data.json");
|
||||
const validation = require("./meta/validation.json");
|
||||
const META_SUPPORT_DATA = ["/properties"];
|
||||
function addMetaSchema2020($data) {
|
||||
;
|
||||
[
|
||||
metaSchema,
|
||||
applicator,
|
||||
unevaluated,
|
||||
content,
|
||||
core,
|
||||
with$data(this, format),
|
||||
metadata,
|
||||
with$data(this, validation),
|
||||
].forEach((sch) => this.addMetaSchema(sch, undefined, false));
|
||||
return this;
|
||||
function with$data(ajv, sch) {
|
||||
return $data ? ajv.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch;
|
||||
}
|
||||
}
|
||||
exports.default = addMetaSchema2020;
|
||||
//# sourceMappingURL=index.js.map
|
||||
+1
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/refs/json-schema-2020-12/index.ts"],"names":[],"mappings":";;AAEA,4CAA2C;AAC3C,qDAAoD;AACpD,uDAAsD;AACtD,+CAA8C;AAC9C,yCAAwC;AACxC,wDAAuD;AACvD,kDAAiD;AACjD,qDAAoD;AAEpD,MAAM,iBAAiB,GAAG,CAAC,aAAa,CAAC,CAAA;AAEzC,SAAwB,iBAAiB,CAAY,KAAe;IAClE,CAAC;IAAA;QACC,UAAU;QACV,UAAU;QACV,WAAW;QACX,OAAO;QACP,IAAI;QACJ,SAAS,CAAC,IAAI,EAAE,MAAM,CAAC;QACvB,QAAQ;QACR,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC;KAC5B,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAA;IAC7D,OAAO,IAAI,CAAA;IAEX,SAAS,SAAS,CAAC,GAAQ,EAAE,GAAoB;QAC/C,OAAO,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,eAAe,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;IAClE,CAAC;AACH,CAAC;AAhBD,oCAgBC"}
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://json-schema.org/draft/2020-12/meta/applicator",
|
||||
"$vocabulary": {
|
||||
"https://json-schema.org/draft/2020-12/vocab/applicator": true
|
||||
},
|
||||
"$dynamicAnchor": "meta",
|
||||
|
||||
"title": "Applicator vocabulary meta-schema",
|
||||
"type": ["object", "boolean"],
|
||||
"properties": {
|
||||
"prefixItems": {"$ref": "#/$defs/schemaArray"},
|
||||
"items": {"$dynamicRef": "#meta"},
|
||||
"contains": {"$dynamicRef": "#meta"},
|
||||
"additionalProperties": {"$dynamicRef": "#meta"},
|
||||
"properties": {
|
||||
"type": "object",
|
||||
"additionalProperties": {"$dynamicRef": "#meta"},
|
||||
"default": {}
|
||||
},
|
||||
"patternProperties": {
|
||||
"type": "object",
|
||||
"additionalProperties": {"$dynamicRef": "#meta"},
|
||||
"propertyNames": {"format": "regex"},
|
||||
"default": {}
|
||||
},
|
||||
"dependentSchemas": {
|
||||
"type": "object",
|
||||
"additionalProperties": {"$dynamicRef": "#meta"},
|
||||
"default": {}
|
||||
},
|
||||
"propertyNames": {"$dynamicRef": "#meta"},
|
||||
"if": {"$dynamicRef": "#meta"},
|
||||
"then": {"$dynamicRef": "#meta"},
|
||||
"else": {"$dynamicRef": "#meta"},
|
||||
"allOf": {"$ref": "#/$defs/schemaArray"},
|
||||
"anyOf": {"$ref": "#/$defs/schemaArray"},
|
||||
"oneOf": {"$ref": "#/$defs/schemaArray"},
|
||||
"not": {"$dynamicRef": "#meta"}
|
||||
},
|
||||
"$defs": {
|
||||
"schemaArray": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {"$dynamicRef": "#meta"}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user