astro-md-editor 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/assets/{index-UQt6zCrS.js → index-CBGDT9fi.js} +97 -97
- package/.output/public/assets/{main-DzXOjsqg.js → main-BrRIwdKE.js} +1 -1
- package/.output/server/_libs/ajv.mjs +640 -42
- package/.output/server/_ssr/{index-Bn1uKwTu.mjs → index-qpTkRHX1.mjs} +15 -4
- package/.output/server/_ssr/index.mjs +5 -5
- package/.output/server/_ssr/{router-dPC3iVPs.mjs → router-DU3Hv7p_.mjs} +1 -1
- package/.output/server/{_tanstack-start-manifest_v-Da8tuNDH.mjs → _tanstack-start-manifest_v-BdKE8Xjm.mjs} +1 -1
- package/.output/server/index.mjs +42 -42
- package/package.json +1 -1
- package/scripts/bootstrap-collections.mjs +48 -2
|
@@ -2,7 +2,7 @@ import { g as getDefaultExportFromCjs } from "./react.mjs";
|
|
|
2
2
|
import { r as requireFastDeepEqual } from "./fast-deep-equal.mjs";
|
|
3
3
|
import { r as requireJsonSchemaTraverse } from "./json-schema-traverse.mjs";
|
|
4
4
|
import { r as requireFastUri } from "./fast-uri.mjs";
|
|
5
|
-
var
|
|
5
|
+
var _2020 = { exports: {} };
|
|
6
6
|
var core$1 = {};
|
|
7
7
|
var validate = {};
|
|
8
8
|
var boolSchema = {};
|
|
@@ -2939,18 +2939,18 @@ function requireCompile() {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
return compile;
|
|
2941
2941
|
}
|
|
2942
|
-
const $id$
|
|
2942
|
+
const $id$9 = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#";
|
|
2943
2943
|
const description = "Meta-schema for $data reference (JSON AnySchema extension proposal)";
|
|
2944
|
-
const type$
|
|
2944
|
+
const type$9 = "object";
|
|
2945
2945
|
const required$1 = ["$data"];
|
|
2946
|
-
const properties$
|
|
2946
|
+
const properties$a = { "$data": { "type": "string", "anyOf": [{ "format": "relative-json-pointer" }, { "format": "json-pointer" }] } };
|
|
2947
2947
|
const additionalProperties$1 = false;
|
|
2948
2948
|
const require$$9 = {
|
|
2949
|
-
$id: $id$
|
|
2949
|
+
$id: $id$9,
|
|
2950
2950
|
description,
|
|
2951
|
-
type: type$
|
|
2951
|
+
type: type$9,
|
|
2952
2952
|
required: required$1,
|
|
2953
|
-
properties: properties$
|
|
2953
|
+
properties: properties$a,
|
|
2954
2954
|
additionalProperties: additionalProperties$1
|
|
2955
2955
|
};
|
|
2956
2956
|
var uri = {};
|
|
@@ -3073,7 +3073,7 @@ function requireCore$1() {
|
|
|
3073
3073
|
uriResolver
|
|
3074
3074
|
};
|
|
3075
3075
|
}
|
|
3076
|
-
class
|
|
3076
|
+
class Ajv {
|
|
3077
3077
|
constructor(opts = {}) {
|
|
3078
3078
|
this.schemas = {};
|
|
3079
3079
|
this.refs = {};
|
|
@@ -3443,9 +3443,9 @@ function requireCore$1() {
|
|
|
3443
3443
|
}
|
|
3444
3444
|
}
|
|
3445
3445
|
}
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
exports$1.default =
|
|
3446
|
+
Ajv.ValidationError = validation_error_1.default;
|
|
3447
|
+
Ajv.MissingRefError = ref_error_1.default;
|
|
3448
|
+
exports$1.default = Ajv;
|
|
3449
3449
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
3450
3450
|
for (const key in checkOpts) {
|
|
3451
3451
|
const opt = key;
|
|
@@ -3576,7 +3576,7 @@ function requireCore$1() {
|
|
|
3576
3576
|
})(core$1);
|
|
3577
3577
|
return core$1;
|
|
3578
3578
|
}
|
|
3579
|
-
var
|
|
3579
|
+
var draft2020 = {};
|
|
3580
3580
|
var core = {};
|
|
3581
3581
|
var id = {};
|
|
3582
3582
|
var hasRequiredId;
|
|
@@ -4726,12 +4726,12 @@ function requireAdditionalProperties() {
|
|
|
4726
4726
|
additionalProperties.default = def;
|
|
4727
4727
|
return additionalProperties;
|
|
4728
4728
|
}
|
|
4729
|
-
var properties$
|
|
4729
|
+
var properties$9 = {};
|
|
4730
4730
|
var hasRequiredProperties;
|
|
4731
4731
|
function requireProperties() {
|
|
4732
|
-
if (hasRequiredProperties) return properties$
|
|
4732
|
+
if (hasRequiredProperties) return properties$9;
|
|
4733
4733
|
hasRequiredProperties = 1;
|
|
4734
|
-
Object.defineProperty(properties$
|
|
4734
|
+
Object.defineProperty(properties$9, "__esModule", { value: true });
|
|
4735
4735
|
const validate_1 = /* @__PURE__ */ requireValidate();
|
|
4736
4736
|
const code_1 = /* @__PURE__ */ requireCode();
|
|
4737
4737
|
const util_1 = /* @__PURE__ */ requireUtil();
|
|
@@ -4781,8 +4781,8 @@ function requireProperties() {
|
|
|
4781
4781
|
}
|
|
4782
4782
|
}
|
|
4783
4783
|
};
|
|
4784
|
-
properties$
|
|
4785
|
-
return properties$
|
|
4784
|
+
properties$9.default = def;
|
|
4785
|
+
return properties$9;
|
|
4786
4786
|
}
|
|
4787
4787
|
var patternProperties = {};
|
|
4788
4788
|
var hasRequiredPatternProperties;
|
|
@@ -4964,12 +4964,12 @@ function requireOneOf() {
|
|
|
4964
4964
|
oneOf.default = def;
|
|
4965
4965
|
return oneOf;
|
|
4966
4966
|
}
|
|
4967
|
-
var allOf = {};
|
|
4967
|
+
var allOf$1 = {};
|
|
4968
4968
|
var hasRequiredAllOf;
|
|
4969
4969
|
function requireAllOf() {
|
|
4970
|
-
if (hasRequiredAllOf) return allOf;
|
|
4970
|
+
if (hasRequiredAllOf) return allOf$1;
|
|
4971
4971
|
hasRequiredAllOf = 1;
|
|
4972
|
-
Object.defineProperty(allOf, "__esModule", { value: true });
|
|
4972
|
+
Object.defineProperty(allOf$1, "__esModule", { value: true });
|
|
4973
4973
|
const util_1 = /* @__PURE__ */ requireUtil();
|
|
4974
4974
|
const def = {
|
|
4975
4975
|
keyword: "allOf",
|
|
@@ -4988,8 +4988,8 @@ function requireAllOf() {
|
|
|
4988
4988
|
});
|
|
4989
4989
|
}
|
|
4990
4990
|
};
|
|
4991
|
-
allOf.default = def;
|
|
4992
|
-
return allOf;
|
|
4991
|
+
allOf$1.default = def;
|
|
4992
|
+
return allOf$1;
|
|
4993
4993
|
}
|
|
4994
4994
|
var _if = {};
|
|
4995
4995
|
var hasRequired_if;
|
|
@@ -5099,7 +5099,7 @@ function requireApplicator() {
|
|
|
5099
5099
|
const allOf_1 = /* @__PURE__ */ requireAllOf();
|
|
5100
5100
|
const if_1 = /* @__PURE__ */ require_if();
|
|
5101
5101
|
const thenElse_1 = /* @__PURE__ */ requireThenElse();
|
|
5102
|
-
function getApplicator(
|
|
5102
|
+
function getApplicator(draft20202 = false) {
|
|
5103
5103
|
const applicator2 = [
|
|
5104
5104
|
// any
|
|
5105
5105
|
not_1.default,
|
|
@@ -5115,7 +5115,7 @@ function requireApplicator() {
|
|
|
5115
5115
|
properties_1.default,
|
|
5116
5116
|
patternProperties_1.default
|
|
5117
5117
|
];
|
|
5118
|
-
if (
|
|
5118
|
+
if (draft20202)
|
|
5119
5119
|
applicator2.push(prefixItems_1.default, items2020_1.default);
|
|
5120
5120
|
else
|
|
5121
5121
|
applicator2.push(additionalItems_1.default, items_1.default);
|
|
@@ -5125,6 +5125,325 @@ function requireApplicator() {
|
|
|
5125
5125
|
applicator.default = getApplicator;
|
|
5126
5126
|
return applicator;
|
|
5127
5127
|
}
|
|
5128
|
+
var dynamic = {};
|
|
5129
|
+
var dynamicAnchor = {};
|
|
5130
|
+
var hasRequiredDynamicAnchor;
|
|
5131
|
+
function requireDynamicAnchor() {
|
|
5132
|
+
if (hasRequiredDynamicAnchor) return dynamicAnchor;
|
|
5133
|
+
hasRequiredDynamicAnchor = 1;
|
|
5134
|
+
Object.defineProperty(dynamicAnchor, "__esModule", { value: true });
|
|
5135
|
+
dynamicAnchor.dynamicAnchor = void 0;
|
|
5136
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
5137
|
+
const names_1 = /* @__PURE__ */ requireNames();
|
|
5138
|
+
const compile_1 = /* @__PURE__ */ requireCompile();
|
|
5139
|
+
const ref_1 = /* @__PURE__ */ requireRef();
|
|
5140
|
+
const def = {
|
|
5141
|
+
keyword: "$dynamicAnchor",
|
|
5142
|
+
schemaType: "string",
|
|
5143
|
+
code: (cxt) => dynamicAnchor$1(cxt, cxt.schema)
|
|
5144
|
+
};
|
|
5145
|
+
function dynamicAnchor$1(cxt, anchor) {
|
|
5146
|
+
const { gen, it } = cxt;
|
|
5147
|
+
it.schemaEnv.root.dynamicAnchors[anchor] = true;
|
|
5148
|
+
const v = (0, codegen_1._)`${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`;
|
|
5149
|
+
const validate2 = it.errSchemaPath === "#" ? it.validateName : _getValidate(cxt);
|
|
5150
|
+
gen.if((0, codegen_1._)`!${v}`, () => gen.assign(v, validate2));
|
|
5151
|
+
}
|
|
5152
|
+
dynamicAnchor.dynamicAnchor = dynamicAnchor$1;
|
|
5153
|
+
function _getValidate(cxt) {
|
|
5154
|
+
const { schemaEnv, schema, self } = cxt.it;
|
|
5155
|
+
const { root, baseId, localRefs, meta } = schemaEnv.root;
|
|
5156
|
+
const { schemaId } = self.opts;
|
|
5157
|
+
const sch = new compile_1.SchemaEnv({ schema, schemaId, root, baseId, localRefs, meta });
|
|
5158
|
+
compile_1.compileSchema.call(self, sch);
|
|
5159
|
+
return (0, ref_1.getValidate)(cxt, sch);
|
|
5160
|
+
}
|
|
5161
|
+
dynamicAnchor.default = def;
|
|
5162
|
+
return dynamicAnchor;
|
|
5163
|
+
}
|
|
5164
|
+
var dynamicRef = {};
|
|
5165
|
+
var hasRequiredDynamicRef;
|
|
5166
|
+
function requireDynamicRef() {
|
|
5167
|
+
if (hasRequiredDynamicRef) return dynamicRef;
|
|
5168
|
+
hasRequiredDynamicRef = 1;
|
|
5169
|
+
Object.defineProperty(dynamicRef, "__esModule", { value: true });
|
|
5170
|
+
dynamicRef.dynamicRef = void 0;
|
|
5171
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
5172
|
+
const names_1 = /* @__PURE__ */ requireNames();
|
|
5173
|
+
const ref_1 = /* @__PURE__ */ requireRef();
|
|
5174
|
+
const def = {
|
|
5175
|
+
keyword: "$dynamicRef",
|
|
5176
|
+
schemaType: "string",
|
|
5177
|
+
code: (cxt) => dynamicRef$1(cxt, cxt.schema)
|
|
5178
|
+
};
|
|
5179
|
+
function dynamicRef$1(cxt, ref2) {
|
|
5180
|
+
const { gen, keyword: keyword2, it } = cxt;
|
|
5181
|
+
if (ref2[0] !== "#")
|
|
5182
|
+
throw new Error(`"${keyword2}" only supports hash fragment reference`);
|
|
5183
|
+
const anchor = ref2.slice(1);
|
|
5184
|
+
if (it.allErrors) {
|
|
5185
|
+
_dynamicRef();
|
|
5186
|
+
} else {
|
|
5187
|
+
const valid = gen.let("valid", false);
|
|
5188
|
+
_dynamicRef(valid);
|
|
5189
|
+
cxt.ok(valid);
|
|
5190
|
+
}
|
|
5191
|
+
function _dynamicRef(valid) {
|
|
5192
|
+
if (it.schemaEnv.root.dynamicAnchors[anchor]) {
|
|
5193
|
+
const v = gen.let("_v", (0, codegen_1._)`${names_1.default.dynamicAnchors}${(0, codegen_1.getProperty)(anchor)}`);
|
|
5194
|
+
gen.if(v, _callRef(v, valid), _callRef(it.validateName, valid));
|
|
5195
|
+
} else {
|
|
5196
|
+
_callRef(it.validateName, valid)();
|
|
5197
|
+
}
|
|
5198
|
+
}
|
|
5199
|
+
function _callRef(validate2, valid) {
|
|
5200
|
+
return valid ? () => gen.block(() => {
|
|
5201
|
+
(0, ref_1.callRef)(cxt, validate2);
|
|
5202
|
+
gen.let(valid, true);
|
|
5203
|
+
}) : () => (0, ref_1.callRef)(cxt, validate2);
|
|
5204
|
+
}
|
|
5205
|
+
}
|
|
5206
|
+
dynamicRef.dynamicRef = dynamicRef$1;
|
|
5207
|
+
dynamicRef.default = def;
|
|
5208
|
+
return dynamicRef;
|
|
5209
|
+
}
|
|
5210
|
+
var recursiveAnchor = {};
|
|
5211
|
+
var hasRequiredRecursiveAnchor;
|
|
5212
|
+
function requireRecursiveAnchor() {
|
|
5213
|
+
if (hasRequiredRecursiveAnchor) return recursiveAnchor;
|
|
5214
|
+
hasRequiredRecursiveAnchor = 1;
|
|
5215
|
+
Object.defineProperty(recursiveAnchor, "__esModule", { value: true });
|
|
5216
|
+
const dynamicAnchor_1 = /* @__PURE__ */ requireDynamicAnchor();
|
|
5217
|
+
const util_1 = /* @__PURE__ */ requireUtil();
|
|
5218
|
+
const def = {
|
|
5219
|
+
keyword: "$recursiveAnchor",
|
|
5220
|
+
schemaType: "boolean",
|
|
5221
|
+
code(cxt) {
|
|
5222
|
+
if (cxt.schema)
|
|
5223
|
+
(0, dynamicAnchor_1.dynamicAnchor)(cxt, "");
|
|
5224
|
+
else
|
|
5225
|
+
(0, util_1.checkStrictMode)(cxt.it, "$recursiveAnchor: false is ignored");
|
|
5226
|
+
}
|
|
5227
|
+
};
|
|
5228
|
+
recursiveAnchor.default = def;
|
|
5229
|
+
return recursiveAnchor;
|
|
5230
|
+
}
|
|
5231
|
+
var recursiveRef = {};
|
|
5232
|
+
var hasRequiredRecursiveRef;
|
|
5233
|
+
function requireRecursiveRef() {
|
|
5234
|
+
if (hasRequiredRecursiveRef) return recursiveRef;
|
|
5235
|
+
hasRequiredRecursiveRef = 1;
|
|
5236
|
+
Object.defineProperty(recursiveRef, "__esModule", { value: true });
|
|
5237
|
+
const dynamicRef_1 = /* @__PURE__ */ requireDynamicRef();
|
|
5238
|
+
const def = {
|
|
5239
|
+
keyword: "$recursiveRef",
|
|
5240
|
+
schemaType: "string",
|
|
5241
|
+
code: (cxt) => (0, dynamicRef_1.dynamicRef)(cxt, cxt.schema)
|
|
5242
|
+
};
|
|
5243
|
+
recursiveRef.default = def;
|
|
5244
|
+
return recursiveRef;
|
|
5245
|
+
}
|
|
5246
|
+
var hasRequiredDynamic;
|
|
5247
|
+
function requireDynamic() {
|
|
5248
|
+
if (hasRequiredDynamic) return dynamic;
|
|
5249
|
+
hasRequiredDynamic = 1;
|
|
5250
|
+
Object.defineProperty(dynamic, "__esModule", { value: true });
|
|
5251
|
+
const dynamicAnchor_1 = /* @__PURE__ */ requireDynamicAnchor();
|
|
5252
|
+
const dynamicRef_1 = /* @__PURE__ */ requireDynamicRef();
|
|
5253
|
+
const recursiveAnchor_1 = /* @__PURE__ */ requireRecursiveAnchor();
|
|
5254
|
+
const recursiveRef_1 = /* @__PURE__ */ requireRecursiveRef();
|
|
5255
|
+
const dynamic$1 = [dynamicAnchor_1.default, dynamicRef_1.default, recursiveAnchor_1.default, recursiveRef_1.default];
|
|
5256
|
+
dynamic.default = dynamic$1;
|
|
5257
|
+
return dynamic;
|
|
5258
|
+
}
|
|
5259
|
+
var next = {};
|
|
5260
|
+
var dependentRequired = {};
|
|
5261
|
+
var hasRequiredDependentRequired;
|
|
5262
|
+
function requireDependentRequired() {
|
|
5263
|
+
if (hasRequiredDependentRequired) return dependentRequired;
|
|
5264
|
+
hasRequiredDependentRequired = 1;
|
|
5265
|
+
Object.defineProperty(dependentRequired, "__esModule", { value: true });
|
|
5266
|
+
const dependencies_1 = /* @__PURE__ */ requireDependencies();
|
|
5267
|
+
const def = {
|
|
5268
|
+
keyword: "dependentRequired",
|
|
5269
|
+
type: "object",
|
|
5270
|
+
schemaType: "object",
|
|
5271
|
+
error: dependencies_1.error,
|
|
5272
|
+
code: (cxt) => (0, dependencies_1.validatePropertyDeps)(cxt)
|
|
5273
|
+
};
|
|
5274
|
+
dependentRequired.default = def;
|
|
5275
|
+
return dependentRequired;
|
|
5276
|
+
}
|
|
5277
|
+
var dependentSchemas = {};
|
|
5278
|
+
var hasRequiredDependentSchemas;
|
|
5279
|
+
function requireDependentSchemas() {
|
|
5280
|
+
if (hasRequiredDependentSchemas) return dependentSchemas;
|
|
5281
|
+
hasRequiredDependentSchemas = 1;
|
|
5282
|
+
Object.defineProperty(dependentSchemas, "__esModule", { value: true });
|
|
5283
|
+
const dependencies_1 = /* @__PURE__ */ requireDependencies();
|
|
5284
|
+
const def = {
|
|
5285
|
+
keyword: "dependentSchemas",
|
|
5286
|
+
type: "object",
|
|
5287
|
+
schemaType: "object",
|
|
5288
|
+
code: (cxt) => (0, dependencies_1.validateSchemaDeps)(cxt)
|
|
5289
|
+
};
|
|
5290
|
+
dependentSchemas.default = def;
|
|
5291
|
+
return dependentSchemas;
|
|
5292
|
+
}
|
|
5293
|
+
var limitContains = {};
|
|
5294
|
+
var hasRequiredLimitContains;
|
|
5295
|
+
function requireLimitContains() {
|
|
5296
|
+
if (hasRequiredLimitContains) return limitContains;
|
|
5297
|
+
hasRequiredLimitContains = 1;
|
|
5298
|
+
Object.defineProperty(limitContains, "__esModule", { value: true });
|
|
5299
|
+
const util_1 = /* @__PURE__ */ requireUtil();
|
|
5300
|
+
const def = {
|
|
5301
|
+
keyword: ["maxContains", "minContains"],
|
|
5302
|
+
type: "array",
|
|
5303
|
+
schemaType: "number",
|
|
5304
|
+
code({ keyword: keyword2, parentSchema, it }) {
|
|
5305
|
+
if (parentSchema.contains === void 0) {
|
|
5306
|
+
(0, util_1.checkStrictMode)(it, `"${keyword2}" without "contains" is ignored`);
|
|
5307
|
+
}
|
|
5308
|
+
}
|
|
5309
|
+
};
|
|
5310
|
+
limitContains.default = def;
|
|
5311
|
+
return limitContains;
|
|
5312
|
+
}
|
|
5313
|
+
var hasRequiredNext;
|
|
5314
|
+
function requireNext() {
|
|
5315
|
+
if (hasRequiredNext) return next;
|
|
5316
|
+
hasRequiredNext = 1;
|
|
5317
|
+
Object.defineProperty(next, "__esModule", { value: true });
|
|
5318
|
+
const dependentRequired_1 = /* @__PURE__ */ requireDependentRequired();
|
|
5319
|
+
const dependentSchemas_1 = /* @__PURE__ */ requireDependentSchemas();
|
|
5320
|
+
const limitContains_1 = /* @__PURE__ */ requireLimitContains();
|
|
5321
|
+
const next$1 = [dependentRequired_1.default, dependentSchemas_1.default, limitContains_1.default];
|
|
5322
|
+
next.default = next$1;
|
|
5323
|
+
return next;
|
|
5324
|
+
}
|
|
5325
|
+
var unevaluated = {};
|
|
5326
|
+
var unevaluatedProperties = {};
|
|
5327
|
+
var hasRequiredUnevaluatedProperties;
|
|
5328
|
+
function requireUnevaluatedProperties() {
|
|
5329
|
+
if (hasRequiredUnevaluatedProperties) return unevaluatedProperties;
|
|
5330
|
+
hasRequiredUnevaluatedProperties = 1;
|
|
5331
|
+
Object.defineProperty(unevaluatedProperties, "__esModule", { value: true });
|
|
5332
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
5333
|
+
const util_1 = /* @__PURE__ */ requireUtil();
|
|
5334
|
+
const names_1 = /* @__PURE__ */ requireNames();
|
|
5335
|
+
const error = {
|
|
5336
|
+
message: "must NOT have unevaluated properties",
|
|
5337
|
+
params: ({ params }) => (0, codegen_1._)`{unevaluatedProperty: ${params.unevaluatedProperty}}`
|
|
5338
|
+
};
|
|
5339
|
+
const def = {
|
|
5340
|
+
keyword: "unevaluatedProperties",
|
|
5341
|
+
type: "object",
|
|
5342
|
+
schemaType: ["boolean", "object"],
|
|
5343
|
+
trackErrors: true,
|
|
5344
|
+
error,
|
|
5345
|
+
code(cxt) {
|
|
5346
|
+
const { gen, schema, data, errsCount, it } = cxt;
|
|
5347
|
+
if (!errsCount)
|
|
5348
|
+
throw new Error("ajv implementation error");
|
|
5349
|
+
const { allErrors, props } = it;
|
|
5350
|
+
if (props instanceof codegen_1.Name) {
|
|
5351
|
+
gen.if((0, codegen_1._)`${props} !== true`, () => gen.forIn("key", data, (key) => gen.if(unevaluatedDynamic(props, key), () => unevaluatedPropCode(key))));
|
|
5352
|
+
} else if (props !== true) {
|
|
5353
|
+
gen.forIn("key", data, (key) => props === void 0 ? unevaluatedPropCode(key) : gen.if(unevaluatedStatic(props, key), () => unevaluatedPropCode(key)));
|
|
5354
|
+
}
|
|
5355
|
+
it.props = true;
|
|
5356
|
+
cxt.ok((0, codegen_1._)`${errsCount} === ${names_1.default.errors}`);
|
|
5357
|
+
function unevaluatedPropCode(key) {
|
|
5358
|
+
if (schema === false) {
|
|
5359
|
+
cxt.setParams({ unevaluatedProperty: key });
|
|
5360
|
+
cxt.error();
|
|
5361
|
+
if (!allErrors)
|
|
5362
|
+
gen.break();
|
|
5363
|
+
return;
|
|
5364
|
+
}
|
|
5365
|
+
if (!(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
5366
|
+
const valid = gen.name("valid");
|
|
5367
|
+
cxt.subschema({
|
|
5368
|
+
keyword: "unevaluatedProperties",
|
|
5369
|
+
dataProp: key,
|
|
5370
|
+
dataPropType: util_1.Type.Str
|
|
5371
|
+
}, valid);
|
|
5372
|
+
if (!allErrors)
|
|
5373
|
+
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
5374
|
+
}
|
|
5375
|
+
}
|
|
5376
|
+
function unevaluatedDynamic(evaluatedProps, key) {
|
|
5377
|
+
return (0, codegen_1._)`!${evaluatedProps} || !${evaluatedProps}[${key}]`;
|
|
5378
|
+
}
|
|
5379
|
+
function unevaluatedStatic(evaluatedProps, key) {
|
|
5380
|
+
const ps = [];
|
|
5381
|
+
for (const p in evaluatedProps) {
|
|
5382
|
+
if (evaluatedProps[p] === true)
|
|
5383
|
+
ps.push((0, codegen_1._)`${key} !== ${p}`);
|
|
5384
|
+
}
|
|
5385
|
+
return (0, codegen_1.and)(...ps);
|
|
5386
|
+
}
|
|
5387
|
+
}
|
|
5388
|
+
};
|
|
5389
|
+
unevaluatedProperties.default = def;
|
|
5390
|
+
return unevaluatedProperties;
|
|
5391
|
+
}
|
|
5392
|
+
var unevaluatedItems = {};
|
|
5393
|
+
var hasRequiredUnevaluatedItems;
|
|
5394
|
+
function requireUnevaluatedItems() {
|
|
5395
|
+
if (hasRequiredUnevaluatedItems) return unevaluatedItems;
|
|
5396
|
+
hasRequiredUnevaluatedItems = 1;
|
|
5397
|
+
Object.defineProperty(unevaluatedItems, "__esModule", { value: true });
|
|
5398
|
+
const codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
5399
|
+
const util_1 = /* @__PURE__ */ requireUtil();
|
|
5400
|
+
const error = {
|
|
5401
|
+
message: ({ params: { len } }) => (0, codegen_1.str)`must NOT have more than ${len} items`,
|
|
5402
|
+
params: ({ params: { len } }) => (0, codegen_1._)`{limit: ${len}}`
|
|
5403
|
+
};
|
|
5404
|
+
const def = {
|
|
5405
|
+
keyword: "unevaluatedItems",
|
|
5406
|
+
type: "array",
|
|
5407
|
+
schemaType: ["boolean", "object"],
|
|
5408
|
+
error,
|
|
5409
|
+
code(cxt) {
|
|
5410
|
+
const { gen, schema, data, it } = cxt;
|
|
5411
|
+
const items2 = it.items || 0;
|
|
5412
|
+
if (items2 === true)
|
|
5413
|
+
return;
|
|
5414
|
+
const len = gen.const("len", (0, codegen_1._)`${data}.length`);
|
|
5415
|
+
if (schema === false) {
|
|
5416
|
+
cxt.setParams({ len: items2 });
|
|
5417
|
+
cxt.fail((0, codegen_1._)`${len} > ${items2}`);
|
|
5418
|
+
} else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
5419
|
+
const valid = gen.var("valid", (0, codegen_1._)`${len} <= ${items2}`);
|
|
5420
|
+
gen.if((0, codegen_1.not)(valid), () => validateItems(valid, items2));
|
|
5421
|
+
cxt.ok(valid);
|
|
5422
|
+
}
|
|
5423
|
+
it.items = true;
|
|
5424
|
+
function validateItems(valid, from) {
|
|
5425
|
+
gen.forRange("i", from, len, (i) => {
|
|
5426
|
+
cxt.subschema({ keyword: "unevaluatedItems", dataProp: i, dataPropType: util_1.Type.Num }, valid);
|
|
5427
|
+
if (!it.allErrors)
|
|
5428
|
+
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
5429
|
+
});
|
|
5430
|
+
}
|
|
5431
|
+
}
|
|
5432
|
+
};
|
|
5433
|
+
unevaluatedItems.default = def;
|
|
5434
|
+
return unevaluatedItems;
|
|
5435
|
+
}
|
|
5436
|
+
var hasRequiredUnevaluated;
|
|
5437
|
+
function requireUnevaluated() {
|
|
5438
|
+
if (hasRequiredUnevaluated) return unevaluated;
|
|
5439
|
+
hasRequiredUnevaluated = 1;
|
|
5440
|
+
Object.defineProperty(unevaluated, "__esModule", { value: true });
|
|
5441
|
+
const unevaluatedProperties_1 = /* @__PURE__ */ requireUnevaluatedProperties();
|
|
5442
|
+
const unevaluatedItems_1 = /* @__PURE__ */ requireUnevaluatedItems();
|
|
5443
|
+
const unevaluated$1 = [unevaluatedProperties_1.default, unevaluatedItems_1.default];
|
|
5444
|
+
unevaluated.default = unevaluated$1;
|
|
5445
|
+
return unevaluated;
|
|
5446
|
+
}
|
|
5128
5447
|
var format$1 = {};
|
|
5129
5448
|
var format = {};
|
|
5130
5449
|
var hasRequiredFormat$1;
|
|
@@ -5249,26 +5568,32 @@ function requireMetadata() {
|
|
|
5249
5568
|
];
|
|
5250
5569
|
return metadata;
|
|
5251
5570
|
}
|
|
5252
|
-
var
|
|
5253
|
-
function
|
|
5254
|
-
if (
|
|
5255
|
-
|
|
5256
|
-
Object.defineProperty(
|
|
5571
|
+
var hasRequiredDraft2020;
|
|
5572
|
+
function requireDraft2020() {
|
|
5573
|
+
if (hasRequiredDraft2020) return draft2020;
|
|
5574
|
+
hasRequiredDraft2020 = 1;
|
|
5575
|
+
Object.defineProperty(draft2020, "__esModule", { value: true });
|
|
5257
5576
|
const core_1 = /* @__PURE__ */ requireCore();
|
|
5258
5577
|
const validation_1 = /* @__PURE__ */ requireValidation();
|
|
5259
5578
|
const applicator_1 = /* @__PURE__ */ requireApplicator();
|
|
5579
|
+
const dynamic_1 = /* @__PURE__ */ requireDynamic();
|
|
5580
|
+
const next_1 = /* @__PURE__ */ requireNext();
|
|
5581
|
+
const unevaluated_1 = /* @__PURE__ */ requireUnevaluated();
|
|
5260
5582
|
const format_1 = /* @__PURE__ */ requireFormat();
|
|
5261
5583
|
const metadata_1 = /* @__PURE__ */ requireMetadata();
|
|
5262
|
-
const
|
|
5584
|
+
const draft2020Vocabularies = [
|
|
5585
|
+
dynamic_1.default,
|
|
5263
5586
|
core_1.default,
|
|
5264
5587
|
validation_1.default,
|
|
5265
|
-
(0, applicator_1.default)(),
|
|
5588
|
+
(0, applicator_1.default)(true),
|
|
5266
5589
|
format_1.default,
|
|
5267
5590
|
metadata_1.metadataVocabulary,
|
|
5268
|
-
metadata_1.contentVocabulary
|
|
5591
|
+
metadata_1.contentVocabulary,
|
|
5592
|
+
next_1.default,
|
|
5593
|
+
unevaluated_1.default
|
|
5269
5594
|
];
|
|
5270
|
-
|
|
5271
|
-
return
|
|
5595
|
+
draft2020.default = draft2020Vocabularies;
|
|
5596
|
+
return draft2020;
|
|
5272
5597
|
}
|
|
5273
5598
|
var discriminator = {};
|
|
5274
5599
|
var types = {};
|
|
@@ -5389,6 +5714,281 @@ function requireDiscriminator() {
|
|
|
5389
5714
|
discriminator.default = def;
|
|
5390
5715
|
return discriminator;
|
|
5391
5716
|
}
|
|
5717
|
+
var jsonSchema202012 = {};
|
|
5718
|
+
const $schema$8 = "https://json-schema.org/draft/2020-12/schema";
|
|
5719
|
+
const $id$8 = "https://json-schema.org/draft/2020-12/schema";
|
|
5720
|
+
const $vocabulary$7 = { "https://json-schema.org/draft/2020-12/vocab/core": true, "https://json-schema.org/draft/2020-12/vocab/applicator": true, "https://json-schema.org/draft/2020-12/vocab/unevaluated": true, "https://json-schema.org/draft/2020-12/vocab/validation": true, "https://json-schema.org/draft/2020-12/vocab/meta-data": true, "https://json-schema.org/draft/2020-12/vocab/format-annotation": true, "https://json-schema.org/draft/2020-12/vocab/content": true };
|
|
5721
|
+
const $dynamicAnchor$7 = "meta";
|
|
5722
|
+
const title$8 = "Core and Validation specifications meta-schema";
|
|
5723
|
+
const allOf = [{ "$ref": "meta/core" }, { "$ref": "meta/applicator" }, { "$ref": "meta/unevaluated" }, { "$ref": "meta/validation" }, { "$ref": "meta/meta-data" }, { "$ref": "meta/format-annotation" }, { "$ref": "meta/content" }];
|
|
5724
|
+
const type$8 = ["object", "boolean"];
|
|
5725
|
+
const $comment = "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.";
|
|
5726
|
+
const properties$8 = { "definitions": { "$comment": '"definitions" has been replaced by "$defs".', "type": "object", "additionalProperties": { "$dynamicRef": "#meta" }, "deprecated": true, "default": {} }, "dependencies": { "$comment": '"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.', "type": "object", "additionalProperties": { "anyOf": [{ "$dynamicRef": "#meta" }, { "$ref": "meta/validation#/$defs/stringArray" }] }, "deprecated": true, "default": {} }, "$recursiveAnchor": { "$comment": '"$recursiveAnchor" has been replaced by "$dynamicAnchor".', "$ref": "meta/core#/$defs/anchorString", "deprecated": true }, "$recursiveRef": { "$comment": '"$recursiveRef" has been replaced by "$dynamicRef".', "$ref": "meta/core#/$defs/uriReferenceString", "deprecated": true } };
|
|
5727
|
+
const require$$0 = {
|
|
5728
|
+
$schema: $schema$8,
|
|
5729
|
+
$id: $id$8,
|
|
5730
|
+
$vocabulary: $vocabulary$7,
|
|
5731
|
+
$dynamicAnchor: $dynamicAnchor$7,
|
|
5732
|
+
title: title$8,
|
|
5733
|
+
allOf,
|
|
5734
|
+
type: type$8,
|
|
5735
|
+
$comment,
|
|
5736
|
+
properties: properties$8
|
|
5737
|
+
};
|
|
5738
|
+
const $schema$7 = "https://json-schema.org/draft/2020-12/schema";
|
|
5739
|
+
const $id$7 = "https://json-schema.org/draft/2020-12/meta/applicator";
|
|
5740
|
+
const $vocabulary$6 = { "https://json-schema.org/draft/2020-12/vocab/applicator": true };
|
|
5741
|
+
const $dynamicAnchor$6 = "meta";
|
|
5742
|
+
const title$7 = "Applicator vocabulary meta-schema";
|
|
5743
|
+
const type$7 = ["object", "boolean"];
|
|
5744
|
+
const properties$7 = { "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" } };
|
|
5745
|
+
const $defs$2 = { "schemaArray": { "type": "array", "minItems": 1, "items": { "$dynamicRef": "#meta" } } };
|
|
5746
|
+
const require$$1 = {
|
|
5747
|
+
$schema: $schema$7,
|
|
5748
|
+
$id: $id$7,
|
|
5749
|
+
$vocabulary: $vocabulary$6,
|
|
5750
|
+
$dynamicAnchor: $dynamicAnchor$6,
|
|
5751
|
+
title: title$7,
|
|
5752
|
+
type: type$7,
|
|
5753
|
+
properties: properties$7,
|
|
5754
|
+
$defs: $defs$2
|
|
5755
|
+
};
|
|
5756
|
+
const $schema$6 = "https://json-schema.org/draft/2020-12/schema";
|
|
5757
|
+
const $id$6 = "https://json-schema.org/draft/2020-12/meta/unevaluated";
|
|
5758
|
+
const $vocabulary$5 = { "https://json-schema.org/draft/2020-12/vocab/unevaluated": true };
|
|
5759
|
+
const $dynamicAnchor$5 = "meta";
|
|
5760
|
+
const title$6 = "Unevaluated applicator vocabulary meta-schema";
|
|
5761
|
+
const type$6 = ["object", "boolean"];
|
|
5762
|
+
const properties$6 = { "unevaluatedItems": { "$dynamicRef": "#meta" }, "unevaluatedProperties": { "$dynamicRef": "#meta" } };
|
|
5763
|
+
const require$$2 = {
|
|
5764
|
+
$schema: $schema$6,
|
|
5765
|
+
$id: $id$6,
|
|
5766
|
+
$vocabulary: $vocabulary$5,
|
|
5767
|
+
$dynamicAnchor: $dynamicAnchor$5,
|
|
5768
|
+
title: title$6,
|
|
5769
|
+
type: type$6,
|
|
5770
|
+
properties: properties$6
|
|
5771
|
+
};
|
|
5772
|
+
const $schema$5 = "https://json-schema.org/draft/2020-12/schema";
|
|
5773
|
+
const $id$5 = "https://json-schema.org/draft/2020-12/meta/content";
|
|
5774
|
+
const $vocabulary$4 = { "https://json-schema.org/draft/2020-12/vocab/content": true };
|
|
5775
|
+
const $dynamicAnchor$4 = "meta";
|
|
5776
|
+
const title$5 = "Content vocabulary meta-schema";
|
|
5777
|
+
const type$5 = ["object", "boolean"];
|
|
5778
|
+
const properties$5 = { "contentEncoding": { "type": "string" }, "contentMediaType": { "type": "string" }, "contentSchema": { "$dynamicRef": "#meta" } };
|
|
5779
|
+
const require$$3$1 = {
|
|
5780
|
+
$schema: $schema$5,
|
|
5781
|
+
$id: $id$5,
|
|
5782
|
+
$vocabulary: $vocabulary$4,
|
|
5783
|
+
$dynamicAnchor: $dynamicAnchor$4,
|
|
5784
|
+
title: title$5,
|
|
5785
|
+
type: type$5,
|
|
5786
|
+
properties: properties$5
|
|
5787
|
+
};
|
|
5788
|
+
const $schema$4 = "https://json-schema.org/draft/2020-12/schema";
|
|
5789
|
+
const $id$4 = "https://json-schema.org/draft/2020-12/meta/core";
|
|
5790
|
+
const $vocabulary$3 = { "https://json-schema.org/draft/2020-12/vocab/core": true };
|
|
5791
|
+
const $dynamicAnchor$3 = "meta";
|
|
5792
|
+
const title$4 = "Core vocabulary meta-schema";
|
|
5793
|
+
const type$4 = ["object", "boolean"];
|
|
5794
|
+
const properties$4 = { "$id": { "$ref": "#/$defs/uriReferenceString", "$comment": "Non-empty fragments not allowed.", "pattern": "^[^#]*#?$" }, "$schema": { "$ref": "#/$defs/uriString" }, "$ref": { "$ref": "#/$defs/uriReferenceString" }, "$anchor": { "$ref": "#/$defs/anchorString" }, "$dynamicRef": { "$ref": "#/$defs/uriReferenceString" }, "$dynamicAnchor": { "$ref": "#/$defs/anchorString" }, "$vocabulary": { "type": "object", "propertyNames": { "$ref": "#/$defs/uriString" }, "additionalProperties": { "type": "boolean" } }, "$comment": { "type": "string" }, "$defs": { "type": "object", "additionalProperties": { "$dynamicRef": "#meta" } } };
|
|
5795
|
+
const $defs$1 = { "anchorString": { "type": "string", "pattern": "^[A-Za-z_][-A-Za-z0-9._]*$" }, "uriString": { "type": "string", "format": "uri" }, "uriReferenceString": { "type": "string", "format": "uri-reference" } };
|
|
5796
|
+
const require$$4 = {
|
|
5797
|
+
$schema: $schema$4,
|
|
5798
|
+
$id: $id$4,
|
|
5799
|
+
$vocabulary: $vocabulary$3,
|
|
5800
|
+
$dynamicAnchor: $dynamicAnchor$3,
|
|
5801
|
+
title: title$4,
|
|
5802
|
+
type: type$4,
|
|
5803
|
+
properties: properties$4,
|
|
5804
|
+
$defs: $defs$1
|
|
5805
|
+
};
|
|
5806
|
+
const $schema$3 = "https://json-schema.org/draft/2020-12/schema";
|
|
5807
|
+
const $id$3 = "https://json-schema.org/draft/2020-12/meta/format-annotation";
|
|
5808
|
+
const $vocabulary$2 = { "https://json-schema.org/draft/2020-12/vocab/format-annotation": true };
|
|
5809
|
+
const $dynamicAnchor$2 = "meta";
|
|
5810
|
+
const title$3 = "Format vocabulary meta-schema for annotation results";
|
|
5811
|
+
const type$3 = ["object", "boolean"];
|
|
5812
|
+
const properties$3 = { "format": { "type": "string" } };
|
|
5813
|
+
const require$$5 = {
|
|
5814
|
+
$schema: $schema$3,
|
|
5815
|
+
$id: $id$3,
|
|
5816
|
+
$vocabulary: $vocabulary$2,
|
|
5817
|
+
$dynamicAnchor: $dynamicAnchor$2,
|
|
5818
|
+
title: title$3,
|
|
5819
|
+
type: type$3,
|
|
5820
|
+
properties: properties$3
|
|
5821
|
+
};
|
|
5822
|
+
const $schema$2 = "https://json-schema.org/draft/2020-12/schema";
|
|
5823
|
+
const $id$2 = "https://json-schema.org/draft/2020-12/meta/meta-data";
|
|
5824
|
+
const $vocabulary$1 = { "https://json-schema.org/draft/2020-12/vocab/meta-data": true };
|
|
5825
|
+
const $dynamicAnchor$1 = "meta";
|
|
5826
|
+
const title$2 = "Meta-data vocabulary meta-schema";
|
|
5827
|
+
const type$2 = ["object", "boolean"];
|
|
5828
|
+
const properties$2 = { "title": { "type": "string" }, "description": { "type": "string" }, "default": true, "deprecated": { "type": "boolean", "default": false }, "readOnly": { "type": "boolean", "default": false }, "writeOnly": { "type": "boolean", "default": false }, "examples": { "type": "array", "items": true } };
|
|
5829
|
+
const require$$6 = {
|
|
5830
|
+
$schema: $schema$2,
|
|
5831
|
+
$id: $id$2,
|
|
5832
|
+
$vocabulary: $vocabulary$1,
|
|
5833
|
+
$dynamicAnchor: $dynamicAnchor$1,
|
|
5834
|
+
title: title$2,
|
|
5835
|
+
type: type$2,
|
|
5836
|
+
properties: properties$2
|
|
5837
|
+
};
|
|
5838
|
+
const $schema$1 = "https://json-schema.org/draft/2020-12/schema";
|
|
5839
|
+
const $id$1 = "https://json-schema.org/draft/2020-12/meta/validation";
|
|
5840
|
+
const $vocabulary = { "https://json-schema.org/draft/2020-12/vocab/validation": true };
|
|
5841
|
+
const $dynamicAnchor = "meta";
|
|
5842
|
+
const title$1 = "Validation vocabulary meta-schema";
|
|
5843
|
+
const type$1 = ["object", "boolean"];
|
|
5844
|
+
const properties$1 = { "type": { "anyOf": [{ "$ref": "#/$defs/simpleTypes" }, { "type": "array", "items": { "$ref": "#/$defs/simpleTypes" }, "minItems": 1, "uniqueItems": true }] }, "const": true, "enum": { "type": "array", "items": true }, "multipleOf": { "type": "number", "exclusiveMinimum": 0 }, "maximum": { "type": "number" }, "exclusiveMaximum": { "type": "number" }, "minimum": { "type": "number" }, "exclusiveMinimum": { "type": "number" }, "maxLength": { "$ref": "#/$defs/nonNegativeInteger" }, "minLength": { "$ref": "#/$defs/nonNegativeIntegerDefault0" }, "pattern": { "type": "string", "format": "regex" }, "maxItems": { "$ref": "#/$defs/nonNegativeInteger" }, "minItems": { "$ref": "#/$defs/nonNegativeIntegerDefault0" }, "uniqueItems": { "type": "boolean", "default": false }, "maxContains": { "$ref": "#/$defs/nonNegativeInteger" }, "minContains": { "$ref": "#/$defs/nonNegativeInteger", "default": 1 }, "maxProperties": { "$ref": "#/$defs/nonNegativeInteger" }, "minProperties": { "$ref": "#/$defs/nonNegativeIntegerDefault0" }, "required": { "$ref": "#/$defs/stringArray" }, "dependentRequired": { "type": "object", "additionalProperties": { "$ref": "#/$defs/stringArray" } } };
|
|
5845
|
+
const $defs = { "nonNegativeInteger": { "type": "integer", "minimum": 0 }, "nonNegativeIntegerDefault0": { "$ref": "#/$defs/nonNegativeInteger", "default": 0 }, "simpleTypes": { "enum": ["array", "boolean", "integer", "null", "number", "object", "string"] }, "stringArray": { "type": "array", "items": { "type": "string" }, "uniqueItems": true, "default": [] } };
|
|
5846
|
+
const require$$7 = {
|
|
5847
|
+
$schema: $schema$1,
|
|
5848
|
+
$id: $id$1,
|
|
5849
|
+
$vocabulary,
|
|
5850
|
+
$dynamicAnchor,
|
|
5851
|
+
title: title$1,
|
|
5852
|
+
type: type$1,
|
|
5853
|
+
properties: properties$1,
|
|
5854
|
+
$defs
|
|
5855
|
+
};
|
|
5856
|
+
var hasRequiredJsonSchema202012;
|
|
5857
|
+
function requireJsonSchema202012() {
|
|
5858
|
+
if (hasRequiredJsonSchema202012) return jsonSchema202012;
|
|
5859
|
+
hasRequiredJsonSchema202012 = 1;
|
|
5860
|
+
Object.defineProperty(jsonSchema202012, "__esModule", { value: true });
|
|
5861
|
+
const metaSchema = require$$0;
|
|
5862
|
+
const applicator2 = require$$1;
|
|
5863
|
+
const unevaluated2 = require$$2;
|
|
5864
|
+
const content = require$$3$1;
|
|
5865
|
+
const core2 = require$$4;
|
|
5866
|
+
const format2 = require$$5;
|
|
5867
|
+
const metadata2 = require$$6;
|
|
5868
|
+
const validation2 = require$$7;
|
|
5869
|
+
const META_SUPPORT_DATA = ["/properties"];
|
|
5870
|
+
function addMetaSchema2020($data) {
|
|
5871
|
+
[
|
|
5872
|
+
metaSchema,
|
|
5873
|
+
applicator2,
|
|
5874
|
+
unevaluated2,
|
|
5875
|
+
content,
|
|
5876
|
+
core2,
|
|
5877
|
+
with$data(this, format2),
|
|
5878
|
+
metadata2,
|
|
5879
|
+
with$data(this, validation2)
|
|
5880
|
+
].forEach((sch) => this.addMetaSchema(sch, void 0, false));
|
|
5881
|
+
return this;
|
|
5882
|
+
function with$data(ajv2, sch) {
|
|
5883
|
+
return $data ? ajv2.$dataMetaSchema(sch, META_SUPPORT_DATA) : sch;
|
|
5884
|
+
}
|
|
5885
|
+
}
|
|
5886
|
+
jsonSchema202012.default = addMetaSchema2020;
|
|
5887
|
+
return jsonSchema202012;
|
|
5888
|
+
}
|
|
5889
|
+
var hasRequired_2020;
|
|
5890
|
+
function require_2020() {
|
|
5891
|
+
if (hasRequired_2020) return _2020.exports;
|
|
5892
|
+
hasRequired_2020 = 1;
|
|
5893
|
+
(function(module, exports$1) {
|
|
5894
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5895
|
+
exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv2020 = void 0;
|
|
5896
|
+
const core_1 = /* @__PURE__ */ requireCore$1();
|
|
5897
|
+
const draft2020_1 = /* @__PURE__ */ requireDraft2020();
|
|
5898
|
+
const discriminator_1 = /* @__PURE__ */ requireDiscriminator();
|
|
5899
|
+
const json_schema_2020_12_1 = /* @__PURE__ */ requireJsonSchema202012();
|
|
5900
|
+
const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema";
|
|
5901
|
+
class Ajv20202 extends core_1.default {
|
|
5902
|
+
constructor(opts = {}) {
|
|
5903
|
+
super({
|
|
5904
|
+
...opts,
|
|
5905
|
+
dynamicRef: true,
|
|
5906
|
+
next: true,
|
|
5907
|
+
unevaluated: true
|
|
5908
|
+
});
|
|
5909
|
+
}
|
|
5910
|
+
_addVocabularies() {
|
|
5911
|
+
super._addVocabularies();
|
|
5912
|
+
draft2020_1.default.forEach((v) => this.addVocabulary(v));
|
|
5913
|
+
if (this.opts.discriminator)
|
|
5914
|
+
this.addKeyword(discriminator_1.default);
|
|
5915
|
+
}
|
|
5916
|
+
_addDefaultMetaSchema() {
|
|
5917
|
+
super._addDefaultMetaSchema();
|
|
5918
|
+
const { $data, meta } = this.opts;
|
|
5919
|
+
if (!meta)
|
|
5920
|
+
return;
|
|
5921
|
+
json_schema_2020_12_1.default.call(this, $data);
|
|
5922
|
+
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID;
|
|
5923
|
+
}
|
|
5924
|
+
defaultMeta() {
|
|
5925
|
+
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
5926
|
+
}
|
|
5927
|
+
}
|
|
5928
|
+
exports$1.Ajv2020 = Ajv20202;
|
|
5929
|
+
module.exports = exports$1 = Ajv20202;
|
|
5930
|
+
module.exports.Ajv2020 = Ajv20202;
|
|
5931
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5932
|
+
exports$1.default = Ajv20202;
|
|
5933
|
+
var validate_1 = /* @__PURE__ */ requireValidate();
|
|
5934
|
+
Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
|
|
5935
|
+
return validate_1.KeywordCxt;
|
|
5936
|
+
} });
|
|
5937
|
+
var codegen_1 = /* @__PURE__ */ requireCodegen();
|
|
5938
|
+
Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
|
|
5939
|
+
return codegen_1._;
|
|
5940
|
+
} });
|
|
5941
|
+
Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
|
|
5942
|
+
return codegen_1.str;
|
|
5943
|
+
} });
|
|
5944
|
+
Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
|
|
5945
|
+
return codegen_1.stringify;
|
|
5946
|
+
} });
|
|
5947
|
+
Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
|
|
5948
|
+
return codegen_1.nil;
|
|
5949
|
+
} });
|
|
5950
|
+
Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
|
|
5951
|
+
return codegen_1.Name;
|
|
5952
|
+
} });
|
|
5953
|
+
Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
|
|
5954
|
+
return codegen_1.CodeGen;
|
|
5955
|
+
} });
|
|
5956
|
+
var validation_error_1 = /* @__PURE__ */ requireValidation_error();
|
|
5957
|
+
Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function() {
|
|
5958
|
+
return validation_error_1.default;
|
|
5959
|
+
} });
|
|
5960
|
+
var ref_error_1 = /* @__PURE__ */ requireRef_error();
|
|
5961
|
+
Object.defineProperty(exports$1, "MissingRefError", { enumerable: true, get: function() {
|
|
5962
|
+
return ref_error_1.default;
|
|
5963
|
+
} });
|
|
5964
|
+
})(_2020, _2020.exports);
|
|
5965
|
+
return _2020.exports;
|
|
5966
|
+
}
|
|
5967
|
+
var _2020Exports = /* @__PURE__ */ require_2020();
|
|
5968
|
+
const Ajv2020 = /* @__PURE__ */ getDefaultExportFromCjs(_2020Exports);
|
|
5969
|
+
var ajv = { exports: {} };
|
|
5970
|
+
var draft7 = {};
|
|
5971
|
+
var hasRequiredDraft7;
|
|
5972
|
+
function requireDraft7() {
|
|
5973
|
+
if (hasRequiredDraft7) return draft7;
|
|
5974
|
+
hasRequiredDraft7 = 1;
|
|
5975
|
+
Object.defineProperty(draft7, "__esModule", { value: true });
|
|
5976
|
+
const core_1 = /* @__PURE__ */ requireCore();
|
|
5977
|
+
const validation_1 = /* @__PURE__ */ requireValidation();
|
|
5978
|
+
const applicator_1 = /* @__PURE__ */ requireApplicator();
|
|
5979
|
+
const format_1 = /* @__PURE__ */ requireFormat();
|
|
5980
|
+
const metadata_1 = /* @__PURE__ */ requireMetadata();
|
|
5981
|
+
const draft7Vocabularies = [
|
|
5982
|
+
core_1.default,
|
|
5983
|
+
validation_1.default,
|
|
5984
|
+
(0, applicator_1.default)(),
|
|
5985
|
+
format_1.default,
|
|
5986
|
+
metadata_1.metadataVocabulary,
|
|
5987
|
+
metadata_1.contentVocabulary
|
|
5988
|
+
];
|
|
5989
|
+
draft7.default = draft7Vocabularies;
|
|
5990
|
+
return draft7;
|
|
5991
|
+
}
|
|
5392
5992
|
const $schema = "http://json-schema.org/draft-07/schema#";
|
|
5393
5993
|
const $id = "http://json-schema.org/draft-07/schema#";
|
|
5394
5994
|
const title = "Core schema meta-schema";
|
|
@@ -5417,7 +6017,7 @@ function requireAjv() {
|
|
|
5417
6017
|
const draft7MetaSchema = require$$3;
|
|
5418
6018
|
const META_SUPPORT_DATA = ["/properties"];
|
|
5419
6019
|
const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema";
|
|
5420
|
-
class
|
|
6020
|
+
class Ajv extends core_1.default {
|
|
5421
6021
|
_addVocabularies() {
|
|
5422
6022
|
super._addVocabularies();
|
|
5423
6023
|
draft7_1.default.forEach((v) => this.addVocabulary(v));
|
|
@@ -5436,11 +6036,11 @@ function requireAjv() {
|
|
|
5436
6036
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
5437
6037
|
}
|
|
5438
6038
|
}
|
|
5439
|
-
exports$1.Ajv =
|
|
5440
|
-
module.exports = exports$1 =
|
|
5441
|
-
module.exports.Ajv =
|
|
6039
|
+
exports$1.Ajv = Ajv;
|
|
6040
|
+
module.exports = exports$1 = Ajv;
|
|
6041
|
+
module.exports.Ajv = Ajv;
|
|
5442
6042
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
5443
|
-
exports$1.default =
|
|
6043
|
+
exports$1.default = Ajv;
|
|
5444
6044
|
var validate_1 = /* @__PURE__ */ requireValidate();
|
|
5445
6045
|
Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
|
|
5446
6046
|
return validate_1.KeywordCxt;
|
|
@@ -5475,10 +6075,8 @@ function requireAjv() {
|
|
|
5475
6075
|
})(ajv, ajv.exports);
|
|
5476
6076
|
return ajv.exports;
|
|
5477
6077
|
}
|
|
5478
|
-
var ajvExports = /* @__PURE__ */ requireAjv();
|
|
5479
|
-
const Ajv = /* @__PURE__ */ getDefaultExportFromCjs(ajvExports);
|
|
5480
6078
|
export {
|
|
5481
|
-
|
|
6079
|
+
Ajv2020 as A,
|
|
5482
6080
|
requireAjv as a,
|
|
5483
6081
|
requireCodegen as r
|
|
5484
6082
|
};
|