@redocly/cli 2.37.0 → 2.39.0
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/THIRD_PARTY_NOTICES +1 -1
- package/lib/chunks/{IVW4MILQ.js → 2LEVMD2A.js} +3 -3
- package/lib/chunks/{YCTAWG2U.js → 4FB5ZIPP.js} +1 -1
- package/lib/chunks/BA5AZJUM.js +681 -0
- package/lib/chunks/BNHQNMUG.js +525 -0
- package/lib/chunks/{LJUXYC4S.js → C3PXBQU5.js} +1 -1
- package/lib/chunks/C5HID4LT.js +571 -0
- package/lib/chunks/{CPNIO4J3.js → KYZEVOA2.js} +1679 -1400
- package/lib/chunks/{FRVYIHIR.js → OVY6O6WL.js} +5 -3
- package/lib/chunks/{4UQ4YHWW.js → OYZMAAZV.js} +5 -10
- package/lib/chunks/U4V3W7MN.js +17 -0
- package/lib/chunks/UUU33DK3.js +125 -0
- package/lib/chunks/{M7TYKZDD.js → V6CVT3XE.js} +6 -4
- package/lib/chunks/{QFYLVVG2.js → V74PIVJZ.js} +8 -5
- package/lib/chunks/{ZHITMP73.js → W5R2GYDZ.js} +3 -2
- package/lib/chunks/WST4KAJO.js +2788 -0
- package/lib/chunks/{U3LS66ZD.js → XB6C62FW.js} +100 -771
- package/lib/index.js +157 -14
- package/package.json +1 -1
|
@@ -924,8 +924,8 @@ var require_scan = __commonJS({
|
|
|
924
924
|
let prevIndex;
|
|
925
925
|
for (let idx = 0; idx < slashes.length; idx++) {
|
|
926
926
|
const n2 = prevIndex ? prevIndex + 1 : start;
|
|
927
|
-
const
|
|
928
|
-
const value = input.slice(n2,
|
|
927
|
+
const i = slashes[idx];
|
|
928
|
+
const value = input.slice(n2, i);
|
|
929
929
|
if (opts.tokens) {
|
|
930
930
|
if (idx === 0 && start !== 0) {
|
|
931
931
|
tokens[idx].isPrefix = true;
|
|
@@ -939,7 +939,7 @@ var require_scan = __commonJS({
|
|
|
939
939
|
if (idx !== 0 || value !== "") {
|
|
940
940
|
parts.push(value);
|
|
941
941
|
}
|
|
942
|
-
prevIndex =
|
|
942
|
+
prevIndex = i;
|
|
943
943
|
}
|
|
944
944
|
if (prevIndex && prevIndex + 1 < input.length) {
|
|
945
945
|
const value = input.slice(prevIndex + 1);
|
|
@@ -1067,9 +1067,9 @@ var require_parse = __commonJS({
|
|
|
1067
1067
|
};
|
|
1068
1068
|
var hasRepeatedCharPrefixOverlap = (branches) => {
|
|
1069
1069
|
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
1070
|
-
for (let
|
|
1071
|
-
for (let j2 =
|
|
1072
|
-
const a2 = values[
|
|
1070
|
+
for (let i = 0; i < values.length; i++) {
|
|
1071
|
+
for (let j2 = i + 1; j2 < values.length; j2++) {
|
|
1072
|
+
const a2 = values[i];
|
|
1073
1073
|
const b2 = values[j2];
|
|
1074
1074
|
const char = a2[0];
|
|
1075
1075
|
if (!char || a2 !== char.repeat(a2.length) || b2 !== char.repeat(b2.length)) {
|
|
@@ -1090,8 +1090,8 @@ var require_parse = __commonJS({
|
|
|
1090
1090
|
let paren = 0;
|
|
1091
1091
|
let quote = 0;
|
|
1092
1092
|
let escaped = false;
|
|
1093
|
-
for (let
|
|
1094
|
-
const ch = pattern[
|
|
1093
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
1094
|
+
const ch = pattern[i];
|
|
1095
1095
|
if (escaped === true) {
|
|
1096
1096
|
escaped = false;
|
|
1097
1097
|
continue;
|
|
@@ -1125,13 +1125,13 @@ var require_parse = __commonJS({
|
|
|
1125
1125
|
if (ch === ")") {
|
|
1126
1126
|
paren--;
|
|
1127
1127
|
if (paren === 0) {
|
|
1128
|
-
if (requireEnd === true &&
|
|
1128
|
+
if (requireEnd === true && i !== pattern.length - 1) {
|
|
1129
1129
|
return;
|
|
1130
1130
|
}
|
|
1131
1131
|
return {
|
|
1132
1132
|
type: pattern[0],
|
|
1133
|
-
body: pattern.slice(2,
|
|
1134
|
-
end:
|
|
1133
|
+
body: pattern.slice(2, i),
|
|
1134
|
+
end: i
|
|
1135
1135
|
};
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
@@ -1343,10 +1343,10 @@ var require_parse = __commonJS({
|
|
|
1343
1343
|
open.type = "text";
|
|
1344
1344
|
open.value = literal;
|
|
1345
1345
|
open.output = safeOutput || utils.escapeRegex(literal);
|
|
1346
|
-
for (let
|
|
1347
|
-
tokens[
|
|
1348
|
-
tokens[
|
|
1349
|
-
delete tokens[
|
|
1346
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
1347
|
+
tokens[i].value = "";
|
|
1348
|
+
tokens[i].output = "";
|
|
1349
|
+
delete tokens[i].suffix;
|
|
1350
1350
|
}
|
|
1351
1351
|
state.output = token.output + open.output;
|
|
1352
1352
|
state.backtrack = true;
|
|
@@ -1377,10 +1377,10 @@ var require_parse = __commonJS({
|
|
|
1377
1377
|
};
|
|
1378
1378
|
if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
1379
1379
|
let backslashes = false;
|
|
1380
|
-
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (
|
|
1380
|
+
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m2, esc, chars, first, rest, index) => {
|
|
1381
1381
|
if (first === "\\") {
|
|
1382
1382
|
backslashes = true;
|
|
1383
|
-
return
|
|
1383
|
+
return m2;
|
|
1384
1384
|
}
|
|
1385
1385
|
if (first === "?") {
|
|
1386
1386
|
if (esc) {
|
|
@@ -1400,14 +1400,14 @@ var require_parse = __commonJS({
|
|
|
1400
1400
|
}
|
|
1401
1401
|
return star;
|
|
1402
1402
|
}
|
|
1403
|
-
return esc ?
|
|
1403
|
+
return esc ? m2 : `\\${m2}`;
|
|
1404
1404
|
});
|
|
1405
1405
|
if (backslashes === true) {
|
|
1406
1406
|
if (opts.unescape === true) {
|
|
1407
1407
|
output = output.replace(/\\/g, "");
|
|
1408
1408
|
} else {
|
|
1409
|
-
output = output.replace(/\\+/g, (
|
|
1410
|
-
return
|
|
1409
|
+
output = output.replace(/\\+/g, (m2) => {
|
|
1410
|
+
return m2.length % 2 === 0 ? "\\\\" : m2 ? "\\" : "";
|
|
1411
1411
|
});
|
|
1412
1412
|
}
|
|
1413
1413
|
}
|
|
@@ -1589,13 +1589,13 @@ var require_parse = __commonJS({
|
|
|
1589
1589
|
if (brace.dots === true) {
|
|
1590
1590
|
const arr = tokens.slice();
|
|
1591
1591
|
const range = [];
|
|
1592
|
-
for (let
|
|
1592
|
+
for (let i = arr.length - 1; i >= 0; i--) {
|
|
1593
1593
|
tokens.pop();
|
|
1594
|
-
if (arr[
|
|
1594
|
+
if (arr[i].type === "brace") {
|
|
1595
1595
|
break;
|
|
1596
1596
|
}
|
|
1597
|
-
if (arr[
|
|
1598
|
-
range.unshift(arr[
|
|
1597
|
+
if (arr[i].type !== "dots") {
|
|
1598
|
+
range.unshift(arr[i].value);
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
1601
|
output = expandRange(range, opts);
|
|
@@ -2172,10 +2172,10 @@ var require_code = __commonJS({
|
|
|
2172
2172
|
exports.nil = new _Code("");
|
|
2173
2173
|
function _4(strs, ...args) {
|
|
2174
2174
|
const code = [strs[0]];
|
|
2175
|
-
let
|
|
2176
|
-
while (
|
|
2177
|
-
addCodeArg(code, args[
|
|
2178
|
-
code.push(strs[++
|
|
2175
|
+
let i = 0;
|
|
2176
|
+
while (i < args.length) {
|
|
2177
|
+
addCodeArg(code, args[i]);
|
|
2178
|
+
code.push(strs[++i]);
|
|
2179
2179
|
}
|
|
2180
2180
|
return new _Code(code);
|
|
2181
2181
|
}
|
|
@@ -2183,11 +2183,11 @@ var require_code = __commonJS({
|
|
|
2183
2183
|
var plus = new _Code("+");
|
|
2184
2184
|
function str(strs, ...args) {
|
|
2185
2185
|
const expr = [safeStringify(strs[0])];
|
|
2186
|
-
let
|
|
2187
|
-
while (
|
|
2186
|
+
let i = 0;
|
|
2187
|
+
while (i < args.length) {
|
|
2188
2188
|
expr.push(plus);
|
|
2189
|
-
addCodeArg(expr, args[
|
|
2190
|
-
expr.push(plus, safeStringify(strs[++
|
|
2189
|
+
addCodeArg(expr, args[i]);
|
|
2190
|
+
expr.push(plus, safeStringify(strs[++i]));
|
|
2191
2191
|
}
|
|
2192
2192
|
optimize(expr);
|
|
2193
2193
|
return new _Code(expr);
|
|
@@ -2203,17 +2203,17 @@ var require_code = __commonJS({
|
|
|
2203
2203
|
}
|
|
2204
2204
|
exports.addCodeArg = addCodeArg;
|
|
2205
2205
|
function optimize(expr) {
|
|
2206
|
-
let
|
|
2207
|
-
while (
|
|
2208
|
-
if (expr[
|
|
2209
|
-
const res = mergeExprItems(expr[
|
|
2206
|
+
let i = 1;
|
|
2207
|
+
while (i < expr.length - 1) {
|
|
2208
|
+
if (expr[i] === plus) {
|
|
2209
|
+
const res = mergeExprItems(expr[i - 1], expr[i + 1]);
|
|
2210
2210
|
if (res !== void 0) {
|
|
2211
|
-
expr.splice(
|
|
2211
|
+
expr.splice(i - 1, 3, res);
|
|
2212
2212
|
continue;
|
|
2213
2213
|
}
|
|
2214
|
-
expr[
|
|
2214
|
+
expr[i++] = "+";
|
|
2215
2215
|
}
|
|
2216
|
-
|
|
2216
|
+
i++;
|
|
2217
2217
|
}
|
|
2218
2218
|
}
|
|
2219
2219
|
function mergeExprItems(a2, b2) {
|
|
@@ -2593,27 +2593,27 @@ var require_codegen = __commonJS({
|
|
|
2593
2593
|
}
|
|
2594
2594
|
optimizeNodes() {
|
|
2595
2595
|
const { nodes } = this;
|
|
2596
|
-
let
|
|
2597
|
-
while (
|
|
2598
|
-
const n2 = nodes[
|
|
2596
|
+
let i = nodes.length;
|
|
2597
|
+
while (i--) {
|
|
2598
|
+
const n2 = nodes[i].optimizeNodes();
|
|
2599
2599
|
if (Array.isArray(n2))
|
|
2600
|
-
nodes.splice(
|
|
2600
|
+
nodes.splice(i, 1, ...n2);
|
|
2601
2601
|
else if (n2)
|
|
2602
|
-
nodes[
|
|
2602
|
+
nodes[i] = n2;
|
|
2603
2603
|
else
|
|
2604
|
-
nodes.splice(
|
|
2604
|
+
nodes.splice(i, 1);
|
|
2605
2605
|
}
|
|
2606
2606
|
return nodes.length > 0 ? this : void 0;
|
|
2607
2607
|
}
|
|
2608
2608
|
optimizeNames(names, constants) {
|
|
2609
2609
|
const { nodes } = this;
|
|
2610
|
-
let
|
|
2611
|
-
while (
|
|
2612
|
-
const n2 = nodes[
|
|
2610
|
+
let i = nodes.length;
|
|
2611
|
+
while (i--) {
|
|
2612
|
+
const n2 = nodes[i];
|
|
2613
2613
|
if (n2.optimizeNames(names, constants))
|
|
2614
2614
|
continue;
|
|
2615
2615
|
subtractNames(names, n2.names);
|
|
2616
|
-
nodes.splice(
|
|
2616
|
+
nodes.splice(i, 1);
|
|
2617
2617
|
}
|
|
2618
2618
|
return nodes.length > 0 ? this : void 0;
|
|
2619
2619
|
}
|
|
@@ -2940,8 +2940,8 @@ var require_codegen = __commonJS({
|
|
|
2940
2940
|
const name = this._scope.toName(nameOrPrefix);
|
|
2941
2941
|
if (this.opts.es5) {
|
|
2942
2942
|
const arr = iterable instanceof code_1.Name ? iterable : this.var("_arr", iterable);
|
|
2943
|
-
return this.forRange("_i", 0, (0, code_1._)`${arr}.length`, (
|
|
2944
|
-
this.var(name, (0, code_1._)`${arr}[${
|
|
2943
|
+
return this.forRange("_i", 0, (0, code_1._)`${arr}.length`, (i) => {
|
|
2944
|
+
this.var(name, (0, code_1._)`${arr}[${i}]`);
|
|
2945
2945
|
forBody(name);
|
|
2946
2946
|
});
|
|
2947
2947
|
}
|
|
@@ -3119,10 +3119,10 @@ var require_codegen = __commonJS({
|
|
|
3119
3119
|
}
|
|
3120
3120
|
exports.and = and;
|
|
3121
3121
|
var orCode = mappend(exports.operators.OR);
|
|
3122
|
-
function
|
|
3122
|
+
function or(...args) {
|
|
3123
3123
|
return args.reduce(orCode);
|
|
3124
3124
|
}
|
|
3125
|
-
exports.or =
|
|
3125
|
+
exports.or = or;
|
|
3126
3126
|
function mappend(op) {
|
|
3127
3127
|
return (x2, y2) => x2 === code_1.nil ? y2 : y2 === code_1.nil ? x2 : (0, code_1._)`${par(x2)} ${op} ${par(y2)}`;
|
|
3128
3128
|
}
|
|
@@ -3215,12 +3215,12 @@ var require_util = __commonJS({
|
|
|
3215
3215
|
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
3216
3216
|
}
|
|
3217
3217
|
exports.unescapeJsonPointer = unescapeJsonPointer;
|
|
3218
|
-
function eachItem(
|
|
3219
|
-
if (Array.isArray(
|
|
3220
|
-
for (const x2 of
|
|
3218
|
+
function eachItem(xs, f) {
|
|
3219
|
+
if (Array.isArray(xs)) {
|
|
3220
|
+
for (const x2 of xs)
|
|
3221
3221
|
f(x2);
|
|
3222
3222
|
} else {
|
|
3223
|
-
f(
|
|
3223
|
+
f(xs);
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
3226
|
exports.eachItem = eachItem;
|
|
@@ -3385,8 +3385,8 @@ var require_errors = __commonJS({
|
|
|
3385
3385
|
if (errsCount === void 0)
|
|
3386
3386
|
throw new Error("ajv implementation error");
|
|
3387
3387
|
const err = gen.name("err");
|
|
3388
|
-
gen.forRange("i", errsCount, names_1.default.errors, (
|
|
3389
|
-
gen.const(err, (0, codegen_1._)`${names_1.default.vErrors}[${
|
|
3388
|
+
gen.forRange("i", errsCount, names_1.default.errors, (i) => {
|
|
3389
|
+
gen.const(err, (0, codegen_1._)`${names_1.default.vErrors}[${i}]`);
|
|
3390
3390
|
gen.if((0, codegen_1._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._)`${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it2.errorPath)));
|
|
3391
3391
|
gen.assign((0, codegen_1._)`${err}.schemaPath`, (0, codegen_1.str)`${it2.errSchemaPath}/${keyword}`);
|
|
3392
3392
|
if (it2.opts.verbose) {
|
|
@@ -3766,7 +3766,7 @@ var require_defaults = __commonJS({
|
|
|
3766
3766
|
assignDefault(it2, key, properties[key].default);
|
|
3767
3767
|
}
|
|
3768
3768
|
} else if (ty === "array" && Array.isArray(items)) {
|
|
3769
|
-
items.forEach((sch,
|
|
3769
|
+
items.forEach((sch, i) => assignDefault(it2, i, sch.default));
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
3772
|
exports.assignDefaults = assignDefaults;
|
|
@@ -3920,10 +3920,10 @@ var require_code2 = __commonJS({
|
|
|
3920
3920
|
return valid;
|
|
3921
3921
|
function validateItems(notValid) {
|
|
3922
3922
|
const len = gen.const("len", (0, codegen_1._)`${data}.length`);
|
|
3923
|
-
gen.forRange("i", 0, len, (
|
|
3923
|
+
gen.forRange("i", 0, len, (i) => {
|
|
3924
3924
|
cxt.subschema({
|
|
3925
3925
|
keyword,
|
|
3926
|
-
dataProp:
|
|
3926
|
+
dataProp: i,
|
|
3927
3927
|
dataPropType: util_1.Type.Num
|
|
3928
3928
|
}, valid);
|
|
3929
3929
|
gen.if((0, codegen_1.not)(valid), notValid);
|
|
@@ -3942,10 +3942,10 @@ var require_code2 = __commonJS({
|
|
|
3942
3942
|
return;
|
|
3943
3943
|
const valid = gen.let("valid", false);
|
|
3944
3944
|
const schValid = gen.name("_valid");
|
|
3945
|
-
gen.block(() => schema.forEach((_sch,
|
|
3945
|
+
gen.block(() => schema.forEach((_sch, i) => {
|
|
3946
3946
|
const schCxt = cxt.subschema({
|
|
3947
3947
|
keyword,
|
|
3948
|
-
schemaProp:
|
|
3948
|
+
schemaProp: i,
|
|
3949
3949
|
compositeRule: true
|
|
3950
3950
|
}, schValid);
|
|
3951
3951
|
gen.assign(valid, (0, codegen_1._)`${valid} || ${schValid}`);
|
|
@@ -4168,12 +4168,12 @@ var require_fast_deep_equal = __commonJS({
|
|
|
4168
4168
|
if (a2 === b2) return true;
|
|
4169
4169
|
if (a2 && b2 && typeof a2 == "object" && typeof b2 == "object") {
|
|
4170
4170
|
if (a2.constructor !== b2.constructor) return false;
|
|
4171
|
-
var length,
|
|
4171
|
+
var length, i, keys;
|
|
4172
4172
|
if (Array.isArray(a2)) {
|
|
4173
4173
|
length = a2.length;
|
|
4174
4174
|
if (length != b2.length) return false;
|
|
4175
|
-
for (
|
|
4176
|
-
if (!equal(a2[
|
|
4175
|
+
for (i = length; i-- !== 0; )
|
|
4176
|
+
if (!equal(a2[i], b2[i])) return false;
|
|
4177
4177
|
return true;
|
|
4178
4178
|
}
|
|
4179
4179
|
if (a2.constructor === RegExp) return a2.source === b2.source && a2.flags === b2.flags;
|
|
@@ -4182,10 +4182,10 @@ var require_fast_deep_equal = __commonJS({
|
|
|
4182
4182
|
keys = Object.keys(a2);
|
|
4183
4183
|
length = keys.length;
|
|
4184
4184
|
if (length !== Object.keys(b2).length) return false;
|
|
4185
|
-
for (
|
|
4186
|
-
if (!Object.prototype.hasOwnProperty.call(b2, keys[
|
|
4187
|
-
for (
|
|
4188
|
-
var key = keys[
|
|
4185
|
+
for (i = length; i-- !== 0; )
|
|
4186
|
+
if (!Object.prototype.hasOwnProperty.call(b2, keys[i])) return false;
|
|
4187
|
+
for (i = length; i-- !== 0; ) {
|
|
4188
|
+
var key = keys[i];
|
|
4189
4189
|
if (!equal(a2[key], b2[key])) return false;
|
|
4190
4190
|
}
|
|
4191
4191
|
return true;
|
|
@@ -4262,8 +4262,8 @@ var require_json_schema_traverse = __commonJS({
|
|
|
4262
4262
|
var sch = schema[key];
|
|
4263
4263
|
if (Array.isArray(sch)) {
|
|
4264
4264
|
if (key in traverse.arrayKeywords) {
|
|
4265
|
-
for (var
|
|
4266
|
-
_traverse(opts, pre, post, sch[
|
|
4265
|
+
for (var i = 0; i < sch.length; i++)
|
|
4266
|
+
_traverse(opts, pre, post, sch[i], jsonPtr + "/" + key + "/" + i, rootSchema, jsonPtr, key, schema, i);
|
|
4267
4267
|
}
|
|
4268
4268
|
} else if (key in traverse.propsKeywords) {
|
|
4269
4269
|
if (sch && typeof sch == "object") {
|
|
@@ -5253,24 +5253,24 @@ var require_utils2 = __commonJS({
|
|
|
5253
5253
|
function stringArrayToHexStripped(input) {
|
|
5254
5254
|
let acc = "";
|
|
5255
5255
|
let code = 0;
|
|
5256
|
-
let
|
|
5257
|
-
for (
|
|
5258
|
-
code = input[
|
|
5256
|
+
let i = 0;
|
|
5257
|
+
for (i = 0; i < input.length; i++) {
|
|
5258
|
+
code = input[i].charCodeAt(0);
|
|
5259
5259
|
if (code === 48) {
|
|
5260
5260
|
continue;
|
|
5261
5261
|
}
|
|
5262
5262
|
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
5263
5263
|
return "";
|
|
5264
5264
|
}
|
|
5265
|
-
acc += input[
|
|
5265
|
+
acc += input[i];
|
|
5266
5266
|
break;
|
|
5267
5267
|
}
|
|
5268
|
-
for (
|
|
5269
|
-
code = input[
|
|
5268
|
+
for (i += 1; i < input.length; i++) {
|
|
5269
|
+
code = input[i].charCodeAt(0);
|
|
5270
5270
|
if (!(code >= 48 && code <= 57 || code >= 65 && code <= 70 || code >= 97 && code <= 102)) {
|
|
5271
5271
|
return "";
|
|
5272
5272
|
}
|
|
5273
|
-
acc += input[
|
|
5273
|
+
acc += input[i];
|
|
5274
5274
|
}
|
|
5275
5275
|
return acc;
|
|
5276
5276
|
}
|
|
@@ -5300,8 +5300,8 @@ var require_utils2 = __commonJS({
|
|
|
5300
5300
|
let endipv6Encountered = false;
|
|
5301
5301
|
let endIpv6 = false;
|
|
5302
5302
|
let consume = consumeHextets;
|
|
5303
|
-
for (let
|
|
5304
|
-
const cursor = input[
|
|
5303
|
+
for (let i = 0; i < input.length; i++) {
|
|
5304
|
+
const cursor = input[i];
|
|
5305
5305
|
if (cursor === "[" || cursor === "]") {
|
|
5306
5306
|
continue;
|
|
5307
5307
|
}
|
|
@@ -5316,7 +5316,7 @@ var require_utils2 = __commonJS({
|
|
|
5316
5316
|
output.error = true;
|
|
5317
5317
|
break;
|
|
5318
5318
|
}
|
|
5319
|
-
if (
|
|
5319
|
+
if (i > 0 && input[i - 1] === ":") {
|
|
5320
5320
|
endipv6Encountered = true;
|
|
5321
5321
|
}
|
|
5322
5322
|
address.push(":");
|
|
@@ -5362,8 +5362,8 @@ var require_utils2 = __commonJS({
|
|
|
5362
5362
|
}
|
|
5363
5363
|
function findToken(str, token) {
|
|
5364
5364
|
let ind = 0;
|
|
5365
|
-
for (let
|
|
5366
|
-
if (str[
|
|
5365
|
+
for (let i = 0; i < str.length; i++) {
|
|
5366
|
+
if (str[i] === token) ind++;
|
|
5367
5367
|
}
|
|
5368
5368
|
return ind;
|
|
5369
5369
|
}
|
|
@@ -5455,9 +5455,9 @@ var require_utils2 = __commonJS({
|
|
|
5455
5455
|
return input;
|
|
5456
5456
|
}
|
|
5457
5457
|
let output = "";
|
|
5458
|
-
for (let
|
|
5459
|
-
if (input[
|
|
5460
|
-
const hex = input.slice(
|
|
5458
|
+
for (let i = 0; i < input.length; i++) {
|
|
5459
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
5460
|
+
const hex = input.slice(i + 1, i + 3);
|
|
5461
5461
|
if (isHexPair(hex)) {
|
|
5462
5462
|
const normalizedHex = hex.toUpperCase();
|
|
5463
5463
|
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
@@ -5466,19 +5466,19 @@ var require_utils2 = __commonJS({
|
|
|
5466
5466
|
} else {
|
|
5467
5467
|
output += "%" + normalizedHex;
|
|
5468
5468
|
}
|
|
5469
|
-
|
|
5469
|
+
i += 2;
|
|
5470
5470
|
continue;
|
|
5471
5471
|
}
|
|
5472
5472
|
}
|
|
5473
|
-
output += input[
|
|
5473
|
+
output += input[i];
|
|
5474
5474
|
}
|
|
5475
5475
|
return output;
|
|
5476
5476
|
}
|
|
5477
5477
|
function normalizePathEncoding(input) {
|
|
5478
5478
|
let output = "";
|
|
5479
|
-
for (let
|
|
5480
|
-
if (input[
|
|
5481
|
-
const hex = input.slice(
|
|
5479
|
+
for (let i = 0; i < input.length; i++) {
|
|
5480
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
5481
|
+
const hex = input.slice(i + 1, i + 3);
|
|
5482
5482
|
if (isHexPair(hex)) {
|
|
5483
5483
|
const normalizedHex = hex.toUpperCase();
|
|
5484
5484
|
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
@@ -5487,30 +5487,30 @@ var require_utils2 = __commonJS({
|
|
|
5487
5487
|
} else {
|
|
5488
5488
|
output += "%" + normalizedHex;
|
|
5489
5489
|
}
|
|
5490
|
-
|
|
5490
|
+
i += 2;
|
|
5491
5491
|
continue;
|
|
5492
5492
|
}
|
|
5493
5493
|
}
|
|
5494
|
-
if (isPathCharacter(input[
|
|
5495
|
-
output += input[
|
|
5494
|
+
if (isPathCharacter(input[i])) {
|
|
5495
|
+
output += input[i];
|
|
5496
5496
|
} else {
|
|
5497
|
-
output += escape(input[
|
|
5497
|
+
output += escape(input[i]);
|
|
5498
5498
|
}
|
|
5499
5499
|
}
|
|
5500
5500
|
return output;
|
|
5501
5501
|
}
|
|
5502
5502
|
function escapePreservingEscapes(input) {
|
|
5503
5503
|
let output = "";
|
|
5504
|
-
for (let
|
|
5505
|
-
if (input[
|
|
5506
|
-
const hex = input.slice(
|
|
5504
|
+
for (let i = 0; i < input.length; i++) {
|
|
5505
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
5506
|
+
const hex = input.slice(i + 1, i + 3);
|
|
5507
5507
|
if (isHexPair(hex)) {
|
|
5508
5508
|
output += "%" + hex.toUpperCase();
|
|
5509
|
-
|
|
5509
|
+
i += 2;
|
|
5510
5510
|
continue;
|
|
5511
5511
|
}
|
|
5512
5512
|
}
|
|
5513
|
-
output += escape(input[
|
|
5513
|
+
output += escape(input[i]);
|
|
5514
5514
|
}
|
|
5515
5515
|
return output;
|
|
5516
5516
|
}
|
|
@@ -6147,31 +6147,31 @@ var require_core = __commonJS({
|
|
|
6147
6147
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
6148
6148
|
};
|
|
6149
6149
|
var MAX_EXPRESSION = 200;
|
|
6150
|
-
function requiredOptions(
|
|
6151
|
-
var _a, _b, _c, _d, _e2, _f, _g, _h, _j, _k, _l, _m,
|
|
6152
|
-
const s2 =
|
|
6153
|
-
const _optz = (_a =
|
|
6150
|
+
function requiredOptions(o2) {
|
|
6151
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _j, _k, _l, _m, _o2, _p, _q, _r, _s, _t2, _u, _v, _w, _x, _y, _z, _0;
|
|
6152
|
+
const s2 = o2.strict;
|
|
6153
|
+
const _optz = (_a = o2.code) === null || _a === void 0 ? void 0 : _a.optimize;
|
|
6154
6154
|
const optimize = _optz === true || _optz === void 0 ? 1 : _optz || 0;
|
|
6155
|
-
const regExp = (_c = (_b =
|
|
6156
|
-
const uriResolver = (_d =
|
|
6155
|
+
const regExp = (_c = (_b = o2.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp;
|
|
6156
|
+
const uriResolver = (_d = o2.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default;
|
|
6157
6157
|
return {
|
|
6158
|
-
strictSchema: (_f = (_e2 =
|
|
6159
|
-
strictNumbers: (_h = (_g =
|
|
6160
|
-
strictTypes: (_k = (_j =
|
|
6161
|
-
strictTuples: (_m = (_l =
|
|
6162
|
-
strictRequired: (_p = (
|
|
6163
|
-
code:
|
|
6164
|
-
loopRequired: (_q =
|
|
6165
|
-
loopEnum: (
|
|
6166
|
-
meta: (_s =
|
|
6167
|
-
messages: (_t2 =
|
|
6168
|
-
inlineRefs: (_u =
|
|
6169
|
-
schemaId: (_v =
|
|
6170
|
-
addUsedSchema: (_w =
|
|
6171
|
-
validateSchema: (_x =
|
|
6172
|
-
validateFormats: (_y =
|
|
6173
|
-
unicodeRegExp: (_z =
|
|
6174
|
-
int32range: (_0 =
|
|
6158
|
+
strictSchema: (_f = (_e2 = o2.strictSchema) !== null && _e2 !== void 0 ? _e2 : s2) !== null && _f !== void 0 ? _f : true,
|
|
6159
|
+
strictNumbers: (_h = (_g = o2.strictNumbers) !== null && _g !== void 0 ? _g : s2) !== null && _h !== void 0 ? _h : true,
|
|
6160
|
+
strictTypes: (_k = (_j = o2.strictTypes) !== null && _j !== void 0 ? _j : s2) !== null && _k !== void 0 ? _k : "log",
|
|
6161
|
+
strictTuples: (_m = (_l = o2.strictTuples) !== null && _l !== void 0 ? _l : s2) !== null && _m !== void 0 ? _m : "log",
|
|
6162
|
+
strictRequired: (_p = (_o2 = o2.strictRequired) !== null && _o2 !== void 0 ? _o2 : s2) !== null && _p !== void 0 ? _p : false,
|
|
6163
|
+
code: o2.code ? { ...o2.code, optimize, regExp } : { optimize, regExp },
|
|
6164
|
+
loopRequired: (_q = o2.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION,
|
|
6165
|
+
loopEnum: (_r = o2.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION,
|
|
6166
|
+
meta: (_s = o2.meta) !== null && _s !== void 0 ? _s : true,
|
|
6167
|
+
messages: (_t2 = o2.messages) !== null && _t2 !== void 0 ? _t2 : true,
|
|
6168
|
+
inlineRefs: (_u = o2.inlineRefs) !== null && _u !== void 0 ? _u : true,
|
|
6169
|
+
schemaId: (_v = o2.schemaId) !== null && _v !== void 0 ? _v : "$id",
|
|
6170
|
+
addUsedSchema: (_w = o2.addUsedSchema) !== null && _w !== void 0 ? _w : true,
|
|
6171
|
+
validateSchema: (_x = o2.validateSchema) !== null && _x !== void 0 ? _x : true,
|
|
6172
|
+
validateFormats: (_y = o2.validateFormats) !== null && _y !== void 0 ? _y : true,
|
|
6173
|
+
unicodeRegExp: (_z = o2.unicodeRegExp) !== null && _z !== void 0 ? _z : true,
|
|
6174
|
+
int32range: (_0 = o2.int32range) !== null && _0 !== void 0 ? _0 : true,
|
|
6175
6175
|
uriResolver
|
|
6176
6176
|
};
|
|
6177
6177
|
}
|
|
@@ -6451,9 +6451,9 @@ var require_core = __commonJS({
|
|
|
6451
6451
|
delete RULES.keywords[keyword];
|
|
6452
6452
|
delete RULES.all[keyword];
|
|
6453
6453
|
for (const group of RULES.rules) {
|
|
6454
|
-
const
|
|
6455
|
-
if (
|
|
6456
|
-
group.rules.splice(
|
|
6454
|
+
const i = group.rules.findIndex((rule) => rule.keyword === keyword);
|
|
6455
|
+
if (i >= 0)
|
|
6456
|
+
group.rules.splice(i, 1);
|
|
6457
6457
|
}
|
|
6458
6458
|
return this;
|
|
6459
6459
|
}
|
|
@@ -6661,9 +6661,9 @@ var require_core = __commonJS({
|
|
|
6661
6661
|
(_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
|
|
6662
6662
|
}
|
|
6663
6663
|
function addBeforeRule(ruleGroup, rule, before) {
|
|
6664
|
-
const
|
|
6665
|
-
if (
|
|
6666
|
-
ruleGroup.rules.splice(
|
|
6664
|
+
const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);
|
|
6665
|
+
if (i >= 0) {
|
|
6666
|
+
ruleGroup.rules.splice(i, 0, rule);
|
|
6667
6667
|
} else {
|
|
6668
6668
|
ruleGroup.rules.push(rule);
|
|
6669
6669
|
this.logger.warn(`rule ${before} is not defined`);
|
|
@@ -7227,8 +7227,8 @@ var require_uniqueItems = __commonJS({
|
|
|
7227
7227
|
var util_1 = require_util();
|
|
7228
7228
|
var equal_1 = require_equal();
|
|
7229
7229
|
var error = {
|
|
7230
|
-
message: ({ params: { i
|
|
7231
|
-
params: ({ params: { i
|
|
7230
|
+
message: ({ params: { i, j: j2 } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j2} and ${i} are identical)`,
|
|
7231
|
+
params: ({ params: { i, j: j2 } }) => (0, codegen_1._)`{i: ${i}, j: ${j2}}`
|
|
7232
7232
|
};
|
|
7233
7233
|
var def = {
|
|
7234
7234
|
keyword: "uniqueItems",
|
|
@@ -7245,21 +7245,21 @@ var require_uniqueItems = __commonJS({
|
|
|
7245
7245
|
cxt.block$data(valid, validateUniqueItems, (0, codegen_1._)`${schemaCode} === false`);
|
|
7246
7246
|
cxt.ok(valid);
|
|
7247
7247
|
function validateUniqueItems() {
|
|
7248
|
-
const
|
|
7248
|
+
const i = gen.let("i", (0, codegen_1._)`${data}.length`);
|
|
7249
7249
|
const j2 = gen.let("j");
|
|
7250
|
-
cxt.setParams({ i
|
|
7250
|
+
cxt.setParams({ i, j: j2 });
|
|
7251
7251
|
gen.assign(valid, true);
|
|
7252
|
-
gen.if((0, codegen_1._)`${
|
|
7252
|
+
gen.if((0, codegen_1._)`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j2));
|
|
7253
7253
|
}
|
|
7254
7254
|
function canOptimize() {
|
|
7255
7255
|
return itemTypes.length > 0 && !itemTypes.some((t2) => t2 === "object" || t2 === "array");
|
|
7256
7256
|
}
|
|
7257
|
-
function loopN(
|
|
7257
|
+
function loopN(i, j2) {
|
|
7258
7258
|
const item = gen.name("item");
|
|
7259
7259
|
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it2.opts.strictNumbers, dataType_1.DataType.Wrong);
|
|
7260
7260
|
const indices = gen.const("indices", (0, codegen_1._)`{}`);
|
|
7261
|
-
gen.for((0, codegen_1._)`;${
|
|
7262
|
-
gen.let(item, (0, codegen_1._)`${data}[${
|
|
7261
|
+
gen.for((0, codegen_1._)`;${i}--;`, () => {
|
|
7262
|
+
gen.let(item, (0, codegen_1._)`${data}[${i}]`);
|
|
7263
7263
|
gen.if(wrongType, (0, codegen_1._)`continue`);
|
|
7264
7264
|
if (itemTypes.length > 1)
|
|
7265
7265
|
gen.if((0, codegen_1._)`typeof ${item} == "string"`, (0, codegen_1._)`${item} += "_"`);
|
|
@@ -7267,13 +7267,13 @@ var require_uniqueItems = __commonJS({
|
|
|
7267
7267
|
gen.assign(j2, (0, codegen_1._)`${indices}[${item}]`);
|
|
7268
7268
|
cxt.error();
|
|
7269
7269
|
gen.assign(valid, false).break();
|
|
7270
|
-
}).code((0, codegen_1._)`${indices}[${item}] = ${
|
|
7270
|
+
}).code((0, codegen_1._)`${indices}[${item}] = ${i}`);
|
|
7271
7271
|
});
|
|
7272
7272
|
}
|
|
7273
|
-
function loopN2(
|
|
7273
|
+
function loopN2(i, j2) {
|
|
7274
7274
|
const eql = (0, util_1.useFunc)(gen, equal_1.default);
|
|
7275
7275
|
const outer = gen.name("outer");
|
|
7276
|
-
gen.label(outer).for((0, codegen_1._)`;${
|
|
7276
|
+
gen.label(outer).for((0, codegen_1._)`;${i}--;`, () => gen.for((0, codegen_1._)`${j2} = ${i}; ${j2}--;`, () => gen.if((0, codegen_1._)`${eql}(${data}[${i}], ${data}[${j2}])`, () => {
|
|
7277
7277
|
cxt.error();
|
|
7278
7278
|
gen.assign(valid, false).break(outer);
|
|
7279
7279
|
})));
|
|
@@ -7345,16 +7345,16 @@ var require_enum = __commonJS({
|
|
|
7345
7345
|
if (!Array.isArray(schema))
|
|
7346
7346
|
throw new Error("ajv implementation error");
|
|
7347
7347
|
const vSchema = gen.const("vSchema", schemaCode);
|
|
7348
|
-
valid = (0, codegen_1.or)(...schema.map((_x,
|
|
7348
|
+
valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i)));
|
|
7349
7349
|
}
|
|
7350
7350
|
cxt.pass(valid);
|
|
7351
7351
|
function loopEnum() {
|
|
7352
7352
|
gen.assign(valid, false);
|
|
7353
7353
|
gen.forOf("v", schemaCode, (v2) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v2})`, () => gen.assign(valid, true).break()));
|
|
7354
7354
|
}
|
|
7355
|
-
function equalCode(vSchema,
|
|
7356
|
-
const sch = schema[
|
|
7357
|
-
return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${
|
|
7355
|
+
function equalCode(vSchema, i) {
|
|
7356
|
+
const sch = schema[i];
|
|
7357
|
+
return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${i}])` : (0, codegen_1._)`${data} === ${sch}`;
|
|
7358
7358
|
}
|
|
7359
7359
|
}
|
|
7360
7360
|
};
|
|
@@ -7445,8 +7445,8 @@ var require_additionalItems = __commonJS({
|
|
|
7445
7445
|
cxt.ok(valid);
|
|
7446
7446
|
}
|
|
7447
7447
|
function validateItems(valid) {
|
|
7448
|
-
gen.forRange("i", items.length, len, (
|
|
7449
|
-
cxt.subschema({ keyword, dataProp:
|
|
7448
|
+
gen.forRange("i", items.length, len, (i) => {
|
|
7449
|
+
cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid);
|
|
7450
7450
|
if (!it2.allErrors)
|
|
7451
7451
|
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
7452
7452
|
});
|
|
@@ -7489,13 +7489,13 @@ var require_items = __commonJS({
|
|
|
7489
7489
|
}
|
|
7490
7490
|
const valid = gen.name("valid");
|
|
7491
7491
|
const len = gen.const("len", (0, codegen_1._)`${data}.length`);
|
|
7492
|
-
schArr.forEach((sch,
|
|
7492
|
+
schArr.forEach((sch, i) => {
|
|
7493
7493
|
if ((0, util_1.alwaysValidSchema)(it2, sch))
|
|
7494
7494
|
return;
|
|
7495
|
-
gen.if((0, codegen_1._)`${len} > ${
|
|
7495
|
+
gen.if((0, codegen_1._)`${len} > ${i}`, () => cxt.subschema({
|
|
7496
7496
|
keyword,
|
|
7497
|
-
schemaProp:
|
|
7498
|
-
dataProp:
|
|
7497
|
+
schemaProp: i,
|
|
7498
|
+
dataProp: i
|
|
7499
7499
|
}, valid));
|
|
7500
7500
|
cxt.ok(valid);
|
|
7501
7501
|
});
|
|
@@ -7632,10 +7632,10 @@ var require_contains = __commonJS({
|
|
|
7632
7632
|
validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));
|
|
7633
7633
|
}
|
|
7634
7634
|
function validateItems(_valid, block) {
|
|
7635
|
-
gen.forRange("i", 0, len, (
|
|
7635
|
+
gen.forRange("i", 0, len, (i) => {
|
|
7636
7636
|
cxt.subschema({
|
|
7637
7637
|
keyword: "contains",
|
|
7638
|
-
dataProp:
|
|
7638
|
+
dataProp: i,
|
|
7639
7639
|
dataPropType: util_1.Type.Num,
|
|
7640
7640
|
compositeRule: true
|
|
7641
7641
|
}, _valid);
|
|
@@ -8114,23 +8114,23 @@ var require_oneOf = __commonJS({
|
|
|
8114
8114
|
gen.block(validateOneOf);
|
|
8115
8115
|
cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
|
|
8116
8116
|
function validateOneOf() {
|
|
8117
|
-
schArr.forEach((sch,
|
|
8117
|
+
schArr.forEach((sch, i) => {
|
|
8118
8118
|
let schCxt;
|
|
8119
8119
|
if ((0, util_1.alwaysValidSchema)(it2, sch)) {
|
|
8120
8120
|
gen.var(schValid, true);
|
|
8121
8121
|
} else {
|
|
8122
8122
|
schCxt = cxt.subschema({
|
|
8123
8123
|
keyword: "oneOf",
|
|
8124
|
-
schemaProp:
|
|
8124
|
+
schemaProp: i,
|
|
8125
8125
|
compositeRule: true
|
|
8126
8126
|
}, schValid);
|
|
8127
8127
|
}
|
|
8128
|
-
if (
|
|
8129
|
-
gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${
|
|
8128
|
+
if (i > 0) {
|
|
8129
|
+
gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${i}]`).else();
|
|
8130
8130
|
}
|
|
8131
8131
|
gen.if(schValid, () => {
|
|
8132
8132
|
gen.assign(valid, true);
|
|
8133
|
-
gen.assign(passing,
|
|
8133
|
+
gen.assign(passing, i);
|
|
8134
8134
|
if (schCxt)
|
|
8135
8135
|
cxt.mergeEvaluated(schCxt, codegen_1.Name);
|
|
8136
8136
|
});
|
|
@@ -8156,10 +8156,10 @@ var require_allOf = __commonJS({
|
|
|
8156
8156
|
if (!Array.isArray(schema))
|
|
8157
8157
|
throw new Error("ajv implementation error");
|
|
8158
8158
|
const valid = gen.name("valid");
|
|
8159
|
-
schema.forEach((sch,
|
|
8159
|
+
schema.forEach((sch, i) => {
|
|
8160
8160
|
if ((0, util_1.alwaysValidSchema)(it2, sch))
|
|
8161
8161
|
return;
|
|
8162
|
-
const schCxt = cxt.subschema({ keyword: "allOf", schemaProp:
|
|
8162
|
+
const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid, true);
|
|
8163
8163
|
cxt.ok(valid);
|
|
8164
8164
|
cxt.mergeEvaluated(schCxt);
|
|
8165
8165
|
});
|
|
@@ -8610,8 +8610,8 @@ var require_unevaluatedItems = __commonJS({
|
|
|
8610
8610
|
}
|
|
8611
8611
|
it2.items = true;
|
|
8612
8612
|
function validateItems(valid, from) {
|
|
8613
|
-
gen.forRange("i", from, len, (
|
|
8614
|
-
cxt.subschema({ keyword: "unevaluatedItems", dataProp:
|
|
8613
|
+
gen.forRange("i", from, len, (i) => {
|
|
8614
|
+
cxt.subschema({ keyword: "unevaluatedItems", dataProp: i, dataPropType: util_1.Type.Num }, valid);
|
|
8615
8615
|
if (!it2.allErrors)
|
|
8616
8616
|
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
8617
8617
|
});
|
|
@@ -8877,15 +8877,15 @@ var require_discriminator = __commonJS({
|
|
|
8877
8877
|
const discriminatorMapping = {};
|
|
8878
8878
|
const topRequired = hasRequired(parentSchema);
|
|
8879
8879
|
let tagRequired = true;
|
|
8880
|
-
for (let
|
|
8881
|
-
let sch = parentSchemaVariants[
|
|
8880
|
+
for (let i = 0; i < parentSchemaVariants.length; i++) {
|
|
8881
|
+
let sch = parentSchemaVariants[i];
|
|
8882
8882
|
const schRef = sch === null || sch === void 0 ? void 0 : sch.$ref;
|
|
8883
8883
|
if (schRef && schema.mapping) {
|
|
8884
8884
|
const { mapping } = schema;
|
|
8885
8885
|
const matchedKeys = Object.keys(mapping).filter((key) => mapping[key] === sch.$ref);
|
|
8886
8886
|
if (matchedKeys.length) {
|
|
8887
8887
|
for (const key of matchedKeys) {
|
|
8888
|
-
addMapping(key,
|
|
8888
|
+
addMapping(key, i);
|
|
8889
8889
|
}
|
|
8890
8890
|
continue;
|
|
8891
8891
|
}
|
|
@@ -8905,7 +8905,7 @@ var require_discriminator = __commonJS({
|
|
|
8905
8905
|
throw new Error(`discriminator: ${keyword} subschemas (or referenced schemas) must have "properties/${tagName}" or match mapping`);
|
|
8906
8906
|
}
|
|
8907
8907
|
tagRequired = tagRequired && (topRequired || hasRequired(sch));
|
|
8908
|
-
addMappings(propSch,
|
|
8908
|
+
addMappings(propSch, i);
|
|
8909
8909
|
}
|
|
8910
8910
|
if (!tagRequired)
|
|
8911
8911
|
throw new Error(`discriminator: "${tagName}" must be required`);
|
|
@@ -8924,22 +8924,22 @@ var require_discriminator = __commonJS({
|
|
|
8924
8924
|
}
|
|
8925
8925
|
return false;
|
|
8926
8926
|
}
|
|
8927
|
-
function addMappings(sch,
|
|
8927
|
+
function addMappings(sch, i) {
|
|
8928
8928
|
if (sch.const) {
|
|
8929
|
-
addMapping(sch.const,
|
|
8929
|
+
addMapping(sch.const, i);
|
|
8930
8930
|
} else if (sch.enum) {
|
|
8931
8931
|
for (const tagValue of sch.enum) {
|
|
8932
|
-
addMapping(tagValue,
|
|
8932
|
+
addMapping(tagValue, i);
|
|
8933
8933
|
}
|
|
8934
8934
|
} else {
|
|
8935
8935
|
throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`);
|
|
8936
8936
|
}
|
|
8937
8937
|
}
|
|
8938
|
-
function addMapping(tagValue,
|
|
8938
|
+
function addMapping(tagValue, i) {
|
|
8939
8939
|
if (typeof tagValue != "string" || tagValue in discriminatorMapping) {
|
|
8940
8940
|
throw new Error(`discriminator: "${tagName}" values must be unique strings`);
|
|
8941
8941
|
}
|
|
8942
|
-
discriminatorMapping[tagValue] =
|
|
8942
|
+
discriminatorMapping[tagValue] = i;
|
|
8943
8943
|
}
|
|
8944
8944
|
}
|
|
8945
8945
|
}
|
|
@@ -9939,7 +9939,7 @@ var require_formats = __commonJS({
|
|
|
9939
9939
|
const matches = TIME.exec(str);
|
|
9940
9940
|
if (!matches)
|
|
9941
9941
|
return false;
|
|
9942
|
-
const
|
|
9942
|
+
const hr = +matches[1];
|
|
9943
9943
|
const min = +matches[2];
|
|
9944
9944
|
const sec = +matches[3];
|
|
9945
9945
|
const tz = matches[4];
|
|
@@ -9948,10 +9948,10 @@ var require_formats = __commonJS({
|
|
|
9948
9948
|
const tzM = +(matches[7] || 0);
|
|
9949
9949
|
if (tzH > 23 || tzM > 59 || strictTimeZone && !tz)
|
|
9950
9950
|
return false;
|
|
9951
|
-
if (
|
|
9951
|
+
if (hr <= 23 && min <= 59 && sec < 60)
|
|
9952
9952
|
return true;
|
|
9953
9953
|
const utcMin = min - tzM * tzSign;
|
|
9954
|
-
const utcHr =
|
|
9954
|
+
const utcHr = hr - tzH * tzSign - (utcMin < 0 ? 1 : 0);
|
|
9955
9955
|
return (utcHr === 23 || utcHr === -1) && (utcMin === 59 || utcMin === -1) && sec < 61;
|
|
9956
9956
|
};
|
|
9957
9957
|
}
|
|
@@ -10100,10 +10100,10 @@ var require_code3 = __commonJS({
|
|
|
10100
10100
|
exports.nil = new _Code("");
|
|
10101
10101
|
function _4(strs, ...args) {
|
|
10102
10102
|
const code = [strs[0]];
|
|
10103
|
-
let
|
|
10104
|
-
while (
|
|
10105
|
-
addCodeArg(code, args[
|
|
10106
|
-
code.push(strs[++
|
|
10103
|
+
let i = 0;
|
|
10104
|
+
while (i < args.length) {
|
|
10105
|
+
addCodeArg(code, args[i]);
|
|
10106
|
+
code.push(strs[++i]);
|
|
10107
10107
|
}
|
|
10108
10108
|
return new _Code(code);
|
|
10109
10109
|
}
|
|
@@ -10111,11 +10111,11 @@ var require_code3 = __commonJS({
|
|
|
10111
10111
|
var plus = new _Code("+");
|
|
10112
10112
|
function str(strs, ...args) {
|
|
10113
10113
|
const expr = [safeStringify(strs[0])];
|
|
10114
|
-
let
|
|
10115
|
-
while (
|
|
10114
|
+
let i = 0;
|
|
10115
|
+
while (i < args.length) {
|
|
10116
10116
|
expr.push(plus);
|
|
10117
|
-
addCodeArg(expr, args[
|
|
10118
|
-
expr.push(plus, safeStringify(strs[++
|
|
10117
|
+
addCodeArg(expr, args[i]);
|
|
10118
|
+
expr.push(plus, safeStringify(strs[++i]));
|
|
10119
10119
|
}
|
|
10120
10120
|
optimize(expr);
|
|
10121
10121
|
return new _Code(expr);
|
|
@@ -10131,17 +10131,17 @@ var require_code3 = __commonJS({
|
|
|
10131
10131
|
}
|
|
10132
10132
|
exports.addCodeArg = addCodeArg;
|
|
10133
10133
|
function optimize(expr) {
|
|
10134
|
-
let
|
|
10135
|
-
while (
|
|
10136
|
-
if (expr[
|
|
10137
|
-
const res = mergeExprItems(expr[
|
|
10134
|
+
let i = 1;
|
|
10135
|
+
while (i < expr.length - 1) {
|
|
10136
|
+
if (expr[i] === plus) {
|
|
10137
|
+
const res = mergeExprItems(expr[i - 1], expr[i + 1]);
|
|
10138
10138
|
if (res !== void 0) {
|
|
10139
|
-
expr.splice(
|
|
10139
|
+
expr.splice(i - 1, 3, res);
|
|
10140
10140
|
continue;
|
|
10141
10141
|
}
|
|
10142
|
-
expr[
|
|
10142
|
+
expr[i++] = "+";
|
|
10143
10143
|
}
|
|
10144
|
-
|
|
10144
|
+
i++;
|
|
10145
10145
|
}
|
|
10146
10146
|
}
|
|
10147
10147
|
function mergeExprItems(a2, b2) {
|
|
@@ -10521,27 +10521,27 @@ var require_codegen2 = __commonJS({
|
|
|
10521
10521
|
}
|
|
10522
10522
|
optimizeNodes() {
|
|
10523
10523
|
const { nodes } = this;
|
|
10524
|
-
let
|
|
10525
|
-
while (
|
|
10526
|
-
const n2 = nodes[
|
|
10524
|
+
let i = nodes.length;
|
|
10525
|
+
while (i--) {
|
|
10526
|
+
const n2 = nodes[i].optimizeNodes();
|
|
10527
10527
|
if (Array.isArray(n2))
|
|
10528
|
-
nodes.splice(
|
|
10528
|
+
nodes.splice(i, 1, ...n2);
|
|
10529
10529
|
else if (n2)
|
|
10530
|
-
nodes[
|
|
10530
|
+
nodes[i] = n2;
|
|
10531
10531
|
else
|
|
10532
|
-
nodes.splice(
|
|
10532
|
+
nodes.splice(i, 1);
|
|
10533
10533
|
}
|
|
10534
10534
|
return nodes.length > 0 ? this : void 0;
|
|
10535
10535
|
}
|
|
10536
10536
|
optimizeNames(names, constants) {
|
|
10537
10537
|
const { nodes } = this;
|
|
10538
|
-
let
|
|
10539
|
-
while (
|
|
10540
|
-
const n2 = nodes[
|
|
10538
|
+
let i = nodes.length;
|
|
10539
|
+
while (i--) {
|
|
10540
|
+
const n2 = nodes[i];
|
|
10541
10541
|
if (n2.optimizeNames(names, constants))
|
|
10542
10542
|
continue;
|
|
10543
10543
|
subtractNames(names, n2.names);
|
|
10544
|
-
nodes.splice(
|
|
10544
|
+
nodes.splice(i, 1);
|
|
10545
10545
|
}
|
|
10546
10546
|
return nodes.length > 0 ? this : void 0;
|
|
10547
10547
|
}
|
|
@@ -10868,8 +10868,8 @@ var require_codegen2 = __commonJS({
|
|
|
10868
10868
|
const name = this._scope.toName(nameOrPrefix);
|
|
10869
10869
|
if (this.opts.es5) {
|
|
10870
10870
|
const arr = iterable instanceof code_1.Name ? iterable : this.var("_arr", iterable);
|
|
10871
|
-
return this.forRange("_i", 0, (0, code_1._)`${arr}.length`, (
|
|
10872
|
-
this.var(name, (0, code_1._)`${arr}[${
|
|
10871
|
+
return this.forRange("_i", 0, (0, code_1._)`${arr}.length`, (i) => {
|
|
10872
|
+
this.var(name, (0, code_1._)`${arr}[${i}]`);
|
|
10873
10873
|
forBody(name);
|
|
10874
10874
|
});
|
|
10875
10875
|
}
|
|
@@ -11047,10 +11047,10 @@ var require_codegen2 = __commonJS({
|
|
|
11047
11047
|
}
|
|
11048
11048
|
exports.and = and;
|
|
11049
11049
|
var orCode = mappend(exports.operators.OR);
|
|
11050
|
-
function
|
|
11050
|
+
function or(...args) {
|
|
11051
11051
|
return args.reduce(orCode);
|
|
11052
11052
|
}
|
|
11053
|
-
exports.or =
|
|
11053
|
+
exports.or = or;
|
|
11054
11054
|
function mappend(op) {
|
|
11055
11055
|
return (x2, y2) => x2 === code_1.nil ? y2 : y2 === code_1.nil ? x2 : (0, code_1._)`${par(x2)} ${op} ${par(y2)}`;
|
|
11056
11056
|
}
|
|
@@ -11143,12 +11143,12 @@ var require_util2 = __commonJS({
|
|
|
11143
11143
|
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
11144
11144
|
}
|
|
11145
11145
|
exports.unescapeJsonPointer = unescapeJsonPointer;
|
|
11146
|
-
function eachItem(
|
|
11147
|
-
if (Array.isArray(
|
|
11148
|
-
for (const x2 of
|
|
11146
|
+
function eachItem(xs, f) {
|
|
11147
|
+
if (Array.isArray(xs)) {
|
|
11148
|
+
for (const x2 of xs)
|
|
11149
11149
|
f(x2);
|
|
11150
11150
|
} else {
|
|
11151
|
-
f(
|
|
11151
|
+
f(xs);
|
|
11152
11152
|
}
|
|
11153
11153
|
}
|
|
11154
11154
|
exports.eachItem = eachItem;
|
|
@@ -11311,8 +11311,8 @@ var require_errors2 = __commonJS({
|
|
|
11311
11311
|
if (errsCount === void 0)
|
|
11312
11312
|
throw new Error("ajv implementation error");
|
|
11313
11313
|
const err = gen.name("err");
|
|
11314
|
-
gen.forRange("i", errsCount, names_1.default.errors, (
|
|
11315
|
-
gen.const(err, (0, codegen_1._)`${names_1.default.vErrors}[${
|
|
11314
|
+
gen.forRange("i", errsCount, names_1.default.errors, (i) => {
|
|
11315
|
+
gen.const(err, (0, codegen_1._)`${names_1.default.vErrors}[${i}]`);
|
|
11316
11316
|
gen.if((0, codegen_1._)`${err}.instancePath === undefined`, () => gen.assign((0, codegen_1._)`${err}.instancePath`, (0, codegen_1.strConcat)(names_1.default.instancePath, it2.errorPath)));
|
|
11317
11317
|
gen.assign((0, codegen_1._)`${err}.schemaPath`, (0, codegen_1.str)`${it2.errSchemaPath}/${keyword}`);
|
|
11318
11318
|
if (it2.opts.verbose) {
|
|
@@ -11692,7 +11692,7 @@ var require_defaults2 = __commonJS({
|
|
|
11692
11692
|
assignDefault(it2, key, properties[key].default);
|
|
11693
11693
|
}
|
|
11694
11694
|
} else if (ty === "array" && Array.isArray(items)) {
|
|
11695
|
-
items.forEach((sch,
|
|
11695
|
+
items.forEach((sch, i) => assignDefault(it2, i, sch.default));
|
|
11696
11696
|
}
|
|
11697
11697
|
}
|
|
11698
11698
|
exports.assignDefaults = assignDefaults;
|
|
@@ -11810,10 +11810,10 @@ var require_code4 = __commonJS({
|
|
|
11810
11810
|
return valid;
|
|
11811
11811
|
function validateItems(notValid) {
|
|
11812
11812
|
const len = gen.const("len", (0, codegen_1._)`${data}.length`);
|
|
11813
|
-
gen.forRange("i", 0, len, (
|
|
11813
|
+
gen.forRange("i", 0, len, (i) => {
|
|
11814
11814
|
cxt.subschema({
|
|
11815
11815
|
keyword,
|
|
11816
|
-
dataProp:
|
|
11816
|
+
dataProp: i,
|
|
11817
11817
|
dataPropType: util_1.Type.Num
|
|
11818
11818
|
}, valid);
|
|
11819
11819
|
gen.if((0, codegen_1.not)(valid), notValid);
|
|
@@ -11830,10 +11830,10 @@ var require_code4 = __commonJS({
|
|
|
11830
11830
|
return;
|
|
11831
11831
|
const valid = gen.let("valid", false);
|
|
11832
11832
|
const schValid = gen.name("_valid");
|
|
11833
|
-
gen.block(() => schema.forEach((_sch,
|
|
11833
|
+
gen.block(() => schema.forEach((_sch, i) => {
|
|
11834
11834
|
const schCxt = cxt.subschema({
|
|
11835
11835
|
keyword,
|
|
11836
|
-
schemaProp:
|
|
11836
|
+
schemaProp: i,
|
|
11837
11837
|
compositeRule: true
|
|
11838
11838
|
}, schValid);
|
|
11839
11839
|
gen.assign(valid, (0, codegen_1._)`${valid} || ${schValid}`);
|
|
@@ -13079,31 +13079,31 @@ var require_core5 = __commonJS({
|
|
|
13079
13079
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
13080
13080
|
};
|
|
13081
13081
|
var MAX_EXPRESSION = 200;
|
|
13082
|
-
function requiredOptions(
|
|
13083
|
-
var _a, _b, _c, _d, _e2, _f, _g, _h, _j, _k, _l, _m,
|
|
13084
|
-
const s2 =
|
|
13085
|
-
const _optz = (_a =
|
|
13082
|
+
function requiredOptions(o2) {
|
|
13083
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _j, _k, _l, _m, _o2, _p, _q, _r, _s, _t2, _u, _v, _w, _x, _y, _z, _0;
|
|
13084
|
+
const s2 = o2.strict;
|
|
13085
|
+
const _optz = (_a = o2.code) === null || _a === void 0 ? void 0 : _a.optimize;
|
|
13086
13086
|
const optimize = _optz === true || _optz === void 0 ? 1 : _optz || 0;
|
|
13087
|
-
const regExp = (_c = (_b =
|
|
13088
|
-
const uriResolver = (_d =
|
|
13087
|
+
const regExp = (_c = (_b = o2.code) === null || _b === void 0 ? void 0 : _b.regExp) !== null && _c !== void 0 ? _c : defaultRegExp;
|
|
13088
|
+
const uriResolver = (_d = o2.uriResolver) !== null && _d !== void 0 ? _d : uri_1.default;
|
|
13089
13089
|
return {
|
|
13090
|
-
strictSchema: (_f = (_e2 =
|
|
13091
|
-
strictNumbers: (_h = (_g =
|
|
13092
|
-
strictTypes: (_k = (_j =
|
|
13093
|
-
strictTuples: (_m = (_l =
|
|
13094
|
-
strictRequired: (_p = (
|
|
13095
|
-
code:
|
|
13096
|
-
loopRequired: (_q =
|
|
13097
|
-
loopEnum: (
|
|
13098
|
-
meta: (_s =
|
|
13099
|
-
messages: (_t2 =
|
|
13100
|
-
inlineRefs: (_u =
|
|
13101
|
-
schemaId: (_v =
|
|
13102
|
-
addUsedSchema: (_w =
|
|
13103
|
-
validateSchema: (_x =
|
|
13104
|
-
validateFormats: (_y =
|
|
13105
|
-
unicodeRegExp: (_z =
|
|
13106
|
-
int32range: (_0 =
|
|
13090
|
+
strictSchema: (_f = (_e2 = o2.strictSchema) !== null && _e2 !== void 0 ? _e2 : s2) !== null && _f !== void 0 ? _f : true,
|
|
13091
|
+
strictNumbers: (_h = (_g = o2.strictNumbers) !== null && _g !== void 0 ? _g : s2) !== null && _h !== void 0 ? _h : true,
|
|
13092
|
+
strictTypes: (_k = (_j = o2.strictTypes) !== null && _j !== void 0 ? _j : s2) !== null && _k !== void 0 ? _k : "log",
|
|
13093
|
+
strictTuples: (_m = (_l = o2.strictTuples) !== null && _l !== void 0 ? _l : s2) !== null && _m !== void 0 ? _m : "log",
|
|
13094
|
+
strictRequired: (_p = (_o2 = o2.strictRequired) !== null && _o2 !== void 0 ? _o2 : s2) !== null && _p !== void 0 ? _p : false,
|
|
13095
|
+
code: o2.code ? { ...o2.code, optimize, regExp } : { optimize, regExp },
|
|
13096
|
+
loopRequired: (_q = o2.loopRequired) !== null && _q !== void 0 ? _q : MAX_EXPRESSION,
|
|
13097
|
+
loopEnum: (_r = o2.loopEnum) !== null && _r !== void 0 ? _r : MAX_EXPRESSION,
|
|
13098
|
+
meta: (_s = o2.meta) !== null && _s !== void 0 ? _s : true,
|
|
13099
|
+
messages: (_t2 = o2.messages) !== null && _t2 !== void 0 ? _t2 : true,
|
|
13100
|
+
inlineRefs: (_u = o2.inlineRefs) !== null && _u !== void 0 ? _u : true,
|
|
13101
|
+
schemaId: (_v = o2.schemaId) !== null && _v !== void 0 ? _v : "$id",
|
|
13102
|
+
addUsedSchema: (_w = o2.addUsedSchema) !== null && _w !== void 0 ? _w : true,
|
|
13103
|
+
validateSchema: (_x = o2.validateSchema) !== null && _x !== void 0 ? _x : true,
|
|
13104
|
+
validateFormats: (_y = o2.validateFormats) !== null && _y !== void 0 ? _y : true,
|
|
13105
|
+
unicodeRegExp: (_z = o2.unicodeRegExp) !== null && _z !== void 0 ? _z : true,
|
|
13106
|
+
int32range: (_0 = o2.int32range) !== null && _0 !== void 0 ? _0 : true,
|
|
13107
13107
|
uriResolver
|
|
13108
13108
|
};
|
|
13109
13109
|
}
|
|
@@ -13375,9 +13375,9 @@ var require_core5 = __commonJS({
|
|
|
13375
13375
|
delete RULES.keywords[keyword];
|
|
13376
13376
|
delete RULES.all[keyword];
|
|
13377
13377
|
for (const group of RULES.rules) {
|
|
13378
|
-
const
|
|
13379
|
-
if (
|
|
13380
|
-
group.rules.splice(
|
|
13378
|
+
const i = group.rules.findIndex((rule) => rule.keyword === keyword);
|
|
13379
|
+
if (i >= 0)
|
|
13380
|
+
group.rules.splice(i, 1);
|
|
13381
13381
|
}
|
|
13382
13382
|
return this;
|
|
13383
13383
|
}
|
|
@@ -13585,9 +13585,9 @@ var require_core5 = __commonJS({
|
|
|
13585
13585
|
(_a = definition.implements) === null || _a === void 0 ? void 0 : _a.forEach((kwd) => this.addKeyword(kwd));
|
|
13586
13586
|
}
|
|
13587
13587
|
function addBeforeRule(ruleGroup, rule, before) {
|
|
13588
|
-
const
|
|
13589
|
-
if (
|
|
13590
|
-
ruleGroup.rules.splice(
|
|
13588
|
+
const i = ruleGroup.rules.findIndex((_rule) => _rule.keyword === before);
|
|
13589
|
+
if (i >= 0) {
|
|
13590
|
+
ruleGroup.rules.splice(i, 0, rule);
|
|
13591
13591
|
} else {
|
|
13592
13592
|
ruleGroup.rules.push(rule);
|
|
13593
13593
|
this.logger.warn(`rule ${before} is not defined`);
|
|
@@ -14084,8 +14084,8 @@ var require_uniqueItems2 = __commonJS({
|
|
|
14084
14084
|
var util_1 = require_util2();
|
|
14085
14085
|
var equal_1 = require_equal2();
|
|
14086
14086
|
var error = {
|
|
14087
|
-
message: ({ params: { i
|
|
14088
|
-
params: ({ params: { i
|
|
14087
|
+
message: ({ params: { i, j: j2 } }) => (0, codegen_1.str)`must NOT have duplicate items (items ## ${j2} and ${i} are identical)`,
|
|
14088
|
+
params: ({ params: { i, j: j2 } }) => (0, codegen_1._)`{i: ${i}, j: ${j2}}`
|
|
14089
14089
|
};
|
|
14090
14090
|
var def = {
|
|
14091
14091
|
keyword: "uniqueItems",
|
|
@@ -14102,21 +14102,21 @@ var require_uniqueItems2 = __commonJS({
|
|
|
14102
14102
|
cxt.block$data(valid, validateUniqueItems, (0, codegen_1._)`${schemaCode} === false`);
|
|
14103
14103
|
cxt.ok(valid);
|
|
14104
14104
|
function validateUniqueItems() {
|
|
14105
|
-
const
|
|
14105
|
+
const i = gen.let("i", (0, codegen_1._)`${data}.length`);
|
|
14106
14106
|
const j2 = gen.let("j");
|
|
14107
|
-
cxt.setParams({ i
|
|
14107
|
+
cxt.setParams({ i, j: j2 });
|
|
14108
14108
|
gen.assign(valid, true);
|
|
14109
|
-
gen.if((0, codegen_1._)`${
|
|
14109
|
+
gen.if((0, codegen_1._)`${i} > 1`, () => (canOptimize() ? loopN : loopN2)(i, j2));
|
|
14110
14110
|
}
|
|
14111
14111
|
function canOptimize() {
|
|
14112
14112
|
return itemTypes.length > 0 && !itemTypes.some((t2) => t2 === "object" || t2 === "array");
|
|
14113
14113
|
}
|
|
14114
|
-
function loopN(
|
|
14114
|
+
function loopN(i, j2) {
|
|
14115
14115
|
const item = gen.name("item");
|
|
14116
14116
|
const wrongType = (0, dataType_1.checkDataTypes)(itemTypes, item, it2.opts.strictNumbers, dataType_1.DataType.Wrong);
|
|
14117
14117
|
const indices = gen.const("indices", (0, codegen_1._)`{}`);
|
|
14118
|
-
gen.for((0, codegen_1._)`;${
|
|
14119
|
-
gen.let(item, (0, codegen_1._)`${data}[${
|
|
14118
|
+
gen.for((0, codegen_1._)`;${i}--;`, () => {
|
|
14119
|
+
gen.let(item, (0, codegen_1._)`${data}[${i}]`);
|
|
14120
14120
|
gen.if(wrongType, (0, codegen_1._)`continue`);
|
|
14121
14121
|
if (itemTypes.length > 1)
|
|
14122
14122
|
gen.if((0, codegen_1._)`typeof ${item} == "string"`, (0, codegen_1._)`${item} += "_"`);
|
|
@@ -14124,13 +14124,13 @@ var require_uniqueItems2 = __commonJS({
|
|
|
14124
14124
|
gen.assign(j2, (0, codegen_1._)`${indices}[${item}]`);
|
|
14125
14125
|
cxt.error();
|
|
14126
14126
|
gen.assign(valid, false).break();
|
|
14127
|
-
}).code((0, codegen_1._)`${indices}[${item}] = ${
|
|
14127
|
+
}).code((0, codegen_1._)`${indices}[${item}] = ${i}`);
|
|
14128
14128
|
});
|
|
14129
14129
|
}
|
|
14130
|
-
function loopN2(
|
|
14130
|
+
function loopN2(i, j2) {
|
|
14131
14131
|
const eql = (0, util_1.useFunc)(gen, equal_1.default);
|
|
14132
14132
|
const outer = gen.name("outer");
|
|
14133
|
-
gen.label(outer).for((0, codegen_1._)`;${
|
|
14133
|
+
gen.label(outer).for((0, codegen_1._)`;${i}--;`, () => gen.for((0, codegen_1._)`${j2} = ${i}; ${j2}--;`, () => gen.if((0, codegen_1._)`${eql}(${data}[${i}], ${data}[${j2}])`, () => {
|
|
14134
14134
|
cxt.error();
|
|
14135
14135
|
gen.assign(valid, false).break(outer);
|
|
14136
14136
|
})));
|
|
@@ -14202,16 +14202,16 @@ var require_enum2 = __commonJS({
|
|
|
14202
14202
|
if (!Array.isArray(schema))
|
|
14203
14203
|
throw new Error("ajv implementation error");
|
|
14204
14204
|
const vSchema = gen.const("vSchema", schemaCode);
|
|
14205
|
-
valid = (0, codegen_1.or)(...schema.map((_x,
|
|
14205
|
+
valid = (0, codegen_1.or)(...schema.map((_x, i) => equalCode(vSchema, i)));
|
|
14206
14206
|
}
|
|
14207
14207
|
cxt.pass(valid);
|
|
14208
14208
|
function loopEnum() {
|
|
14209
14209
|
gen.assign(valid, false);
|
|
14210
14210
|
gen.forOf("v", schemaCode, (v2) => gen.if((0, codegen_1._)`${getEql()}(${data}, ${v2})`, () => gen.assign(valid, true).break()));
|
|
14211
14211
|
}
|
|
14212
|
-
function equalCode(vSchema,
|
|
14213
|
-
const sch = schema[
|
|
14214
|
-
return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${
|
|
14212
|
+
function equalCode(vSchema, i) {
|
|
14213
|
+
const sch = schema[i];
|
|
14214
|
+
return typeof sch === "object" && sch !== null ? (0, codegen_1._)`${getEql()}(${data}, ${vSchema}[${i}])` : (0, codegen_1._)`${data} === ${sch}`;
|
|
14215
14215
|
}
|
|
14216
14216
|
}
|
|
14217
14217
|
};
|
|
@@ -14298,8 +14298,8 @@ var require_additionalItems2 = __commonJS({
|
|
|
14298
14298
|
cxt.ok(valid);
|
|
14299
14299
|
}
|
|
14300
14300
|
function validateItems(valid) {
|
|
14301
|
-
gen.forRange("i", items.length, len, (
|
|
14302
|
-
cxt.subschema({ keyword, dataProp:
|
|
14301
|
+
gen.forRange("i", items.length, len, (i) => {
|
|
14302
|
+
cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid);
|
|
14303
14303
|
if (!it2.allErrors)
|
|
14304
14304
|
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
14305
14305
|
});
|
|
@@ -14342,13 +14342,13 @@ var require_items2 = __commonJS({
|
|
|
14342
14342
|
}
|
|
14343
14343
|
const valid = gen.name("valid");
|
|
14344
14344
|
const len = gen.const("len", (0, codegen_1._)`${data}.length`);
|
|
14345
|
-
schArr.forEach((sch,
|
|
14345
|
+
schArr.forEach((sch, i) => {
|
|
14346
14346
|
if ((0, util_1.alwaysValidSchema)(it2, sch))
|
|
14347
14347
|
return;
|
|
14348
|
-
gen.if((0, codegen_1._)`${len} > ${
|
|
14348
|
+
gen.if((0, codegen_1._)`${len} > ${i}`, () => cxt.subschema({
|
|
14349
14349
|
keyword,
|
|
14350
|
-
schemaProp:
|
|
14351
|
-
dataProp:
|
|
14350
|
+
schemaProp: i,
|
|
14351
|
+
dataProp: i
|
|
14352
14352
|
}, valid));
|
|
14353
14353
|
cxt.ok(valid);
|
|
14354
14354
|
});
|
|
@@ -14485,10 +14485,10 @@ var require_contains2 = __commonJS({
|
|
|
14485
14485
|
validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));
|
|
14486
14486
|
}
|
|
14487
14487
|
function validateItems(_valid, block) {
|
|
14488
|
-
gen.forRange("i", 0, len, (
|
|
14488
|
+
gen.forRange("i", 0, len, (i) => {
|
|
14489
14489
|
cxt.subschema({
|
|
14490
14490
|
keyword: "contains",
|
|
14491
|
-
dataProp:
|
|
14491
|
+
dataProp: i,
|
|
14492
14492
|
dataPropType: util_1.Type.Num,
|
|
14493
14493
|
compositeRule: true
|
|
14494
14494
|
}, _valid);
|
|
@@ -14966,23 +14966,23 @@ var require_oneOf2 = __commonJS({
|
|
|
14966
14966
|
gen.block(validateOneOf);
|
|
14967
14967
|
cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
|
|
14968
14968
|
function validateOneOf() {
|
|
14969
|
-
schArr.forEach((sch,
|
|
14969
|
+
schArr.forEach((sch, i) => {
|
|
14970
14970
|
let schCxt;
|
|
14971
14971
|
if ((0, util_1.alwaysValidSchema)(it2, sch)) {
|
|
14972
14972
|
gen.var(schValid, true);
|
|
14973
14973
|
} else {
|
|
14974
14974
|
schCxt = cxt.subschema({
|
|
14975
14975
|
keyword: "oneOf",
|
|
14976
|
-
schemaProp:
|
|
14976
|
+
schemaProp: i,
|
|
14977
14977
|
compositeRule: true
|
|
14978
14978
|
}, schValid);
|
|
14979
14979
|
}
|
|
14980
|
-
if (
|
|
14981
|
-
gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${
|
|
14980
|
+
if (i > 0) {
|
|
14981
|
+
gen.if((0, codegen_1._)`${schValid} && ${valid}`).assign(valid, false).assign(passing, (0, codegen_1._)`[${passing}, ${i}]`).else();
|
|
14982
14982
|
}
|
|
14983
14983
|
gen.if(schValid, () => {
|
|
14984
14984
|
gen.assign(valid, true);
|
|
14985
|
-
gen.assign(passing,
|
|
14985
|
+
gen.assign(passing, i);
|
|
14986
14986
|
if (schCxt)
|
|
14987
14987
|
cxt.mergeEvaluated(schCxt, codegen_1.Name);
|
|
14988
14988
|
});
|
|
@@ -15008,10 +15008,10 @@ var require_allOf2 = __commonJS({
|
|
|
15008
15008
|
if (!Array.isArray(schema))
|
|
15009
15009
|
throw new Error("ajv implementation error");
|
|
15010
15010
|
const valid = gen.name("valid");
|
|
15011
|
-
schema.forEach((sch,
|
|
15011
|
+
schema.forEach((sch, i) => {
|
|
15012
15012
|
if ((0, util_1.alwaysValidSchema)(it2, sch))
|
|
15013
15013
|
return;
|
|
15014
|
-
const schCxt = cxt.subschema({ keyword: "allOf", schemaProp:
|
|
15014
|
+
const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid);
|
|
15015
15015
|
cxt.ok(valid);
|
|
15016
15016
|
cxt.mergeEvaluated(schCxt);
|
|
15017
15017
|
});
|
|
@@ -15374,8 +15374,8 @@ var require_discriminator2 = __commonJS({
|
|
|
15374
15374
|
const oneOfMapping = {};
|
|
15375
15375
|
const topRequired = hasRequired(parentSchema);
|
|
15376
15376
|
let tagRequired = true;
|
|
15377
|
-
for (let
|
|
15378
|
-
let sch = oneOf[
|
|
15377
|
+
for (let i = 0; i < oneOf.length; i++) {
|
|
15378
|
+
let sch = oneOf[i];
|
|
15379
15379
|
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it2.self.RULES)) {
|
|
15380
15380
|
const ref = sch.$ref;
|
|
15381
15381
|
sch = compile_1.resolveRef.call(it2.self, it2.schemaEnv.root, it2.baseId, ref);
|
|
@@ -15389,7 +15389,7 @@ var require_discriminator2 = __commonJS({
|
|
|
15389
15389
|
throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${tagName}"`);
|
|
15390
15390
|
}
|
|
15391
15391
|
tagRequired = tagRequired && (topRequired || hasRequired(sch));
|
|
15392
|
-
addMappings(propSch,
|
|
15392
|
+
addMappings(propSch, i);
|
|
15393
15393
|
}
|
|
15394
15394
|
if (!tagRequired)
|
|
15395
15395
|
throw new Error(`discriminator: "${tagName}" must be required`);
|
|
@@ -15397,22 +15397,22 @@ var require_discriminator2 = __commonJS({
|
|
|
15397
15397
|
function hasRequired({ required }) {
|
|
15398
15398
|
return Array.isArray(required) && required.includes(tagName);
|
|
15399
15399
|
}
|
|
15400
|
-
function addMappings(sch,
|
|
15400
|
+
function addMappings(sch, i) {
|
|
15401
15401
|
if (sch.const) {
|
|
15402
|
-
addMapping(sch.const,
|
|
15402
|
+
addMapping(sch.const, i);
|
|
15403
15403
|
} else if (sch.enum) {
|
|
15404
15404
|
for (const tagValue of sch.enum) {
|
|
15405
|
-
addMapping(tagValue,
|
|
15405
|
+
addMapping(tagValue, i);
|
|
15406
15406
|
}
|
|
15407
15407
|
} else {
|
|
15408
15408
|
throw new Error(`discriminator: "properties/${tagName}" must have "const" or "enum"`);
|
|
15409
15409
|
}
|
|
15410
15410
|
}
|
|
15411
|
-
function addMapping(tagValue,
|
|
15411
|
+
function addMapping(tagValue, i) {
|
|
15412
15412
|
if (typeof tagValue != "string" || tagValue in oneOfMapping) {
|
|
15413
15413
|
throw new Error(`discriminator: "${tagName}" values must be unique strings`);
|
|
15414
15414
|
}
|
|
15415
|
-
oneOfMapping[tagValue] =
|
|
15415
|
+
oneOfMapping[tagValue] = i;
|
|
15416
15416
|
}
|
|
15417
15417
|
}
|
|
15418
15418
|
}
|
|
@@ -16434,8 +16434,8 @@ var require_int2 = __commonJS({
|
|
|
16434
16434
|
});
|
|
16435
16435
|
value = 0;
|
|
16436
16436
|
base = 1;
|
|
16437
|
-
digits.forEach(function(
|
|
16438
|
-
value +=
|
|
16437
|
+
digits.forEach(function(d2) {
|
|
16438
|
+
value += d2 * base;
|
|
16439
16439
|
base *= 60;
|
|
16440
16440
|
});
|
|
16441
16441
|
return sign * value;
|
|
@@ -16510,8 +16510,8 @@ var require_float2 = __commonJS({
|
|
|
16510
16510
|
});
|
|
16511
16511
|
value = 0;
|
|
16512
16512
|
base = 1;
|
|
16513
|
-
digits.forEach(function(
|
|
16514
|
-
value +=
|
|
16513
|
+
digits.forEach(function(d2) {
|
|
16514
|
+
value += d2 * base;
|
|
16515
16515
|
base *= 60;
|
|
16516
16516
|
});
|
|
16517
16517
|
return sign * value;
|
|
@@ -17122,15 +17122,15 @@ var require_loader2 = __commonJS({
|
|
|
17122
17122
|
var simpleEscapeMap = new Array(256);
|
|
17123
17123
|
var customEscapeCheck = new Array(256);
|
|
17124
17124
|
var customEscapeMap = new Array(256);
|
|
17125
|
-
for (
|
|
17126
|
-
customEscapeMap[
|
|
17127
|
-
simpleEscapeCheck[
|
|
17128
|
-
customEscapeCheck[
|
|
17129
|
-
if (!simpleEscapeCheck[
|
|
17130
|
-
customEscapeMap[
|
|
17125
|
+
for (i = 0; i < 256; i++) {
|
|
17126
|
+
customEscapeMap[i] = simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
17127
|
+
simpleEscapeCheck[i] = simpleEscapeMap[i] ? 1 : 0;
|
|
17128
|
+
customEscapeCheck[i] = 1;
|
|
17129
|
+
if (!simpleEscapeCheck[i]) {
|
|
17130
|
+
customEscapeMap[i] = "\\" + String.fromCharCode(i);
|
|
17131
17131
|
}
|
|
17132
17132
|
}
|
|
17133
|
-
var
|
|
17133
|
+
var i;
|
|
17134
17134
|
var State = /* @__PURE__ */ (function() {
|
|
17135
17135
|
function State2(input, options2) {
|
|
17136
17136
|
this.errorMap = {};
|
|
@@ -17190,7 +17190,7 @@ var require_loader2 = __commonJS({
|
|
|
17190
17190
|
}
|
|
17191
17191
|
state.errors.push(error);
|
|
17192
17192
|
state.errorMap[hash] = 1;
|
|
17193
|
-
var
|
|
17193
|
+
var or = state.position;
|
|
17194
17194
|
while (true) {
|
|
17195
17195
|
if (state.position >= state.input.length - 1) {
|
|
17196
17196
|
return;
|
|
@@ -17198,14 +17198,14 @@ var require_loader2 = __commonJS({
|
|
|
17198
17198
|
var c2 = state.input.charAt(state.position);
|
|
17199
17199
|
if (c2 == "\n") {
|
|
17200
17200
|
state.position--;
|
|
17201
|
-
if (state.position ==
|
|
17201
|
+
if (state.position == or) {
|
|
17202
17202
|
state.position += 1;
|
|
17203
17203
|
}
|
|
17204
17204
|
return;
|
|
17205
17205
|
}
|
|
17206
17206
|
if (c2 == "\r") {
|
|
17207
17207
|
state.position--;
|
|
17208
|
-
if (state.position ==
|
|
17208
|
+
if (state.position == or) {
|
|
17209
17209
|
state.position += 1;
|
|
17210
17210
|
}
|
|
17211
17211
|
return;
|
|
@@ -17338,11 +17338,11 @@ var require_loader2 = __commonJS({
|
|
|
17338
17338
|
}
|
|
17339
17339
|
function positionToLine(state, position) {
|
|
17340
17340
|
var line;
|
|
17341
|
-
for (var
|
|
17342
|
-
if (state.lines[
|
|
17341
|
+
for (var i2 = 0; i2 < state.lines.length; i2++) {
|
|
17342
|
+
if (state.lines[i2].start > position) {
|
|
17343
17343
|
break;
|
|
17344
17344
|
}
|
|
17345
|
-
line = state.lines[
|
|
17345
|
+
line = state.lines[i2];
|
|
17346
17346
|
}
|
|
17347
17347
|
if (!line) {
|
|
17348
17348
|
return {
|
|
@@ -17751,22 +17751,22 @@ var require_loader2 = __commonJS({
|
|
|
17751
17751
|
captureSegment(state, captureStart, state.position, false);
|
|
17752
17752
|
}
|
|
17753
17753
|
sc.endPosition = state.position;
|
|
17754
|
-
var
|
|
17754
|
+
var i2 = state.position - 1;
|
|
17755
17755
|
var needMinus = false;
|
|
17756
17756
|
while (true) {
|
|
17757
|
-
var c2 = state.input[
|
|
17757
|
+
var c2 = state.input[i2];
|
|
17758
17758
|
if (c2 == "\r" || c2 == "\n") {
|
|
17759
17759
|
if (needMinus) {
|
|
17760
|
-
|
|
17760
|
+
i2--;
|
|
17761
17761
|
}
|
|
17762
17762
|
break;
|
|
17763
17763
|
}
|
|
17764
17764
|
if (c2 != " " && c2 != " ") {
|
|
17765
17765
|
break;
|
|
17766
17766
|
}
|
|
17767
|
-
|
|
17767
|
+
i2--;
|
|
17768
17768
|
}
|
|
17769
|
-
sc.endPosition =
|
|
17769
|
+
sc.endPosition = i2;
|
|
17770
17770
|
sc.rawValue = state.input.substring(sc.startPosition, sc.endPosition);
|
|
17771
17771
|
return true;
|
|
17772
17772
|
}
|
|
@@ -18483,12 +18483,12 @@ var require_dumper2 = __commonJS({
|
|
|
18483
18483
|
this.checkpoint = 0;
|
|
18484
18484
|
}
|
|
18485
18485
|
StringBuilder.prototype.takeUpTo = function(position) {
|
|
18486
|
-
var
|
|
18486
|
+
var er;
|
|
18487
18487
|
if (position < this.checkpoint) {
|
|
18488
|
-
|
|
18489
|
-
|
|
18490
|
-
|
|
18491
|
-
throw
|
|
18488
|
+
er = new Error("position should be > checkpoint");
|
|
18489
|
+
er.position = position;
|
|
18490
|
+
er.checkpoint = this.checkpoint;
|
|
18491
|
+
throw er;
|
|
18492
18492
|
}
|
|
18493
18493
|
this.result += this.source.slice(this.checkpoint, position);
|
|
18494
18494
|
this.checkpoint = position;
|
|
@@ -19018,8 +19018,8 @@ var require_scalarInference = __commonJS({
|
|
|
19018
19018
|
var require_src = __commonJS({
|
|
19019
19019
|
"../../node_modules/yaml-ast-parser/dist/src/index.js"(exports) {
|
|
19020
19020
|
"use strict";
|
|
19021
|
-
function __export2(
|
|
19022
|
-
for (var p2 in
|
|
19021
|
+
function __export2(m2) {
|
|
19022
|
+
for (var p2 in m2) if (!exports.hasOwnProperty(p2)) exports[p2] = m2[p2];
|
|
19023
19023
|
}
|
|
19024
19024
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19025
19025
|
var loader_1 = require_loader2();
|
|
@@ -19036,121 +19036,6 @@ var require_src = __commonJS({
|
|
|
19036
19036
|
}
|
|
19037
19037
|
});
|
|
19038
19038
|
|
|
19039
|
-
// ../../node_modules/has-flag/index.js
|
|
19040
|
-
var require_has_flag = __commonJS({
|
|
19041
|
-
"../../node_modules/has-flag/index.js"(exports, module2) {
|
|
19042
|
-
"use strict";
|
|
19043
|
-
module2.exports = (flag, argv = process.argv) => {
|
|
19044
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
19045
|
-
const position = argv.indexOf(prefix + flag);
|
|
19046
|
-
const terminatorPosition = argv.indexOf("--");
|
|
19047
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
19048
|
-
};
|
|
19049
|
-
}
|
|
19050
|
-
});
|
|
19051
|
-
|
|
19052
|
-
// ../../node_modules/supports-color/index.js
|
|
19053
|
-
var require_supports_color = __commonJS({
|
|
19054
|
-
"../../node_modules/supports-color/index.js"(exports, module2) {
|
|
19055
|
-
"use strict";
|
|
19056
|
-
var os = __require("os");
|
|
19057
|
-
var tty2 = __require("tty");
|
|
19058
|
-
var hasFlag = require_has_flag();
|
|
19059
|
-
var { env: env3 } = process;
|
|
19060
|
-
var forceColor;
|
|
19061
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
19062
|
-
forceColor = 0;
|
|
19063
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
19064
|
-
forceColor = 1;
|
|
19065
|
-
}
|
|
19066
|
-
if ("FORCE_COLOR" in env3) {
|
|
19067
|
-
if (env3.FORCE_COLOR === "true") {
|
|
19068
|
-
forceColor = 1;
|
|
19069
|
-
} else if (env3.FORCE_COLOR === "false") {
|
|
19070
|
-
forceColor = 0;
|
|
19071
|
-
} else {
|
|
19072
|
-
forceColor = env3.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env3.FORCE_COLOR, 10), 3);
|
|
19073
|
-
}
|
|
19074
|
-
}
|
|
19075
|
-
function translateLevel(level) {
|
|
19076
|
-
if (level === 0) {
|
|
19077
|
-
return false;
|
|
19078
|
-
}
|
|
19079
|
-
return {
|
|
19080
|
-
level,
|
|
19081
|
-
hasBasic: true,
|
|
19082
|
-
has256: level >= 2,
|
|
19083
|
-
has16m: level >= 3
|
|
19084
|
-
};
|
|
19085
|
-
}
|
|
19086
|
-
function supportsColor(haveStream, streamIsTTY) {
|
|
19087
|
-
if (forceColor === 0) {
|
|
19088
|
-
return 0;
|
|
19089
|
-
}
|
|
19090
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
19091
|
-
return 3;
|
|
19092
|
-
}
|
|
19093
|
-
if (hasFlag("color=256")) {
|
|
19094
|
-
return 2;
|
|
19095
|
-
}
|
|
19096
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
19097
|
-
return 0;
|
|
19098
|
-
}
|
|
19099
|
-
const min = forceColor || 0;
|
|
19100
|
-
if (env3.TERM === "dumb") {
|
|
19101
|
-
return min;
|
|
19102
|
-
}
|
|
19103
|
-
if (process.platform === "win32") {
|
|
19104
|
-
const osRelease = os.release().split(".");
|
|
19105
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
19106
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
19107
|
-
}
|
|
19108
|
-
return 1;
|
|
19109
|
-
}
|
|
19110
|
-
if ("CI" in env3) {
|
|
19111
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env3) || env3.CI_NAME === "codeship") {
|
|
19112
|
-
return 1;
|
|
19113
|
-
}
|
|
19114
|
-
return min;
|
|
19115
|
-
}
|
|
19116
|
-
if ("TEAMCITY_VERSION" in env3) {
|
|
19117
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env3.TEAMCITY_VERSION) ? 1 : 0;
|
|
19118
|
-
}
|
|
19119
|
-
if (env3.COLORTERM === "truecolor") {
|
|
19120
|
-
return 3;
|
|
19121
|
-
}
|
|
19122
|
-
if ("TERM_PROGRAM" in env3) {
|
|
19123
|
-
const version = parseInt((env3.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
19124
|
-
switch (env3.TERM_PROGRAM) {
|
|
19125
|
-
case "iTerm.app":
|
|
19126
|
-
return version >= 3 ? 3 : 2;
|
|
19127
|
-
case "Apple_Terminal":
|
|
19128
|
-
return 2;
|
|
19129
|
-
}
|
|
19130
|
-
}
|
|
19131
|
-
if (/-256(color)?$/i.test(env3.TERM)) {
|
|
19132
|
-
return 2;
|
|
19133
|
-
}
|
|
19134
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env3.TERM)) {
|
|
19135
|
-
return 1;
|
|
19136
|
-
}
|
|
19137
|
-
if ("COLORTERM" in env3) {
|
|
19138
|
-
return 1;
|
|
19139
|
-
}
|
|
19140
|
-
return min;
|
|
19141
|
-
}
|
|
19142
|
-
function getSupportLevel(stream) {
|
|
19143
|
-
const level = supportsColor(stream, stream && stream.isTTY);
|
|
19144
|
-
return translateLevel(level);
|
|
19145
|
-
}
|
|
19146
|
-
module2.exports = {
|
|
19147
|
-
supportsColor: getSupportLevel,
|
|
19148
|
-
stdout: translateLevel(supportsColor(true, tty2.isatty(1))),
|
|
19149
|
-
stderr: translateLevel(supportsColor(true, tty2.isatty(2)))
|
|
19150
|
-
};
|
|
19151
|
-
}
|
|
19152
|
-
});
|
|
19153
|
-
|
|
19154
19039
|
// ../core/lib/ref-utils.js
|
|
19155
19040
|
import * as path from "node:path";
|
|
19156
19041
|
|
|
@@ -21506,6 +21391,991 @@ var Oas3_2Types = {
|
|
|
21506
21391
|
NamedMediaTypes: mapOf("MediaTypesMap")
|
|
21507
21392
|
};
|
|
21508
21393
|
|
|
21394
|
+
// ../core/lib/types/asyncapi-bindings.js
|
|
21395
|
+
var HttpChannelBinding = {
|
|
21396
|
+
properties: {},
|
|
21397
|
+
// empty object
|
|
21398
|
+
description: "Protocol-specific information for an HTTP channel."
|
|
21399
|
+
};
|
|
21400
|
+
var HttpServerBinding = {
|
|
21401
|
+
properties: {},
|
|
21402
|
+
// empty object
|
|
21403
|
+
description: "Protocol-specific information for an HTTP server."
|
|
21404
|
+
};
|
|
21405
|
+
var HttpMessageBinding = {
|
|
21406
|
+
properties: {
|
|
21407
|
+
headers: "Schema",
|
|
21408
|
+
statusCode: { type: "number" },
|
|
21409
|
+
bindingVersion: { type: "string" }
|
|
21410
|
+
},
|
|
21411
|
+
description: "Protocol-specific information for an HTTP message, i.e., a request or a response."
|
|
21412
|
+
};
|
|
21413
|
+
var HttpOperationBinding = {
|
|
21414
|
+
properties: {
|
|
21415
|
+
type: { type: "string" },
|
|
21416
|
+
// bindingVersion 0.1.0 (removed since 0.2.0)
|
|
21417
|
+
method: {
|
|
21418
|
+
type: "string",
|
|
21419
|
+
enum: ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "CONNECT", "TRACE"]
|
|
21420
|
+
},
|
|
21421
|
+
query: "Schema",
|
|
21422
|
+
headers: "Schema",
|
|
21423
|
+
bindingVersion: { type: "string" }
|
|
21424
|
+
},
|
|
21425
|
+
description: "Protocol-specific information for an HTTP operation."
|
|
21426
|
+
};
|
|
21427
|
+
var WsChannelBinding = {
|
|
21428
|
+
properties: {
|
|
21429
|
+
method: { type: "string" },
|
|
21430
|
+
query: "Schema",
|
|
21431
|
+
headers: "Schema",
|
|
21432
|
+
bindingVersion: { type: "string" }
|
|
21433
|
+
},
|
|
21434
|
+
description: "Protocol-specific information for a WebSockets channel."
|
|
21435
|
+
};
|
|
21436
|
+
var WsServerBinding = {
|
|
21437
|
+
properties: {},
|
|
21438
|
+
// empty object
|
|
21439
|
+
description: "Protocol-specific information for a WebSockets server."
|
|
21440
|
+
};
|
|
21441
|
+
var WsMessageBinding = {
|
|
21442
|
+
properties: {},
|
|
21443
|
+
// empty object
|
|
21444
|
+
description: "Protocol-specific information for a WebSockets message."
|
|
21445
|
+
};
|
|
21446
|
+
var WsOperationBinding = {
|
|
21447
|
+
properties: {},
|
|
21448
|
+
// empty object
|
|
21449
|
+
description: "Protocol-specific information for a WebSockets operation."
|
|
21450
|
+
};
|
|
21451
|
+
var KafkaTopicConfiguration = {
|
|
21452
|
+
properties: {
|
|
21453
|
+
"cleanup.policy": { type: "array", items: { enum: ["delete", "compact"] } },
|
|
21454
|
+
"retention.ms": { type: "integer" },
|
|
21455
|
+
"retention.bytes": { type: "integer" },
|
|
21456
|
+
"delete.retention.ms": { type: "integer" },
|
|
21457
|
+
"max.message.bytes": { type: "integer" },
|
|
21458
|
+
"confluent.key.schema.validation": { type: "boolean" },
|
|
21459
|
+
"confluent.key.subject.name.strategy": { type: "string" },
|
|
21460
|
+
"confluent.value.schema.validation": { type: "boolean" },
|
|
21461
|
+
"confluent.value.subject.name.strategy": { type: "string" }
|
|
21462
|
+
}
|
|
21463
|
+
};
|
|
21464
|
+
var KafkaChannelBinding = {
|
|
21465
|
+
properties: {
|
|
21466
|
+
topic: { type: "string" },
|
|
21467
|
+
partitions: { type: "integer" },
|
|
21468
|
+
replicas: { type: "integer" },
|
|
21469
|
+
topicConfiguration: "KafkaTopicConfiguration",
|
|
21470
|
+
bindingVersion: { type: "string" }
|
|
21471
|
+
},
|
|
21472
|
+
description: "Protocol-specific information for a Kafka channel."
|
|
21473
|
+
};
|
|
21474
|
+
var KafkaServerBinding = {
|
|
21475
|
+
properties: {
|
|
21476
|
+
schemaRegistryUrl: { type: "string" },
|
|
21477
|
+
schemaRegistryVendor: { type: "string" },
|
|
21478
|
+
bindingVersion: { type: "string" }
|
|
21479
|
+
},
|
|
21480
|
+
description: "Protocol-specific information for a Kafka server."
|
|
21481
|
+
};
|
|
21482
|
+
var KafkaMessageBinding = {
|
|
21483
|
+
properties: {
|
|
21484
|
+
key: "Schema",
|
|
21485
|
+
schemaIdLocation: { type: "string" },
|
|
21486
|
+
schemaIdPayloadEncoding: { type: "string" },
|
|
21487
|
+
schemaLookupStrategy: { type: "string" },
|
|
21488
|
+
bindingVersion: { type: "string" }
|
|
21489
|
+
},
|
|
21490
|
+
description: "Protocol-specific information for a Kafka message."
|
|
21491
|
+
};
|
|
21492
|
+
var KafkaOperationBinding = {
|
|
21493
|
+
properties: {
|
|
21494
|
+
groupId: "Schema",
|
|
21495
|
+
clientId: "Schema",
|
|
21496
|
+
bindingVersion: { type: "string" }
|
|
21497
|
+
},
|
|
21498
|
+
description: "Protocol-specific information for a Kafka operation."
|
|
21499
|
+
};
|
|
21500
|
+
var AnypointmqChannelBinding = {
|
|
21501
|
+
properties: {
|
|
21502
|
+
destination: { type: "string" },
|
|
21503
|
+
destinationType: { type: "string" },
|
|
21504
|
+
bindingVersion: { type: "string" }
|
|
21505
|
+
},
|
|
21506
|
+
description: "Protocol-specific information for an Anypoint MQ channel."
|
|
21507
|
+
};
|
|
21508
|
+
var AnypointmqServerBinding = {
|
|
21509
|
+
properties: {},
|
|
21510
|
+
// empty object
|
|
21511
|
+
description: "Protocol-specific information for an Anypoint MQ server."
|
|
21512
|
+
};
|
|
21513
|
+
var AnypointmqMessageBinding = {
|
|
21514
|
+
properties: {
|
|
21515
|
+
headers: "Schema",
|
|
21516
|
+
bindingVersion: { type: "string" }
|
|
21517
|
+
},
|
|
21518
|
+
description: "Protocol-specific information for an Anypoint MQ message."
|
|
21519
|
+
};
|
|
21520
|
+
var AnypointmqOperationBinding = {
|
|
21521
|
+
properties: {},
|
|
21522
|
+
// empty object
|
|
21523
|
+
description: "Protocol-specific information for an Anypoint MQ operation."
|
|
21524
|
+
};
|
|
21525
|
+
var AmqpChannelExchange = {
|
|
21526
|
+
properties: {
|
|
21527
|
+
name: { type: "string" },
|
|
21528
|
+
type: { type: "string", enum: ["topic", "direct", "fanout", "default", "headers"] },
|
|
21529
|
+
durable: { type: "boolean" },
|
|
21530
|
+
autoDelete: { type: "boolean" },
|
|
21531
|
+
vhost: { type: "string" }
|
|
21532
|
+
},
|
|
21533
|
+
description: "The AMQP exchange the channel is bound to."
|
|
21534
|
+
};
|
|
21535
|
+
var AmqpChannelQueue = {
|
|
21536
|
+
properties: {
|
|
21537
|
+
name: { type: "string" },
|
|
21538
|
+
durable: { type: "boolean" },
|
|
21539
|
+
exclusive: { type: "boolean" },
|
|
21540
|
+
autoDelete: { type: "boolean" },
|
|
21541
|
+
vhost: { type: "string" }
|
|
21542
|
+
},
|
|
21543
|
+
description: "The AMQP queue the channel is bound to."
|
|
21544
|
+
};
|
|
21545
|
+
var AmqpChannelBinding = {
|
|
21546
|
+
properties: {
|
|
21547
|
+
is: { type: "string", enum: ["queue", "routingKey"] },
|
|
21548
|
+
exchange: "AmqpChannelExchange",
|
|
21549
|
+
queue: "AmqpChannelQueue",
|
|
21550
|
+
bindingVersion: { type: "string" }
|
|
21551
|
+
},
|
|
21552
|
+
description: "Protocol-specific information for an AMQP 0-9-1 channel."
|
|
21553
|
+
};
|
|
21554
|
+
var AmqpServerBinding = {
|
|
21555
|
+
properties: {},
|
|
21556
|
+
// empty object
|
|
21557
|
+
description: "Protocol-specific information for an AMQP 0-9-1 server."
|
|
21558
|
+
};
|
|
21559
|
+
var AmqpMessageBinding = {
|
|
21560
|
+
properties: {
|
|
21561
|
+
contentEncoding: { type: "string" },
|
|
21562
|
+
messageType: { type: "string" },
|
|
21563
|
+
bindingVersion: { type: "string" }
|
|
21564
|
+
},
|
|
21565
|
+
description: "Protocol-specific information for an AMQP 0-9-1 message."
|
|
21566
|
+
};
|
|
21567
|
+
var AmqpOperationBinding = {
|
|
21568
|
+
properties: {
|
|
21569
|
+
expiration: { type: "integer" },
|
|
21570
|
+
userId: { type: "string" },
|
|
21571
|
+
cc: { type: "array", items: { type: "string" } },
|
|
21572
|
+
priority: { type: "integer" },
|
|
21573
|
+
deliveryMode: { type: "integer" },
|
|
21574
|
+
mandatory: { type: "boolean" },
|
|
21575
|
+
bcc: { type: "array", items: { type: "string" } },
|
|
21576
|
+
replyTo: { type: "string" },
|
|
21577
|
+
// bindingVersion 0.2.0 (removed in 0.3.0)
|
|
21578
|
+
timestamp: { type: "boolean" },
|
|
21579
|
+
ack: { type: "boolean" },
|
|
21580
|
+
bindingVersion: { type: "string" }
|
|
21581
|
+
},
|
|
21582
|
+
description: "Protocol-specific information for an AMQP 0-9-1 operation."
|
|
21583
|
+
};
|
|
21584
|
+
var Amqp1ChannelBinding = {
|
|
21585
|
+
properties: {},
|
|
21586
|
+
// empty object
|
|
21587
|
+
description: "Protocol-specific information for an AMQP 1.0 channel."
|
|
21588
|
+
};
|
|
21589
|
+
var Amqp1ServerBinding = {
|
|
21590
|
+
properties: {},
|
|
21591
|
+
// empty object
|
|
21592
|
+
description: "Protocol-specific information for an AMQP 1.0 server."
|
|
21593
|
+
};
|
|
21594
|
+
var Amqp1MessageBinding = {
|
|
21595
|
+
properties: {},
|
|
21596
|
+
// empty object
|
|
21597
|
+
description: "Protocol-specific information for an AMQP 1.0 message."
|
|
21598
|
+
};
|
|
21599
|
+
var Amqp1OperationBinding = {
|
|
21600
|
+
properties: {},
|
|
21601
|
+
// empty object
|
|
21602
|
+
description: "Protocol-specific information for an AMQP 1.0 operation."
|
|
21603
|
+
};
|
|
21604
|
+
var MqttChannelBinding = {
|
|
21605
|
+
properties: {},
|
|
21606
|
+
// empty object
|
|
21607
|
+
description: "Protocol-specific information for an MQTT channel."
|
|
21608
|
+
};
|
|
21609
|
+
var MqttServerBindingLastWill = {
|
|
21610
|
+
properties: {
|
|
21611
|
+
topic: { type: "string" },
|
|
21612
|
+
qos: { type: "integer" },
|
|
21613
|
+
message: { type: "string" },
|
|
21614
|
+
retain: { type: "boolean" }
|
|
21615
|
+
}
|
|
21616
|
+
};
|
|
21617
|
+
var MqttServerBinding = {
|
|
21618
|
+
properties: {
|
|
21619
|
+
clientId: { type: "string" },
|
|
21620
|
+
cleanSession: { type: "boolean" },
|
|
21621
|
+
lastWill: "MqttServerBindingLastWill",
|
|
21622
|
+
keepAlive: { type: "integer" },
|
|
21623
|
+
sessionExpiryInterval: (value) => isPlainObject(value) ? "Schema" : { type: "integer" },
|
|
21624
|
+
maximumPacketSize: (value) => isPlainObject(value) ? "Schema" : { type: "integer" },
|
|
21625
|
+
bindingVersion: { type: "string" }
|
|
21626
|
+
},
|
|
21627
|
+
description: "Protocol-specific information for an MQTT server."
|
|
21628
|
+
};
|
|
21629
|
+
var MqttMessageBinding = {
|
|
21630
|
+
properties: {
|
|
21631
|
+
payloadFormatIndicator: { type: "integer" },
|
|
21632
|
+
// 0 or 1
|
|
21633
|
+
correlationData: "Schema",
|
|
21634
|
+
contentType: { type: "string" },
|
|
21635
|
+
responseTopic: (value) => isPlainObject(value) ? "Schema" : { type: "string" },
|
|
21636
|
+
bindingVersion: { type: "string" }
|
|
21637
|
+
},
|
|
21638
|
+
description: "Protocol-specific information for an MQTT message."
|
|
21639
|
+
};
|
|
21640
|
+
var MqttOperationBinding = {
|
|
21641
|
+
properties: {
|
|
21642
|
+
qos: { type: "integer" },
|
|
21643
|
+
retain: { type: "boolean" },
|
|
21644
|
+
messageExpiryInterval: (value) => isPlainObject(value) ? "Schema" : { type: "integer" },
|
|
21645
|
+
bindingVersion: { type: "string" }
|
|
21646
|
+
},
|
|
21647
|
+
description: "Protocol-specific information for an MQTT operation."
|
|
21648
|
+
};
|
|
21649
|
+
var Mqtt5ChannelBinding = {
|
|
21650
|
+
properties: {},
|
|
21651
|
+
// empty object
|
|
21652
|
+
description: "Protocol-specific information for an MQTT 5 channel."
|
|
21653
|
+
};
|
|
21654
|
+
var Mqtt5ServerBinding = {
|
|
21655
|
+
properties: {
|
|
21656
|
+
// defined by the mqtt5 binding README (no JSON Schema was ever published for mqtt5)
|
|
21657
|
+
sessionExpiryInterval: (value) => isPlainObject(value) ? "Schema" : { type: "integer" },
|
|
21658
|
+
bindingVersion: { type: "string" }
|
|
21659
|
+
},
|
|
21660
|
+
description: "Protocol-specific information for an MQTT 5 server."
|
|
21661
|
+
};
|
|
21662
|
+
var Mqtt5MessageBinding = {
|
|
21663
|
+
properties: {},
|
|
21664
|
+
// empty object
|
|
21665
|
+
description: "Protocol-specific information for an MQTT 5 message."
|
|
21666
|
+
};
|
|
21667
|
+
var Mqtt5OperationBinding = {
|
|
21668
|
+
properties: {},
|
|
21669
|
+
// empty object
|
|
21670
|
+
description: "Protocol-specific information for an MQTT 5 operation."
|
|
21671
|
+
};
|
|
21672
|
+
var NatsChannelBinding = {
|
|
21673
|
+
properties: {},
|
|
21674
|
+
// empty object
|
|
21675
|
+
description: "Protocol-specific information for a NATS channel."
|
|
21676
|
+
};
|
|
21677
|
+
var NatsServerBinding = {
|
|
21678
|
+
properties: {},
|
|
21679
|
+
// empty object
|
|
21680
|
+
description: "Protocol-specific information for a NATS server."
|
|
21681
|
+
};
|
|
21682
|
+
var NatsMessageBinding = {
|
|
21683
|
+
properties: {},
|
|
21684
|
+
// empty object
|
|
21685
|
+
description: "Protocol-specific information for a NATS message."
|
|
21686
|
+
};
|
|
21687
|
+
var NatsOperationBinding = {
|
|
21688
|
+
properties: {
|
|
21689
|
+
queue: { type: "string" },
|
|
21690
|
+
bindingVersion: { type: "string" }
|
|
21691
|
+
},
|
|
21692
|
+
description: "Protocol-specific information for a NATS operation."
|
|
21693
|
+
};
|
|
21694
|
+
var JmsChannelBinding = {
|
|
21695
|
+
properties: {
|
|
21696
|
+
destination: { type: "string" },
|
|
21697
|
+
destinationType: { type: "string" },
|
|
21698
|
+
bindingVersion: { type: "string" }
|
|
21699
|
+
},
|
|
21700
|
+
description: "Protocol-specific information for a JMS channel."
|
|
21701
|
+
};
|
|
21702
|
+
var JmsServerBindingProperty = {
|
|
21703
|
+
properties: {
|
|
21704
|
+
name: { type: "string" },
|
|
21705
|
+
value: {}
|
|
21706
|
+
},
|
|
21707
|
+
required: ["name", "value"],
|
|
21708
|
+
description: "A name-value pair to set on the JMS ConnectionFactory implementation."
|
|
21709
|
+
};
|
|
21710
|
+
var JmsServerBinding = {
|
|
21711
|
+
properties: {
|
|
21712
|
+
jmsConnectionFactory: { type: "string" },
|
|
21713
|
+
properties: listOf("JmsServerBindingProperty"),
|
|
21714
|
+
clientID: { type: "string" },
|
|
21715
|
+
bindingVersion: { type: "string" }
|
|
21716
|
+
},
|
|
21717
|
+
required: ["jmsConnectionFactory"],
|
|
21718
|
+
description: "Protocol-specific information for a JMS server."
|
|
21719
|
+
};
|
|
21720
|
+
var JmsMessageBinding = {
|
|
21721
|
+
properties: {
|
|
21722
|
+
headers: "Schema",
|
|
21723
|
+
bindingVersion: { type: "string" }
|
|
21724
|
+
},
|
|
21725
|
+
description: "Protocol-specific information for a JMS message."
|
|
21726
|
+
};
|
|
21727
|
+
var JmsOperationBinding = {
|
|
21728
|
+
properties: {},
|
|
21729
|
+
// empty object
|
|
21730
|
+
description: "Protocol-specific information for a JMS operation."
|
|
21731
|
+
};
|
|
21732
|
+
var SolaceChannelBinding = {
|
|
21733
|
+
properties: {},
|
|
21734
|
+
// empty object
|
|
21735
|
+
description: "Protocol-specific information for a Solace channel."
|
|
21736
|
+
};
|
|
21737
|
+
var SolaceServerBinding = {
|
|
21738
|
+
properties: {
|
|
21739
|
+
bindingVersion: { type: "string" },
|
|
21740
|
+
msgVpn: { type: "string" },
|
|
21741
|
+
clientName: { type: "string" }
|
|
21742
|
+
},
|
|
21743
|
+
description: "Protocol-specific information for a Solace server."
|
|
21744
|
+
};
|
|
21745
|
+
var SolaceMessageBinding = {
|
|
21746
|
+
properties: {},
|
|
21747
|
+
// empty object
|
|
21748
|
+
description: "Protocol-specific information for a Solace message."
|
|
21749
|
+
};
|
|
21750
|
+
var SolaceDestination = {
|
|
21751
|
+
properties: {
|
|
21752
|
+
destinationType: { type: "string", enum: ["queue", "topic"] },
|
|
21753
|
+
deliveryMode: { type: "string", enum: ["direct", "persistent"] },
|
|
21754
|
+
"queue.name": { type: "string" },
|
|
21755
|
+
"queue.topicSubscriptions": { type: "array", items: { type: "string" } },
|
|
21756
|
+
"queue.accessType": { type: "string", enum: ["exclusive", "nonexclusive"] },
|
|
21757
|
+
"queue.maxMsgSpoolSize": { type: "string" },
|
|
21758
|
+
"queue.maxMsgSpoolUsage": { type: "string" },
|
|
21759
|
+
"queue.maxTtl": { type: "string" },
|
|
21760
|
+
"topic.topicSubscriptions": { type: "array", items: { type: "string" } }
|
|
21761
|
+
}
|
|
21762
|
+
};
|
|
21763
|
+
var SolaceOperationBinding = {
|
|
21764
|
+
properties: {
|
|
21765
|
+
bindingVersion: { type: "string" },
|
|
21766
|
+
destinations: listOf("SolaceDestination"),
|
|
21767
|
+
dmqEligible: { type: "boolean" },
|
|
21768
|
+
priority: { type: "integer", minimum: 0 },
|
|
21769
|
+
timeToLive: { type: "integer" }
|
|
21770
|
+
},
|
|
21771
|
+
description: "Protocol-specific information for a Solace operation."
|
|
21772
|
+
};
|
|
21773
|
+
var SnsIdentifier = {
|
|
21774
|
+
properties: {
|
|
21775
|
+
url: { type: "string" },
|
|
21776
|
+
email: { type: "string" },
|
|
21777
|
+
phone: { type: "string" },
|
|
21778
|
+
arn: { type: "string" },
|
|
21779
|
+
name: { type: "string" }
|
|
21780
|
+
},
|
|
21781
|
+
description: "Identifies an SNS resource: exactly one of url, email, phone, arn, or name."
|
|
21782
|
+
};
|
|
21783
|
+
var SnsOrdering = {
|
|
21784
|
+
properties: {
|
|
21785
|
+
type: { type: "string", enum: ["standard", "FIFO"] },
|
|
21786
|
+
contentBasedDeduplication: { type: "boolean" }
|
|
21787
|
+
},
|
|
21788
|
+
required: ["type"],
|
|
21789
|
+
description: "Defines the ordering and deduplication properties of an SNS topic."
|
|
21790
|
+
};
|
|
21791
|
+
var SnsStatement = {
|
|
21792
|
+
properties: {
|
|
21793
|
+
effect: { type: "string", enum: ["Allow", "Deny"] },
|
|
21794
|
+
principal: {},
|
|
21795
|
+
action: {},
|
|
21796
|
+
resource: {},
|
|
21797
|
+
condition: { type: "object" }
|
|
21798
|
+
},
|
|
21799
|
+
required: ["effect", "principal", "action"],
|
|
21800
|
+
description: "An SNS access-policy statement."
|
|
21801
|
+
};
|
|
21802
|
+
var SnsPolicy = {
|
|
21803
|
+
properties: {
|
|
21804
|
+
statements: listOf("SnsStatement")
|
|
21805
|
+
},
|
|
21806
|
+
required: ["statements"],
|
|
21807
|
+
description: "The security policy for an SNS topic."
|
|
21808
|
+
};
|
|
21809
|
+
var SnsChannelBinding = {
|
|
21810
|
+
properties: {
|
|
21811
|
+
name: { type: "string" },
|
|
21812
|
+
ordering: "SnsOrdering",
|
|
21813
|
+
policy: "SnsPolicy",
|
|
21814
|
+
tags: { type: "object" },
|
|
21815
|
+
bindingVersion: { type: "string" }
|
|
21816
|
+
},
|
|
21817
|
+
required: ["name"],
|
|
21818
|
+
description: "Protocol-specific information for an SNS channel."
|
|
21819
|
+
};
|
|
21820
|
+
var SnsRedrivePolicy = {
|
|
21821
|
+
properties: {
|
|
21822
|
+
deadLetterQueue: "SnsIdentifier",
|
|
21823
|
+
maxReceiveCount: { type: "integer" }
|
|
21824
|
+
},
|
|
21825
|
+
required: ["deadLetterQueue"],
|
|
21826
|
+
description: "Defines where unprocessable SNS messages are moved."
|
|
21827
|
+
};
|
|
21828
|
+
var SnsDeliveryPolicy = {
|
|
21829
|
+
properties: {
|
|
21830
|
+
minDelayTarget: { type: "integer" },
|
|
21831
|
+
maxDelayTarget: { type: "integer" },
|
|
21832
|
+
numRetries: { type: "integer" },
|
|
21833
|
+
numNoDelayRetries: { type: "integer" },
|
|
21834
|
+
numMinDelayRetries: { type: "integer" },
|
|
21835
|
+
numMaxDelayRetries: { type: "integer" },
|
|
21836
|
+
backoffFunction: {
|
|
21837
|
+
type: "string",
|
|
21838
|
+
enum: ["arithmetic", "exponential", "geometric", "linear"]
|
|
21839
|
+
},
|
|
21840
|
+
maxReceivesPerSecond: { type: "integer" }
|
|
21841
|
+
},
|
|
21842
|
+
description: "Defines how SNS retries the delivery of messages to a subscription endpoint."
|
|
21843
|
+
};
|
|
21844
|
+
var SnsConsumer = {
|
|
21845
|
+
properties: {
|
|
21846
|
+
protocol: {
|
|
21847
|
+
type: "string",
|
|
21848
|
+
enum: [
|
|
21849
|
+
"http",
|
|
21850
|
+
"https",
|
|
21851
|
+
"email",
|
|
21852
|
+
"email-json",
|
|
21853
|
+
"sms",
|
|
21854
|
+
"sqs",
|
|
21855
|
+
"application",
|
|
21856
|
+
"lambda",
|
|
21857
|
+
"firehose"
|
|
21858
|
+
]
|
|
21859
|
+
},
|
|
21860
|
+
endpoint: "SnsIdentifier",
|
|
21861
|
+
filterPolicy: { type: "object" },
|
|
21862
|
+
filterPolicyScope: { type: "string", enum: ["MessageAttributes", "MessageBody"] },
|
|
21863
|
+
rawMessageDelivery: { type: "boolean" },
|
|
21864
|
+
redrivePolicy: "SnsRedrivePolicy",
|
|
21865
|
+
deliveryPolicy: "SnsDeliveryPolicy",
|
|
21866
|
+
displayName: { type: "string" }
|
|
21867
|
+
},
|
|
21868
|
+
required: ["protocol", "endpoint", "rawMessageDelivery"],
|
|
21869
|
+
description: "Describes an SNS subscription consuming messages from a topic."
|
|
21870
|
+
};
|
|
21871
|
+
var SnsOperationBinding = {
|
|
21872
|
+
properties: {
|
|
21873
|
+
topic: "SnsIdentifier",
|
|
21874
|
+
consumers: listOf("SnsConsumer"),
|
|
21875
|
+
deliveryPolicy: "SnsDeliveryPolicy",
|
|
21876
|
+
bindingVersion: { type: "string" }
|
|
21877
|
+
},
|
|
21878
|
+
required: ["consumers"],
|
|
21879
|
+
description: "Protocol-specific information for an SNS operation."
|
|
21880
|
+
};
|
|
21881
|
+
var SqsIdentifier = {
|
|
21882
|
+
properties: {
|
|
21883
|
+
arn: { type: "string" },
|
|
21884
|
+
name: { type: "string" }
|
|
21885
|
+
},
|
|
21886
|
+
description: "Identifies an SQS queue: exactly one of arn or name."
|
|
21887
|
+
};
|
|
21888
|
+
var SqsRedrivePolicy = {
|
|
21889
|
+
properties: {
|
|
21890
|
+
deadLetterQueue: "SqsIdentifier",
|
|
21891
|
+
maxReceiveCount: { type: "integer" }
|
|
21892
|
+
},
|
|
21893
|
+
required: ["deadLetterQueue"],
|
|
21894
|
+
description: "Defines where unprocessable SQS messages are moved."
|
|
21895
|
+
};
|
|
21896
|
+
var SqsStatement = {
|
|
21897
|
+
properties: {
|
|
21898
|
+
effect: { type: "string", enum: ["Allow", "Deny"] },
|
|
21899
|
+
principal: {},
|
|
21900
|
+
action: {},
|
|
21901
|
+
resource: {},
|
|
21902
|
+
condition: { type: "object" }
|
|
21903
|
+
},
|
|
21904
|
+
required: ["effect", "principal", "action"],
|
|
21905
|
+
description: "An SQS access-policy statement."
|
|
21906
|
+
};
|
|
21907
|
+
var SqsPolicy = {
|
|
21908
|
+
properties: {
|
|
21909
|
+
statements: listOf("SqsStatement")
|
|
21910
|
+
},
|
|
21911
|
+
required: ["statements"],
|
|
21912
|
+
description: "The security policy for an SQS queue."
|
|
21913
|
+
};
|
|
21914
|
+
var SqsQueue = {
|
|
21915
|
+
properties: {
|
|
21916
|
+
name: { type: "string" },
|
|
21917
|
+
fifoQueue: { type: "boolean" },
|
|
21918
|
+
deduplicationScope: { type: "string", enum: ["queue", "messageGroup"] },
|
|
21919
|
+
fifoThroughputLimit: { type: "string", enum: ["perQueue", "perMessageGroupId"] },
|
|
21920
|
+
deliveryDelay: { type: "integer" },
|
|
21921
|
+
visibilityTimeout: { type: "integer" },
|
|
21922
|
+
receiveMessageWaitTime: { type: "integer" },
|
|
21923
|
+
messageRetentionPeriod: { type: "integer" },
|
|
21924
|
+
redrivePolicy: "SqsRedrivePolicy",
|
|
21925
|
+
policy: "SqsPolicy",
|
|
21926
|
+
tags: { type: "object" }
|
|
21927
|
+
},
|
|
21928
|
+
required: ["name", "fifoQueue"],
|
|
21929
|
+
description: "Describes an SQS queue (channel-level definition)."
|
|
21930
|
+
};
|
|
21931
|
+
var SqsOperationQueue = {
|
|
21932
|
+
...SqsQueue,
|
|
21933
|
+
required: ["name"],
|
|
21934
|
+
description: "Describes an SQS queue (operation-level definition)."
|
|
21935
|
+
};
|
|
21936
|
+
var SqsChannelBinding = {
|
|
21937
|
+
properties: {
|
|
21938
|
+
queue: "SqsQueue",
|
|
21939
|
+
deadLetterQueue: "SqsQueue",
|
|
21940
|
+
bindingVersion: { type: "string" }
|
|
21941
|
+
},
|
|
21942
|
+
required: ["queue"],
|
|
21943
|
+
description: "Protocol-specific information for an SQS channel."
|
|
21944
|
+
};
|
|
21945
|
+
var SqsOperationBinding = {
|
|
21946
|
+
properties: {
|
|
21947
|
+
queues: listOf("SqsOperationQueue"),
|
|
21948
|
+
bindingVersion: { type: "string" }
|
|
21949
|
+
},
|
|
21950
|
+
required: ["queues"],
|
|
21951
|
+
description: "Protocol-specific information for an SQS operation."
|
|
21952
|
+
};
|
|
21953
|
+
var StompChannelBinding = {
|
|
21954
|
+
properties: {},
|
|
21955
|
+
// empty object
|
|
21956
|
+
description: "Protocol-specific information for a STOMP channel."
|
|
21957
|
+
};
|
|
21958
|
+
var StompServerBinding = {
|
|
21959
|
+
properties: {},
|
|
21960
|
+
// empty object
|
|
21961
|
+
description: "Protocol-specific information for a STOMP server."
|
|
21962
|
+
};
|
|
21963
|
+
var StompMessageBinding = {
|
|
21964
|
+
properties: {},
|
|
21965
|
+
// empty object
|
|
21966
|
+
description: "Protocol-specific information for a STOMP message."
|
|
21967
|
+
};
|
|
21968
|
+
var StompOperationBinding = {
|
|
21969
|
+
properties: {},
|
|
21970
|
+
// empty object
|
|
21971
|
+
description: "Protocol-specific information for a STOMP operation."
|
|
21972
|
+
};
|
|
21973
|
+
var RedisChannelBinding = {
|
|
21974
|
+
properties: {},
|
|
21975
|
+
// empty object
|
|
21976
|
+
description: "Protocol-specific information for a Redis channel."
|
|
21977
|
+
};
|
|
21978
|
+
var RedisServerBinding = {
|
|
21979
|
+
properties: {},
|
|
21980
|
+
// empty object
|
|
21981
|
+
description: "Protocol-specific information for a Redis server."
|
|
21982
|
+
};
|
|
21983
|
+
var RedisMessageBinding = {
|
|
21984
|
+
properties: {},
|
|
21985
|
+
// empty object
|
|
21986
|
+
description: "Protocol-specific information for a Redis message."
|
|
21987
|
+
};
|
|
21988
|
+
var RedisOperationBinding = {
|
|
21989
|
+
properties: {},
|
|
21990
|
+
// empty object
|
|
21991
|
+
description: "Protocol-specific information for a Redis operation."
|
|
21992
|
+
};
|
|
21993
|
+
var MercureChannelBinding = {
|
|
21994
|
+
properties: {},
|
|
21995
|
+
// empty object
|
|
21996
|
+
description: "Protocol-specific information for a Mercure channel."
|
|
21997
|
+
};
|
|
21998
|
+
var MercureServerBinding = {
|
|
21999
|
+
properties: {},
|
|
22000
|
+
// empty object
|
|
22001
|
+
description: "Protocol-specific information for a Mercure server."
|
|
22002
|
+
};
|
|
22003
|
+
var MercureMessageBinding = {
|
|
22004
|
+
properties: {},
|
|
22005
|
+
// empty object
|
|
22006
|
+
description: "Protocol-specific information for a Mercure message."
|
|
22007
|
+
};
|
|
22008
|
+
var MercureOperationBinding = {
|
|
22009
|
+
properties: {},
|
|
22010
|
+
// empty object
|
|
22011
|
+
description: "Protocol-specific information for a Mercure operation."
|
|
22012
|
+
};
|
|
22013
|
+
var IbmmqServerBinding = {
|
|
22014
|
+
properties: {
|
|
22015
|
+
groupId: { type: "string" },
|
|
22016
|
+
ccdtQueueManagerName: { type: "string" },
|
|
22017
|
+
cipherSpec: { type: "string" },
|
|
22018
|
+
multiEndpointServer: { type: "boolean" },
|
|
22019
|
+
heartBeatInterval: { type: "integer" },
|
|
22020
|
+
bindingVersion: { type: "string" }
|
|
22021
|
+
},
|
|
22022
|
+
description: "Protocol-specific information for an IBM MQ server."
|
|
22023
|
+
};
|
|
22024
|
+
var IbmmqChannelQueue = {
|
|
22025
|
+
properties: {
|
|
22026
|
+
objectName: { type: "string" },
|
|
22027
|
+
isPartitioned: { type: "boolean" },
|
|
22028
|
+
exclusive: { type: "boolean" }
|
|
22029
|
+
},
|
|
22030
|
+
required: ["objectName"],
|
|
22031
|
+
description: "Defines the properties of an IBM MQ queue."
|
|
22032
|
+
};
|
|
22033
|
+
var IbmmqChannelTopic = {
|
|
22034
|
+
properties: {
|
|
22035
|
+
string: { type: "string" },
|
|
22036
|
+
objectName: { type: "string" },
|
|
22037
|
+
durablePermitted: { type: "boolean" },
|
|
22038
|
+
lastMsgRetained: { type: "boolean" }
|
|
22039
|
+
},
|
|
22040
|
+
description: "Defines the properties of an IBM MQ topic."
|
|
22041
|
+
};
|
|
22042
|
+
var IbmmqChannelBinding = {
|
|
22043
|
+
properties: {
|
|
22044
|
+
destinationType: { type: "string", enum: ["topic", "queue"] },
|
|
22045
|
+
queue: "IbmmqChannelQueue",
|
|
22046
|
+
topic: "IbmmqChannelTopic",
|
|
22047
|
+
maxMsgLength: { type: "integer" },
|
|
22048
|
+
bindingVersion: { type: "string" }
|
|
22049
|
+
},
|
|
22050
|
+
description: "Protocol-specific information for an IBM MQ channel."
|
|
22051
|
+
};
|
|
22052
|
+
var IbmmqMessageBinding = {
|
|
22053
|
+
properties: {
|
|
22054
|
+
type: { type: "string", enum: ["string", "jms", "binary"] },
|
|
22055
|
+
headers: { type: "string" },
|
|
22056
|
+
description: { type: "string" },
|
|
22057
|
+
expiry: { type: "integer" },
|
|
22058
|
+
bindingVersion: { type: "string" }
|
|
22059
|
+
},
|
|
22060
|
+
description: "Protocol-specific information for an IBM MQ message."
|
|
22061
|
+
};
|
|
22062
|
+
var GooglepubsubMessageStoragePolicy = {
|
|
22063
|
+
properties: {
|
|
22064
|
+
allowedPersistenceRegions: { type: "array", items: { type: "string" } }
|
|
22065
|
+
},
|
|
22066
|
+
description: "Policy constraining the regions where Google Cloud Pub/Sub messages are stored."
|
|
22067
|
+
};
|
|
22068
|
+
var GooglepubsubSchemaSettings = {
|
|
22069
|
+
properties: {
|
|
22070
|
+
encoding: { type: "string" },
|
|
22071
|
+
firstRevisionId: { type: "string" },
|
|
22072
|
+
lastRevisionId: { type: "string" },
|
|
22073
|
+
name: { type: "string" }
|
|
22074
|
+
},
|
|
22075
|
+
required: ["encoding", "name"],
|
|
22076
|
+
description: "Settings for validating Google Cloud Pub/Sub messages against a schema."
|
|
22077
|
+
};
|
|
22078
|
+
var GooglepubsubChannelBinding = {
|
|
22079
|
+
properties: {
|
|
22080
|
+
labels: { type: "object" },
|
|
22081
|
+
messageRetentionDuration: { type: "string" },
|
|
22082
|
+
messageStoragePolicy: "GooglepubsubMessageStoragePolicy",
|
|
22083
|
+
schemaSettings: "GooglepubsubSchemaSettings",
|
|
22084
|
+
topic: { type: "string" },
|
|
22085
|
+
// only in bindingVersion 0.1.0
|
|
22086
|
+
bindingVersion: { type: "string" }
|
|
22087
|
+
},
|
|
22088
|
+
description: "Protocol-specific information for a Google Cloud Pub/Sub channel."
|
|
22089
|
+
};
|
|
22090
|
+
var GooglepubsubSchema = {
|
|
22091
|
+
properties: {
|
|
22092
|
+
name: { type: "string" },
|
|
22093
|
+
type: { type: "string" }
|
|
22094
|
+
// bindingVersion 0.1.0
|
|
22095
|
+
},
|
|
22096
|
+
required: ["name"],
|
|
22097
|
+
description: "Identifies the Google Cloud Pub/Sub schema a message is validated against."
|
|
22098
|
+
};
|
|
22099
|
+
var GooglepubsubMessageBinding = {
|
|
22100
|
+
properties: {
|
|
22101
|
+
attributes: { type: "object" },
|
|
22102
|
+
orderingKey: { type: "string" },
|
|
22103
|
+
schema: "GooglepubsubSchema",
|
|
22104
|
+
bindingVersion: { type: "string" }
|
|
22105
|
+
},
|
|
22106
|
+
description: "Protocol-specific information for a Google Cloud Pub/Sub message."
|
|
22107
|
+
};
|
|
22108
|
+
var PulsarServerBinding = {
|
|
22109
|
+
properties: {
|
|
22110
|
+
tenant: { type: "string" },
|
|
22111
|
+
bindingVersion: { type: "string" }
|
|
22112
|
+
},
|
|
22113
|
+
description: "Protocol-specific information for a Pulsar server."
|
|
22114
|
+
};
|
|
22115
|
+
var PulsarRetention = {
|
|
22116
|
+
properties: {
|
|
22117
|
+
time: { type: "integer" },
|
|
22118
|
+
size: { type: "integer" }
|
|
22119
|
+
},
|
|
22120
|
+
description: "The retention policy of a Pulsar topic."
|
|
22121
|
+
};
|
|
22122
|
+
var PulsarChannelBinding = {
|
|
22123
|
+
properties: {
|
|
22124
|
+
namespace: { type: "string" },
|
|
22125
|
+
persistence: { type: "string", enum: ["persistent", "non-persistent"] },
|
|
22126
|
+
compaction: { type: "integer" },
|
|
22127
|
+
"geo-replication": { type: "array", items: { type: "string" } },
|
|
22128
|
+
retention: "PulsarRetention",
|
|
22129
|
+
ttl: { type: "integer" },
|
|
22130
|
+
deduplication: { type: "boolean" },
|
|
22131
|
+
bindingVersion: { type: "string" }
|
|
22132
|
+
},
|
|
22133
|
+
required: ["namespace", "persistence"],
|
|
22134
|
+
description: "Protocol-specific information for a Pulsar channel."
|
|
22135
|
+
};
|
|
22136
|
+
var Ros2ServerBinding = {
|
|
22137
|
+
properties: {
|
|
22138
|
+
rmwImplementation: { type: "string" },
|
|
22139
|
+
domainId: { type: "integer", minimum: 0 }
|
|
22140
|
+
},
|
|
22141
|
+
description: "Protocol-specific information for a ROS 2 server."
|
|
22142
|
+
};
|
|
22143
|
+
var Ros2ChannelBinding = {
|
|
22144
|
+
properties: {},
|
|
22145
|
+
description: "Protocol-specific information for a ROS 2 channel."
|
|
22146
|
+
};
|
|
22147
|
+
var Ros2QosPolicies = {
|
|
22148
|
+
properties: {
|
|
22149
|
+
reliability: { type: "string", enum: ["best_effort", "reliable"] },
|
|
22150
|
+
history: { type: "string", enum: ["keep_last", "keep_all", "unknown"] },
|
|
22151
|
+
durability: { type: "string", enum: ["transient_local", "volatile"] },
|
|
22152
|
+
lifespan: { type: "integer" },
|
|
22153
|
+
deadline: { type: "integer" },
|
|
22154
|
+
liveliness: { type: "string", enum: ["automatic", "manual"] },
|
|
22155
|
+
leaseDuration: { type: "integer" }
|
|
22156
|
+
},
|
|
22157
|
+
description: "Quality of Service settings for a ROS 2 operation."
|
|
22158
|
+
};
|
|
22159
|
+
var Ros2OperationBinding = {
|
|
22160
|
+
properties: {
|
|
22161
|
+
role: {
|
|
22162
|
+
type: "string",
|
|
22163
|
+
enum: [
|
|
22164
|
+
"publisher",
|
|
22165
|
+
"subscriber",
|
|
22166
|
+
"service_client",
|
|
22167
|
+
"service_server",
|
|
22168
|
+
"action_client",
|
|
22169
|
+
"action_server"
|
|
22170
|
+
]
|
|
22171
|
+
},
|
|
22172
|
+
node: { type: "string" },
|
|
22173
|
+
qosPolicies: "Ros2QosPolicies",
|
|
22174
|
+
bindingVersion: { type: "string" }
|
|
22175
|
+
},
|
|
22176
|
+
description: "Protocol-specific information for a ROS 2 operation."
|
|
22177
|
+
};
|
|
22178
|
+
var Ros2MessageBinding = {
|
|
22179
|
+
properties: {},
|
|
22180
|
+
description: "Protocol-specific information for a ROS 2 message."
|
|
22181
|
+
};
|
|
22182
|
+
var ServerBindings = {
|
|
22183
|
+
properties: {
|
|
22184
|
+
http: "HttpServerBinding",
|
|
22185
|
+
ws: "WsServerBinding",
|
|
22186
|
+
kafka: "KafkaServerBinding",
|
|
22187
|
+
anypointmq: "AnypointmqServerBinding",
|
|
22188
|
+
amqp: "AmqpServerBinding",
|
|
22189
|
+
amqp1: "Amqp1ServerBinding",
|
|
22190
|
+
mqtt: "MqttServerBinding",
|
|
22191
|
+
mqtt5: "Mqtt5ServerBinding",
|
|
22192
|
+
nats: "NatsServerBinding",
|
|
22193
|
+
jms: "JmsServerBinding",
|
|
22194
|
+
solace: "SolaceServerBinding",
|
|
22195
|
+
stomp: "StompServerBinding",
|
|
22196
|
+
redis: "RedisServerBinding",
|
|
22197
|
+
mercure: "MercureServerBinding",
|
|
22198
|
+
ibmmq: "IbmmqServerBinding",
|
|
22199
|
+
pulsar: "PulsarServerBinding"
|
|
22200
|
+
},
|
|
22201
|
+
additionalProperties: { type: "object" },
|
|
22202
|
+
description: "Map describing protocol-specific definitions for a server."
|
|
22203
|
+
};
|
|
22204
|
+
var ChannelBindings = {
|
|
22205
|
+
properties: {
|
|
22206
|
+
http: "HttpChannelBinding",
|
|
22207
|
+
ws: "WsChannelBinding",
|
|
22208
|
+
kafka: "KafkaChannelBinding",
|
|
22209
|
+
anypointmq: "AnypointmqChannelBinding",
|
|
22210
|
+
amqp: "AmqpChannelBinding",
|
|
22211
|
+
amqp1: "Amqp1ChannelBinding",
|
|
22212
|
+
mqtt: "MqttChannelBinding",
|
|
22213
|
+
mqtt5: "Mqtt5ChannelBinding",
|
|
22214
|
+
nats: "NatsChannelBinding",
|
|
22215
|
+
jms: "JmsChannelBinding",
|
|
22216
|
+
solace: "SolaceChannelBinding",
|
|
22217
|
+
stomp: "StompChannelBinding",
|
|
22218
|
+
redis: "RedisChannelBinding",
|
|
22219
|
+
mercure: "MercureChannelBinding",
|
|
22220
|
+
sns: "SnsChannelBinding",
|
|
22221
|
+
sqs: "SqsChannelBinding",
|
|
22222
|
+
ibmmq: "IbmmqChannelBinding",
|
|
22223
|
+
googlepubsub: "GooglepubsubChannelBinding",
|
|
22224
|
+
pulsar: "PulsarChannelBinding"
|
|
22225
|
+
},
|
|
22226
|
+
additionalProperties: { type: "object" },
|
|
22227
|
+
description: "Map describing protocol-specific definitions for a channel."
|
|
22228
|
+
};
|
|
22229
|
+
var OperationBindings = {
|
|
22230
|
+
properties: {
|
|
22231
|
+
http: "HttpOperationBinding",
|
|
22232
|
+
ws: "WsOperationBinding",
|
|
22233
|
+
kafka: "KafkaOperationBinding",
|
|
22234
|
+
anypointmq: "AnypointmqOperationBinding",
|
|
22235
|
+
amqp: "AmqpOperationBinding",
|
|
22236
|
+
amqp1: "Amqp1OperationBinding",
|
|
22237
|
+
mqtt: "MqttOperationBinding",
|
|
22238
|
+
mqtt5: "Mqtt5OperationBinding",
|
|
22239
|
+
nats: "NatsOperationBinding",
|
|
22240
|
+
jms: "JmsOperationBinding",
|
|
22241
|
+
solace: "SolaceOperationBinding",
|
|
22242
|
+
stomp: "StompOperationBinding",
|
|
22243
|
+
redis: "RedisOperationBinding",
|
|
22244
|
+
mercure: "MercureOperationBinding",
|
|
22245
|
+
sns: "SnsOperationBinding",
|
|
22246
|
+
sqs: "SqsOperationBinding"
|
|
22247
|
+
},
|
|
22248
|
+
additionalProperties: { type: "object" },
|
|
22249
|
+
description: "Map describing protocol-specific definitions for an operation."
|
|
22250
|
+
};
|
|
22251
|
+
var MessageBindings = {
|
|
22252
|
+
properties: {
|
|
22253
|
+
http: "HttpMessageBinding",
|
|
22254
|
+
ws: "WsMessageBinding",
|
|
22255
|
+
kafka: "KafkaMessageBinding",
|
|
22256
|
+
anypointmq: "AnypointmqMessageBinding",
|
|
22257
|
+
amqp: "AmqpMessageBinding",
|
|
22258
|
+
amqp1: "Amqp1MessageBinding",
|
|
22259
|
+
mqtt: "MqttMessageBinding",
|
|
22260
|
+
mqtt5: "Mqtt5MessageBinding",
|
|
22261
|
+
nats: "NatsMessageBinding",
|
|
22262
|
+
jms: "JmsMessageBinding",
|
|
22263
|
+
solace: "SolaceMessageBinding",
|
|
22264
|
+
stomp: "StompMessageBinding",
|
|
22265
|
+
redis: "RedisMessageBinding",
|
|
22266
|
+
mercure: "MercureMessageBinding",
|
|
22267
|
+
ibmmq: "IbmmqMessageBinding",
|
|
22268
|
+
googlepubsub: "GooglepubsubMessageBinding"
|
|
22269
|
+
},
|
|
22270
|
+
additionalProperties: { type: "object" },
|
|
22271
|
+
description: "Map describing protocol-specific definitions for a message."
|
|
22272
|
+
};
|
|
22273
|
+
var AsyncApiBindings = {
|
|
22274
|
+
HttpServerBinding,
|
|
22275
|
+
HttpChannelBinding,
|
|
22276
|
+
HttpMessageBinding,
|
|
22277
|
+
HttpOperationBinding,
|
|
22278
|
+
WsServerBinding,
|
|
22279
|
+
WsChannelBinding,
|
|
22280
|
+
WsMessageBinding,
|
|
22281
|
+
WsOperationBinding,
|
|
22282
|
+
KafkaServerBinding,
|
|
22283
|
+
KafkaTopicConfiguration,
|
|
22284
|
+
KafkaChannelBinding,
|
|
22285
|
+
KafkaMessageBinding,
|
|
22286
|
+
KafkaOperationBinding,
|
|
22287
|
+
AnypointmqServerBinding,
|
|
22288
|
+
AnypointmqChannelBinding,
|
|
22289
|
+
AnypointmqMessageBinding,
|
|
22290
|
+
AnypointmqOperationBinding,
|
|
22291
|
+
AmqpServerBinding,
|
|
22292
|
+
AmqpChannelExchange,
|
|
22293
|
+
AmqpChannelQueue,
|
|
22294
|
+
AmqpChannelBinding,
|
|
22295
|
+
AmqpMessageBinding,
|
|
22296
|
+
AmqpOperationBinding,
|
|
22297
|
+
Amqp1ServerBinding,
|
|
22298
|
+
Amqp1ChannelBinding,
|
|
22299
|
+
Amqp1MessageBinding,
|
|
22300
|
+
Amqp1OperationBinding,
|
|
22301
|
+
MqttServerBindingLastWill,
|
|
22302
|
+
MqttServerBinding,
|
|
22303
|
+
MqttChannelBinding,
|
|
22304
|
+
MqttMessageBinding,
|
|
22305
|
+
MqttOperationBinding,
|
|
22306
|
+
Mqtt5ServerBinding,
|
|
22307
|
+
Mqtt5ChannelBinding,
|
|
22308
|
+
Mqtt5MessageBinding,
|
|
22309
|
+
Mqtt5OperationBinding,
|
|
22310
|
+
NatsServerBinding,
|
|
22311
|
+
NatsChannelBinding,
|
|
22312
|
+
NatsMessageBinding,
|
|
22313
|
+
NatsOperationBinding,
|
|
22314
|
+
JmsServerBindingProperty,
|
|
22315
|
+
JmsServerBinding,
|
|
22316
|
+
JmsChannelBinding,
|
|
22317
|
+
JmsMessageBinding,
|
|
22318
|
+
JmsOperationBinding,
|
|
22319
|
+
SolaceServerBinding,
|
|
22320
|
+
SolaceChannelBinding,
|
|
22321
|
+
SolaceMessageBinding,
|
|
22322
|
+
SolaceDestination,
|
|
22323
|
+
SolaceOperationBinding,
|
|
22324
|
+
StompServerBinding,
|
|
22325
|
+
StompChannelBinding,
|
|
22326
|
+
StompMessageBinding,
|
|
22327
|
+
StompOperationBinding,
|
|
22328
|
+
RedisServerBinding,
|
|
22329
|
+
RedisChannelBinding,
|
|
22330
|
+
RedisMessageBinding,
|
|
22331
|
+
RedisOperationBinding,
|
|
22332
|
+
MercureServerBinding,
|
|
22333
|
+
MercureChannelBinding,
|
|
22334
|
+
MercureMessageBinding,
|
|
22335
|
+
MercureOperationBinding,
|
|
22336
|
+
SnsIdentifier,
|
|
22337
|
+
SnsOrdering,
|
|
22338
|
+
SnsStatement,
|
|
22339
|
+
SnsPolicy,
|
|
22340
|
+
SnsChannelBinding,
|
|
22341
|
+
SnsRedrivePolicy,
|
|
22342
|
+
SnsDeliveryPolicy,
|
|
22343
|
+
SnsConsumer,
|
|
22344
|
+
SnsOperationBinding,
|
|
22345
|
+
SqsIdentifier,
|
|
22346
|
+
SqsRedrivePolicy,
|
|
22347
|
+
SqsStatement,
|
|
22348
|
+
SqsPolicy,
|
|
22349
|
+
SqsQueue,
|
|
22350
|
+
SqsOperationQueue,
|
|
22351
|
+
SqsChannelBinding,
|
|
22352
|
+
SqsOperationBinding,
|
|
22353
|
+
IbmmqServerBinding,
|
|
22354
|
+
IbmmqChannelQueue,
|
|
22355
|
+
IbmmqChannelTopic,
|
|
22356
|
+
IbmmqChannelBinding,
|
|
22357
|
+
IbmmqMessageBinding,
|
|
22358
|
+
GooglepubsubMessageStoragePolicy,
|
|
22359
|
+
GooglepubsubSchemaSettings,
|
|
22360
|
+
GooglepubsubChannelBinding,
|
|
22361
|
+
GooglepubsubSchema,
|
|
22362
|
+
GooglepubsubMessageBinding,
|
|
22363
|
+
PulsarServerBinding,
|
|
22364
|
+
PulsarRetention,
|
|
22365
|
+
PulsarChannelBinding,
|
|
22366
|
+
ServerBindings,
|
|
22367
|
+
ChannelBindings,
|
|
22368
|
+
MessageBindings,
|
|
22369
|
+
OperationBindings
|
|
22370
|
+
};
|
|
22371
|
+
var Ros2Bindings = {
|
|
22372
|
+
Ros2ServerBinding,
|
|
22373
|
+
Ros2ChannelBinding,
|
|
22374
|
+
Ros2OperationBinding,
|
|
22375
|
+
Ros2QosPolicies,
|
|
22376
|
+
Ros2MessageBinding
|
|
22377
|
+
};
|
|
22378
|
+
|
|
21509
22379
|
// ../core/lib/types/json-schema-draft7.shared.js
|
|
21510
22380
|
var Schema5 = {
|
|
21511
22381
|
properties: {
|
|
@@ -21644,34 +22514,6 @@ var ChannelMap = {
|
|
|
21644
22514
|
properties: {},
|
|
21645
22515
|
additionalProperties: "Channel"
|
|
21646
22516
|
};
|
|
21647
|
-
var ChannelBindings = {
|
|
21648
|
-
properties: {},
|
|
21649
|
-
allowed() {
|
|
21650
|
-
return [
|
|
21651
|
-
"http",
|
|
21652
|
-
"ws",
|
|
21653
|
-
"kafka",
|
|
21654
|
-
"anypointmq",
|
|
21655
|
-
"amqp",
|
|
21656
|
-
"amqp1",
|
|
21657
|
-
"mqtt",
|
|
21658
|
-
"mqtt5",
|
|
21659
|
-
"nats",
|
|
21660
|
-
"jms",
|
|
21661
|
-
"sns",
|
|
21662
|
-
"solace",
|
|
21663
|
-
"sqs",
|
|
21664
|
-
"stomp",
|
|
21665
|
-
"redis",
|
|
21666
|
-
"mercure",
|
|
21667
|
-
"ibmmq",
|
|
21668
|
-
"googlepubsub",
|
|
21669
|
-
"pulsar"
|
|
21670
|
-
];
|
|
21671
|
-
},
|
|
21672
|
-
additionalProperties: { type: "object" },
|
|
21673
|
-
description: "Map describing protocol-specific definitions for a channel."
|
|
21674
|
-
};
|
|
21675
22517
|
var Tag4 = {
|
|
21676
22518
|
properties: {
|
|
21677
22519
|
name: { type: "string", description: "REQUIRED. The name of the tag." },
|
|
@@ -21703,34 +22545,6 @@ var SecurityRequirement3 = {
|
|
|
21703
22545
|
additionalProperties: { type: "array", items: { type: "string" } },
|
|
21704
22546
|
description: "Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object."
|
|
21705
22547
|
};
|
|
21706
|
-
var ServerBindings = {
|
|
21707
|
-
properties: {},
|
|
21708
|
-
allowed() {
|
|
21709
|
-
return [
|
|
21710
|
-
"http",
|
|
21711
|
-
"ws",
|
|
21712
|
-
"kafka",
|
|
21713
|
-
"anypointmq",
|
|
21714
|
-
"amqp",
|
|
21715
|
-
"amqp1",
|
|
21716
|
-
"mqtt",
|
|
21717
|
-
"mqtt5",
|
|
21718
|
-
"nats",
|
|
21719
|
-
"jms",
|
|
21720
|
-
"sns",
|
|
21721
|
-
"solace",
|
|
21722
|
-
"sqs",
|
|
21723
|
-
"stomp",
|
|
21724
|
-
"redis",
|
|
21725
|
-
"mercure",
|
|
21726
|
-
"ibmmq",
|
|
21727
|
-
"googlepubsub",
|
|
21728
|
-
"pulsar"
|
|
21729
|
-
];
|
|
21730
|
-
},
|
|
21731
|
-
additionalProperties: { type: "object" },
|
|
21732
|
-
description: "Map describing protocol-specific definitions for a server."
|
|
21733
|
-
};
|
|
21734
22548
|
var Server3 = {
|
|
21735
22549
|
properties: {
|
|
21736
22550
|
url: {
|
|
@@ -21915,62 +22729,6 @@ var Message = {
|
|
|
21915
22729
|
additionalProperties: {},
|
|
21916
22730
|
description: "Describes a message received on a given channel and operation."
|
|
21917
22731
|
};
|
|
21918
|
-
var MessageBindings = {
|
|
21919
|
-
properties: {},
|
|
21920
|
-
allowed() {
|
|
21921
|
-
return [
|
|
21922
|
-
"http",
|
|
21923
|
-
"ws",
|
|
21924
|
-
"kafka",
|
|
21925
|
-
"anypointmq",
|
|
21926
|
-
"amqp",
|
|
21927
|
-
"amqp1",
|
|
21928
|
-
"mqtt",
|
|
21929
|
-
"mqtt5",
|
|
21930
|
-
"nats",
|
|
21931
|
-
"jms",
|
|
21932
|
-
"sns",
|
|
21933
|
-
"solace",
|
|
21934
|
-
"sqs",
|
|
21935
|
-
"stomp",
|
|
21936
|
-
"redis",
|
|
21937
|
-
"mercure",
|
|
21938
|
-
"ibmmq",
|
|
21939
|
-
"googlepubsub",
|
|
21940
|
-
"pulsar"
|
|
21941
|
-
];
|
|
21942
|
-
},
|
|
21943
|
-
additionalProperties: { type: "object" },
|
|
21944
|
-
description: "Map describing protocol-specific definitions for a message."
|
|
21945
|
-
};
|
|
21946
|
-
var OperationBindings = {
|
|
21947
|
-
properties: {},
|
|
21948
|
-
allowed() {
|
|
21949
|
-
return [
|
|
21950
|
-
"http",
|
|
21951
|
-
"ws",
|
|
21952
|
-
"kafka",
|
|
21953
|
-
"anypointmq",
|
|
21954
|
-
"amqp",
|
|
21955
|
-
"amqp1",
|
|
21956
|
-
"mqtt",
|
|
21957
|
-
"mqtt5",
|
|
21958
|
-
"nats",
|
|
21959
|
-
"jms",
|
|
21960
|
-
"sns",
|
|
21961
|
-
"solace",
|
|
21962
|
-
"sqs",
|
|
21963
|
-
"stomp",
|
|
21964
|
-
"redis",
|
|
21965
|
-
"mercure",
|
|
21966
|
-
"ibmmq",
|
|
21967
|
-
"googlepubsub",
|
|
21968
|
-
"pulsar"
|
|
21969
|
-
];
|
|
21970
|
-
},
|
|
21971
|
-
additionalProperties: { type: "object" },
|
|
21972
|
-
description: "Map describing protocol-specific definitions for an operation."
|
|
21973
|
-
};
|
|
21974
22732
|
var OperationTrait = {
|
|
21975
22733
|
properties: {
|
|
21976
22734
|
tags: "TagList",
|
|
@@ -22226,511 +22984,8 @@ var SecurityScheme5 = {
|
|
|
22226
22984
|
extensionsPrefix: "x-",
|
|
22227
22985
|
description: "Defines a security scheme that can be used by the operations."
|
|
22228
22986
|
};
|
|
22229
|
-
var HttpChannelBinding = {
|
|
22230
|
-
properties: {},
|
|
22231
|
-
// empty object
|
|
22232
|
-
description: "Protocol-specific information for an HTTP channel."
|
|
22233
|
-
};
|
|
22234
|
-
ChannelBindings.properties.http = HttpChannelBinding;
|
|
22235
|
-
var HttpServerBinding = {
|
|
22236
|
-
properties: {},
|
|
22237
|
-
// empty object
|
|
22238
|
-
description: "Protocol-specific information for an HTTP server."
|
|
22239
|
-
};
|
|
22240
|
-
ServerBindings.properties.http = HttpServerBinding;
|
|
22241
|
-
var HttpMessageBinding = {
|
|
22242
|
-
properties: {
|
|
22243
|
-
headers: "Schema",
|
|
22244
|
-
bindingVersion: { type: "string" }
|
|
22245
|
-
},
|
|
22246
|
-
description: "Protocol-specific information for an HTTP message, i.e., a request or a response."
|
|
22247
|
-
};
|
|
22248
|
-
MessageBindings.properties.http = HttpMessageBinding;
|
|
22249
|
-
var HttpOperationBinding = {
|
|
22250
|
-
properties: {
|
|
22251
|
-
type: { type: "string" },
|
|
22252
|
-
method: {
|
|
22253
|
-
type: "string",
|
|
22254
|
-
enum: ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS", "CONNECT", "TRACE"]
|
|
22255
|
-
},
|
|
22256
|
-
headers: "Schema",
|
|
22257
|
-
bindingVersion: { type: "string" }
|
|
22258
|
-
},
|
|
22259
|
-
description: "Protocol-specific information for an HTTP operation."
|
|
22260
|
-
};
|
|
22261
|
-
OperationBindings.properties.http = HttpOperationBinding;
|
|
22262
|
-
var WsChannelBinding = {
|
|
22263
|
-
properties: {
|
|
22264
|
-
method: { type: "string" },
|
|
22265
|
-
query: "Schema",
|
|
22266
|
-
headers: "Schema",
|
|
22267
|
-
bindingVersion: { type: "string" }
|
|
22268
|
-
},
|
|
22269
|
-
description: "Protocol-specific information for a WebSockets channel."
|
|
22270
|
-
};
|
|
22271
|
-
ChannelBindings.properties.ws = WsChannelBinding;
|
|
22272
|
-
var WsServerBinding = {
|
|
22273
|
-
properties: {},
|
|
22274
|
-
// empty object
|
|
22275
|
-
description: "Protocol-specific information for a WebSockets server."
|
|
22276
|
-
};
|
|
22277
|
-
ServerBindings.properties.ws = WsServerBinding;
|
|
22278
|
-
var WsMessageBinding = {
|
|
22279
|
-
properties: {},
|
|
22280
|
-
// empty object
|
|
22281
|
-
description: "Protocol-specific information for a WebSockets message."
|
|
22282
|
-
};
|
|
22283
|
-
MessageBindings.properties.ws = WsMessageBinding;
|
|
22284
|
-
var WsOperationBinding = {
|
|
22285
|
-
properties: {},
|
|
22286
|
-
// empty object
|
|
22287
|
-
description: "Protocol-specific information for a WebSockets operation."
|
|
22288
|
-
};
|
|
22289
|
-
OperationBindings.properties.ws = WsOperationBinding;
|
|
22290
|
-
var KafkaTopicConfiguration = {
|
|
22291
|
-
properties: {
|
|
22292
|
-
"cleanup.policy": { type: "array", items: { enum: ["delete", "compact"] } },
|
|
22293
|
-
"retention.ms": { type: "integer" },
|
|
22294
|
-
"retention.bytes": { type: "integer" },
|
|
22295
|
-
"delete.retention.ms": { type: "integer" },
|
|
22296
|
-
"max.message.bytes": { type: "integer" }
|
|
22297
|
-
}
|
|
22298
|
-
};
|
|
22299
|
-
var KafkaChannelBinding = {
|
|
22300
|
-
properties: {
|
|
22301
|
-
topic: { type: "string" },
|
|
22302
|
-
partitions: { type: "integer" },
|
|
22303
|
-
replicas: { type: "integer" },
|
|
22304
|
-
topicConfiguration: "KafkaTopicConfiguration",
|
|
22305
|
-
bindingVersion: { type: "string" }
|
|
22306
|
-
},
|
|
22307
|
-
description: "Protocol-specific information for a Kafka channel."
|
|
22308
|
-
};
|
|
22309
|
-
ChannelBindings.properties.kafka = KafkaChannelBinding;
|
|
22310
|
-
var KafkaServerBinding = {
|
|
22311
|
-
properties: {},
|
|
22312
|
-
// empty object
|
|
22313
|
-
description: "Protocol-specific information for a Kafka server."
|
|
22314
|
-
};
|
|
22315
|
-
ServerBindings.properties.kafka = KafkaServerBinding;
|
|
22316
|
-
var KafkaMessageBinding = {
|
|
22317
|
-
properties: {
|
|
22318
|
-
key: "Schema",
|
|
22319
|
-
// TODO: add avro support
|
|
22320
|
-
schemaIdLocation: { type: "string" },
|
|
22321
|
-
schemaIdPayloadEncoding: { type: "string" },
|
|
22322
|
-
schemaLookupStrategy: { type: "string" },
|
|
22323
|
-
bindingVersion: { type: "string" }
|
|
22324
|
-
},
|
|
22325
|
-
description: "Protocol-specific information for a Kafka message."
|
|
22326
|
-
};
|
|
22327
|
-
MessageBindings.properties.kafka = KafkaMessageBinding;
|
|
22328
|
-
var KafkaOperationBinding = {
|
|
22329
|
-
properties: {
|
|
22330
|
-
groupId: "Schema",
|
|
22331
|
-
clientId: "Schema",
|
|
22332
|
-
bindingVersion: { type: "string" }
|
|
22333
|
-
},
|
|
22334
|
-
description: "Protocol-specific information for a Kafka operation."
|
|
22335
|
-
};
|
|
22336
|
-
OperationBindings.properties.kafka = KafkaOperationBinding;
|
|
22337
|
-
var AnypointmqChannelBinding = {
|
|
22338
|
-
properties: {
|
|
22339
|
-
destination: { type: "string" },
|
|
22340
|
-
destinationType: { type: "string" },
|
|
22341
|
-
bindingVersion: { type: "string" }
|
|
22342
|
-
},
|
|
22343
|
-
description: "Protocol-specific information for an Anypoint MQ channel."
|
|
22344
|
-
};
|
|
22345
|
-
ChannelBindings.properties.anypointmq = AnypointmqChannelBinding;
|
|
22346
|
-
var AnypointmqServerBinding = {
|
|
22347
|
-
properties: {},
|
|
22348
|
-
// empty object
|
|
22349
|
-
description: "Protocol-specific information for an Anypoint MQ server."
|
|
22350
|
-
};
|
|
22351
|
-
ServerBindings.properties.anypointmq = AnypointmqServerBinding;
|
|
22352
|
-
var AnypointmqMessageBinding = {
|
|
22353
|
-
properties: {
|
|
22354
|
-
headers: "Schema",
|
|
22355
|
-
bindingVersion: { type: "string" }
|
|
22356
|
-
},
|
|
22357
|
-
description: "Protocol-specific information for an Anypoint MQ message."
|
|
22358
|
-
};
|
|
22359
|
-
MessageBindings.properties.anypointmq = AnypointmqMessageBinding;
|
|
22360
|
-
var AnypointmqOperationBinding = {
|
|
22361
|
-
properties: {},
|
|
22362
|
-
// empty object
|
|
22363
|
-
description: "Protocol-specific information for an Anypoint MQ operation."
|
|
22364
|
-
};
|
|
22365
|
-
OperationBindings.properties.anypointmq = AnypointmqOperationBinding;
|
|
22366
|
-
var AmqpChannelBinding = {
|
|
22367
|
-
properties: {},
|
|
22368
|
-
// empty object
|
|
22369
|
-
description: "Protocol-specific information for an AMQP 0-9-1 channel."
|
|
22370
|
-
};
|
|
22371
|
-
ChannelBindings.properties.amqp = AmqpChannelBinding;
|
|
22372
|
-
var AmqpServerBinding = {
|
|
22373
|
-
properties: {},
|
|
22374
|
-
// empty object
|
|
22375
|
-
description: "Protocol-specific information for an AMQP 0-9-1 server."
|
|
22376
|
-
};
|
|
22377
|
-
ServerBindings.properties.amqp = AmqpServerBinding;
|
|
22378
|
-
var AmqpMessageBinding = {
|
|
22379
|
-
properties: {
|
|
22380
|
-
contentEncoding: { type: "string" },
|
|
22381
|
-
messageType: { type: "string" },
|
|
22382
|
-
bindingVersion: { type: "string" }
|
|
22383
|
-
},
|
|
22384
|
-
description: "Protocol-specific information for an AMQP 0-9-1 message."
|
|
22385
|
-
};
|
|
22386
|
-
MessageBindings.properties.amqp = AmqpMessageBinding;
|
|
22387
|
-
var AmqpOperationBinding = {
|
|
22388
|
-
// TODO: some fields are subscribe only
|
|
22389
|
-
properties: {
|
|
22390
|
-
expiration: { type: "integer" },
|
|
22391
|
-
userId: { type: "string" },
|
|
22392
|
-
cc: { type: "array", items: { type: "string" } },
|
|
22393
|
-
priority: { type: "integer" },
|
|
22394
|
-
deliveryMode: { type: "integer" },
|
|
22395
|
-
// TODO: enum: [1, 2]
|
|
22396
|
-
mandatory: { type: "boolean" },
|
|
22397
|
-
bcc: { type: "array", items: { type: "string" } },
|
|
22398
|
-
replyTo: { type: "string" },
|
|
22399
|
-
timestamp: { type: "boolean" },
|
|
22400
|
-
ack: { type: "boolean" },
|
|
22401
|
-
bindingVersion: { type: "string" }
|
|
22402
|
-
},
|
|
22403
|
-
description: "Protocol-specific information for an AMQP 0-9-1 operation."
|
|
22404
|
-
};
|
|
22405
|
-
OperationBindings.properties.amqp = AmqpOperationBinding;
|
|
22406
|
-
var Amqp1ChannelBinding = {
|
|
22407
|
-
properties: {},
|
|
22408
|
-
// empty object
|
|
22409
|
-
description: "Protocol-specific information for an AMQP 1.0 channel."
|
|
22410
|
-
};
|
|
22411
|
-
ChannelBindings.properties.amqp1 = Amqp1ChannelBinding;
|
|
22412
|
-
var Amqp1ServerBinding = {
|
|
22413
|
-
properties: {},
|
|
22414
|
-
// empty object
|
|
22415
|
-
description: "Protocol-specific information for an AMQP 1.0 server."
|
|
22416
|
-
};
|
|
22417
|
-
ServerBindings.properties.amqp1 = Amqp1ServerBinding;
|
|
22418
|
-
var Amqp1MessageBinding = {
|
|
22419
|
-
properties: {},
|
|
22420
|
-
// empty object
|
|
22421
|
-
description: "Binding Protocol-specific information for an AMQP 1.0 message."
|
|
22422
|
-
};
|
|
22423
|
-
MessageBindings.properties.amqp1 = Amqp1MessageBinding;
|
|
22424
|
-
var Amqp1OperationBinding = {
|
|
22425
|
-
properties: {},
|
|
22426
|
-
// empty object,
|
|
22427
|
-
description: "Protocol-specific information for an AMQP 1.0 operation."
|
|
22428
|
-
};
|
|
22429
|
-
OperationBindings.properties.amqp1 = Amqp1OperationBinding;
|
|
22430
|
-
var MqttChannelBinding = {
|
|
22431
|
-
properties: {
|
|
22432
|
-
qos: { type: "integer" },
|
|
22433
|
-
retain: { type: "boolean" },
|
|
22434
|
-
bindingVersion: { type: "string" }
|
|
22435
|
-
},
|
|
22436
|
-
description: "Protocol-specific information for an MQTT channel."
|
|
22437
|
-
};
|
|
22438
|
-
ChannelBindings.properties.mqtt = MqttChannelBinding;
|
|
22439
|
-
var MqttServerBindingLastWill = {
|
|
22440
|
-
properties: {
|
|
22441
|
-
topic: { type: "string" },
|
|
22442
|
-
qos: { type: "integer" },
|
|
22443
|
-
message: { type: "string" },
|
|
22444
|
-
retain: { type: "boolean" }
|
|
22445
|
-
}
|
|
22446
|
-
};
|
|
22447
|
-
var MqttServerBinding = {
|
|
22448
|
-
properties: {
|
|
22449
|
-
clientId: { type: "string" },
|
|
22450
|
-
cleanSession: { type: "boolean" },
|
|
22451
|
-
lastWill: "MqttServerBindingLastWill",
|
|
22452
|
-
keepAlive: { type: "integer" },
|
|
22453
|
-
bindingVersion: { type: "string" }
|
|
22454
|
-
},
|
|
22455
|
-
description: "Protocol-specific information for an MQTT server."
|
|
22456
|
-
};
|
|
22457
|
-
ServerBindings.properties.mqtt = MqttServerBinding;
|
|
22458
|
-
var MqttMessageBinding = {
|
|
22459
|
-
properties: {
|
|
22460
|
-
bindingVersion: { type: "string" }
|
|
22461
|
-
},
|
|
22462
|
-
description: "Protocol-specific information for an MQTT message."
|
|
22463
|
-
};
|
|
22464
|
-
MessageBindings.properties.mqtt = MqttMessageBinding;
|
|
22465
|
-
var MqttOperationBinding = {
|
|
22466
|
-
properties: {
|
|
22467
|
-
qos: { type: "integer" },
|
|
22468
|
-
retain: { type: "boolean" },
|
|
22469
|
-
bindingVersion: { type: "string" }
|
|
22470
|
-
},
|
|
22471
|
-
description: "Protocol-specific information for an MQTT operation."
|
|
22472
|
-
};
|
|
22473
|
-
OperationBindings.properties.mqtt = MqttOperationBinding;
|
|
22474
|
-
var Mqtt5ChannelBinding = {
|
|
22475
|
-
properties: {},
|
|
22476
|
-
// empty object
|
|
22477
|
-
description: "Protocol-specific information for an MQTT 5 channel."
|
|
22478
|
-
};
|
|
22479
|
-
ChannelBindings.properties.mqtt5 = Mqtt5ChannelBinding;
|
|
22480
|
-
var Mqtt5ServerBinding = {
|
|
22481
|
-
properties: {},
|
|
22482
|
-
// empty object
|
|
22483
|
-
description: "Protocol-specific information for an MQTT 5 server."
|
|
22484
|
-
};
|
|
22485
|
-
ServerBindings.properties.mqtt5 = Mqtt5ServerBinding;
|
|
22486
|
-
var Mqtt5MessageBinding = {
|
|
22487
|
-
properties: {},
|
|
22488
|
-
// empty object
|
|
22489
|
-
description: "Protocol-specific information for an MQTT 5 message."
|
|
22490
|
-
};
|
|
22491
|
-
MessageBindings.properties.mqtt5 = Mqtt5MessageBinding;
|
|
22492
|
-
var Mqtt5OperationBinding = {
|
|
22493
|
-
properties: {},
|
|
22494
|
-
// empty object
|
|
22495
|
-
description: "Protocol-specific information for an MQTT 5 operation."
|
|
22496
|
-
};
|
|
22497
|
-
OperationBindings.properties.mqtt5 = Mqtt5OperationBinding;
|
|
22498
|
-
var NatsChannelBinding = {
|
|
22499
|
-
properties: {},
|
|
22500
|
-
// empty object
|
|
22501
|
-
description: "Protocol-specific information for a NATS channel."
|
|
22502
|
-
};
|
|
22503
|
-
ChannelBindings.properties.nats = NatsChannelBinding;
|
|
22504
|
-
var NatsServerBinding = {
|
|
22505
|
-
properties: {},
|
|
22506
|
-
// empty object
|
|
22507
|
-
description: "Protocol-specific information for a NATS server."
|
|
22508
|
-
};
|
|
22509
|
-
ServerBindings.properties.nats = NatsServerBinding;
|
|
22510
|
-
var NatsMessageBinding = {
|
|
22511
|
-
properties: {},
|
|
22512
|
-
// empty object
|
|
22513
|
-
description: "Protocol-specific information for a NATS message."
|
|
22514
|
-
};
|
|
22515
|
-
MessageBindings.properties.nats = NatsMessageBinding;
|
|
22516
|
-
var NatsOperationBinding = {
|
|
22517
|
-
properties: {
|
|
22518
|
-
queue: { type: "string" },
|
|
22519
|
-
bindingVersion: { type: "string" }
|
|
22520
|
-
},
|
|
22521
|
-
description: "Protocol-specific information for a NATS operation."
|
|
22522
|
-
};
|
|
22523
|
-
OperationBindings.properties.nats = NatsOperationBinding;
|
|
22524
|
-
var JmsChannelBinding = {
|
|
22525
|
-
properties: {
|
|
22526
|
-
destination: { type: "string" },
|
|
22527
|
-
destinationType: { type: "string" },
|
|
22528
|
-
bindingVersion: { type: "string" }
|
|
22529
|
-
},
|
|
22530
|
-
description: "Protocol-specific information for a JMS channel."
|
|
22531
|
-
};
|
|
22532
|
-
ChannelBindings.properties.jms = JmsChannelBinding;
|
|
22533
|
-
var JmsServerBinding = {
|
|
22534
|
-
properties: {},
|
|
22535
|
-
// empty object
|
|
22536
|
-
description: "Protocol-specific information for a JMS server."
|
|
22537
|
-
};
|
|
22538
|
-
ServerBindings.properties.jms = JmsServerBinding;
|
|
22539
|
-
var JmsMessageBinding = {
|
|
22540
|
-
properties: {
|
|
22541
|
-
headers: "Schema",
|
|
22542
|
-
bindingVersion: { type: "string" }
|
|
22543
|
-
},
|
|
22544
|
-
description: "Protocol-specific information for a JMS message."
|
|
22545
|
-
};
|
|
22546
|
-
MessageBindings.properties.jms = JmsMessageBinding;
|
|
22547
|
-
var JmsOperationBinding = {
|
|
22548
|
-
properties: {
|
|
22549
|
-
headers: "Schema",
|
|
22550
|
-
bindingVersion: { type: "string" }
|
|
22551
|
-
},
|
|
22552
|
-
description: "Protocol-specific information for a JMS operation."
|
|
22553
|
-
};
|
|
22554
|
-
OperationBindings.properties.jms = JmsOperationBinding;
|
|
22555
|
-
var SolaceChannelBinding = {
|
|
22556
|
-
properties: {},
|
|
22557
|
-
// empty object
|
|
22558
|
-
description: "Protocol-specific information for a Solace channel."
|
|
22559
|
-
};
|
|
22560
|
-
ChannelBindings.properties.solace = SolaceChannelBinding;
|
|
22561
|
-
var SolaceServerBinding = {
|
|
22562
|
-
properties: {
|
|
22563
|
-
bindingVersion: { type: "string" },
|
|
22564
|
-
msgVpn: { type: "string" }
|
|
22565
|
-
},
|
|
22566
|
-
description: "Protocol-specific information for a Solace message."
|
|
22567
|
-
};
|
|
22568
|
-
ServerBindings.properties.solace = SolaceServerBinding;
|
|
22569
|
-
var SolaceMessageBinding = {
|
|
22570
|
-
properties: {},
|
|
22571
|
-
// empty object
|
|
22572
|
-
description: "Protocol-specific information for a Solace message."
|
|
22573
|
-
};
|
|
22574
|
-
MessageBindings.properties.solace = SolaceMessageBinding;
|
|
22575
|
-
var SolaceDestination = {
|
|
22576
|
-
properties: {
|
|
22577
|
-
destinationType: { type: "string", enum: ["queue", "topic"] },
|
|
22578
|
-
deliveryMode: { type: "string", enum: ["direct", "persistent"] },
|
|
22579
|
-
"queue.name": { type: "string" },
|
|
22580
|
-
"queue.topicSubscriptions": { type: "array", items: { type: "string" } },
|
|
22581
|
-
"queue.accessType": { type: "string", enum: ["exclusive", "nonexclusive"] },
|
|
22582
|
-
"queue.maxMsgSpoolSize": { type: "string" },
|
|
22583
|
-
"queue.maxTtl": { type: "string" },
|
|
22584
|
-
"topic.topicSubscriptions": { type: "array", items: { type: "string" } }
|
|
22585
|
-
}
|
|
22586
|
-
};
|
|
22587
|
-
var SolaceOperationBinding = {
|
|
22588
|
-
properties: {
|
|
22589
|
-
bindingVersion: { type: "string" },
|
|
22590
|
-
destinations: listOf("SolaceDestination")
|
|
22591
|
-
},
|
|
22592
|
-
description: "Protocol-specific information for a Solace operation."
|
|
22593
|
-
};
|
|
22594
|
-
OperationBindings.properties.solace = SolaceOperationBinding;
|
|
22595
|
-
var StompChannelBinding = {
|
|
22596
|
-
properties: {},
|
|
22597
|
-
// empty object
|
|
22598
|
-
description: "Protocol-specific information for a STOMP channel."
|
|
22599
|
-
};
|
|
22600
|
-
ChannelBindings.properties.stomp = StompChannelBinding;
|
|
22601
|
-
var StompServerBinding = {
|
|
22602
|
-
properties: {},
|
|
22603
|
-
// empty object
|
|
22604
|
-
description: "Protocol-specific information for a STOMP server."
|
|
22605
|
-
};
|
|
22606
|
-
ServerBindings.properties.stomp = StompServerBinding;
|
|
22607
|
-
var StompMessageBinding = {
|
|
22608
|
-
properties: {},
|
|
22609
|
-
// empty object
|
|
22610
|
-
description: "Protocol-specific information for a STOMP message."
|
|
22611
|
-
};
|
|
22612
|
-
MessageBindings.properties.stomp = StompMessageBinding;
|
|
22613
|
-
var StompOperationBinding = {
|
|
22614
|
-
properties: {},
|
|
22615
|
-
// empty object
|
|
22616
|
-
description: "Protocol-specific information for a STOMP operation."
|
|
22617
|
-
};
|
|
22618
|
-
OperationBindings.properties.stomp = StompOperationBinding;
|
|
22619
|
-
var RedisChannelBinding = {
|
|
22620
|
-
properties: {},
|
|
22621
|
-
// empty object
|
|
22622
|
-
description: "Protocol-specific information for a Redis channel."
|
|
22623
|
-
};
|
|
22624
|
-
ChannelBindings.properties.redis = RedisChannelBinding;
|
|
22625
|
-
var RedisServerBinding = {
|
|
22626
|
-
properties: {},
|
|
22627
|
-
// empty object
|
|
22628
|
-
description: "Protocol-specific information for a Redis server."
|
|
22629
|
-
};
|
|
22630
|
-
ServerBindings.properties.redis = RedisServerBinding;
|
|
22631
|
-
var RedisMessageBinding = {
|
|
22632
|
-
properties: {},
|
|
22633
|
-
// empty object
|
|
22634
|
-
description: "Protocol-specific information for a Redis message."
|
|
22635
|
-
};
|
|
22636
|
-
MessageBindings.properties.redis = RedisMessageBinding;
|
|
22637
|
-
var RedisOperationBinding = {
|
|
22638
|
-
properties: {},
|
|
22639
|
-
// empty object
|
|
22640
|
-
description: "Protocol-specific information for a Redis operation."
|
|
22641
|
-
};
|
|
22642
|
-
OperationBindings.properties.redis = RedisOperationBinding;
|
|
22643
|
-
var MercureChannelBinding = {
|
|
22644
|
-
properties: {},
|
|
22645
|
-
// empty object
|
|
22646
|
-
description: "Protocol-specific information for a Mercure channel."
|
|
22647
|
-
};
|
|
22648
|
-
ChannelBindings.properties.mercure = MercureChannelBinding;
|
|
22649
|
-
var MercureServerBinding = {
|
|
22650
|
-
properties: {},
|
|
22651
|
-
// empty object
|
|
22652
|
-
description: "Protocol-specific information for a Mercure server."
|
|
22653
|
-
};
|
|
22654
|
-
ServerBindings.properties.mercure = MercureServerBinding;
|
|
22655
|
-
var MercureMessageBinding = {
|
|
22656
|
-
properties: {},
|
|
22657
|
-
// empty object
|
|
22658
|
-
description: "Protocol-specific information for a Mercure message."
|
|
22659
|
-
};
|
|
22660
|
-
MessageBindings.properties.mercure = MercureMessageBinding;
|
|
22661
|
-
var MercureOperationBinding = {
|
|
22662
|
-
properties: {},
|
|
22663
|
-
// empty object
|
|
22664
|
-
description: "Protocol-specific information for a Mercure operation."
|
|
22665
|
-
};
|
|
22666
|
-
OperationBindings.properties.mercure = MercureOperationBinding;
|
|
22667
|
-
var AsyncApi2Bindings = {
|
|
22668
|
-
HttpServerBinding,
|
|
22669
|
-
HttpChannelBinding,
|
|
22670
|
-
HttpMessageBinding,
|
|
22671
|
-
HttpOperationBinding,
|
|
22672
|
-
WsServerBinding,
|
|
22673
|
-
WsChannelBinding,
|
|
22674
|
-
WsMessageBinding,
|
|
22675
|
-
WsOperationBinding,
|
|
22676
|
-
KafkaServerBinding,
|
|
22677
|
-
KafkaTopicConfiguration,
|
|
22678
|
-
KafkaChannelBinding,
|
|
22679
|
-
KafkaMessageBinding,
|
|
22680
|
-
KafkaOperationBinding,
|
|
22681
|
-
AnypointmqServerBinding,
|
|
22682
|
-
AnypointmqChannelBinding,
|
|
22683
|
-
AnypointmqMessageBinding,
|
|
22684
|
-
AnypointmqOperationBinding,
|
|
22685
|
-
AmqpServerBinding,
|
|
22686
|
-
AmqpChannelBinding,
|
|
22687
|
-
AmqpMessageBinding,
|
|
22688
|
-
AmqpOperationBinding,
|
|
22689
|
-
Amqp1ServerBinding,
|
|
22690
|
-
Amqp1ChannelBinding,
|
|
22691
|
-
Amqp1MessageBinding,
|
|
22692
|
-
Amqp1OperationBinding,
|
|
22693
|
-
MqttServerBindingLastWill,
|
|
22694
|
-
MqttServerBinding,
|
|
22695
|
-
MqttChannelBinding,
|
|
22696
|
-
MqttMessageBinding,
|
|
22697
|
-
MqttOperationBinding,
|
|
22698
|
-
Mqtt5ServerBinding,
|
|
22699
|
-
Mqtt5ChannelBinding,
|
|
22700
|
-
Mqtt5MessageBinding,
|
|
22701
|
-
Mqtt5OperationBinding,
|
|
22702
|
-
NatsServerBinding,
|
|
22703
|
-
NatsChannelBinding,
|
|
22704
|
-
NatsMessageBinding,
|
|
22705
|
-
NatsOperationBinding,
|
|
22706
|
-
JmsServerBinding,
|
|
22707
|
-
JmsChannelBinding,
|
|
22708
|
-
JmsMessageBinding,
|
|
22709
|
-
JmsOperationBinding,
|
|
22710
|
-
SolaceServerBinding,
|
|
22711
|
-
SolaceChannelBinding,
|
|
22712
|
-
SolaceMessageBinding,
|
|
22713
|
-
SolaceDestination,
|
|
22714
|
-
SolaceOperationBinding,
|
|
22715
|
-
StompServerBinding,
|
|
22716
|
-
StompChannelBinding,
|
|
22717
|
-
StompMessageBinding,
|
|
22718
|
-
StompOperationBinding,
|
|
22719
|
-
RedisServerBinding,
|
|
22720
|
-
RedisChannelBinding,
|
|
22721
|
-
RedisMessageBinding,
|
|
22722
|
-
RedisOperationBinding,
|
|
22723
|
-
MercureServerBinding,
|
|
22724
|
-
MercureChannelBinding,
|
|
22725
|
-
MercureMessageBinding,
|
|
22726
|
-
MercureOperationBinding,
|
|
22727
|
-
ServerBindings,
|
|
22728
|
-
ChannelBindings,
|
|
22729
|
-
MessageBindings,
|
|
22730
|
-
OperationBindings
|
|
22731
|
-
};
|
|
22732
22987
|
var AsyncApi2Types = {
|
|
22733
|
-
...
|
|
22988
|
+
...AsyncApiBindings,
|
|
22734
22989
|
Root: Root5,
|
|
22735
22990
|
Tag: Tag4,
|
|
22736
22991
|
TagList: listOf("Tag"),
|
|
@@ -22769,8 +23024,6 @@ var AsyncApi2Types = {
|
|
|
22769
23024
|
SecuritySchemeFlows,
|
|
22770
23025
|
SecurityScheme: SecurityScheme5,
|
|
22771
23026
|
Message,
|
|
22772
|
-
MessageBindings,
|
|
22773
|
-
OperationBindings,
|
|
22774
23027
|
OperationTrait,
|
|
22775
23028
|
OperationTraitList: listOf("OperationTrait"),
|
|
22776
23029
|
MessageTrait,
|
|
@@ -22785,7 +23038,6 @@ var Root6 = {
|
|
|
22785
23038
|
properties: {
|
|
22786
23039
|
asyncapi: {
|
|
22787
23040
|
type: "string",
|
|
22788
|
-
enum: ["3.0.0"],
|
|
22789
23041
|
description: "REQUIRED. Specifies the AsyncAPI Specification version being used. It can be used by tooling Specifications and clients to interpret the version. The structure shall be major.minor.patch, where patch versions must be compatible with the existing major.minor tooling. Typically patch versions will be introduced to address errors in the documentation, and tooling should typically be compatible with the corresponding major.minor (1.0.*). Patch versions will correspond to patches of this document."
|
|
22790
23042
|
},
|
|
22791
23043
|
info: "Info",
|
|
@@ -23228,9 +23480,41 @@ var SecurityScheme6 = {
|
|
|
23228
23480
|
extensionsPrefix: "x-",
|
|
23229
23481
|
description: "Defines a security scheme that can be used by the operations."
|
|
23230
23482
|
};
|
|
23483
|
+
var ServerBindings2 = {
|
|
23484
|
+
...AsyncApiBindings.ServerBindings,
|
|
23485
|
+
properties: {
|
|
23486
|
+
...AsyncApiBindings.ServerBindings.properties,
|
|
23487
|
+
ros2: "Ros2ServerBinding"
|
|
23488
|
+
}
|
|
23489
|
+
};
|
|
23490
|
+
var ChannelBindings2 = {
|
|
23491
|
+
...AsyncApiBindings.ChannelBindings,
|
|
23492
|
+
properties: {
|
|
23493
|
+
...AsyncApiBindings.ChannelBindings.properties,
|
|
23494
|
+
ros2: "Ros2ChannelBinding"
|
|
23495
|
+
}
|
|
23496
|
+
};
|
|
23497
|
+
var OperationBindings2 = {
|
|
23498
|
+
...AsyncApiBindings.OperationBindings,
|
|
23499
|
+
properties: {
|
|
23500
|
+
...AsyncApiBindings.OperationBindings.properties,
|
|
23501
|
+
ros2: "Ros2OperationBinding"
|
|
23502
|
+
}
|
|
23503
|
+
};
|
|
23504
|
+
var MessageBindings2 = {
|
|
23505
|
+
...AsyncApiBindings.MessageBindings,
|
|
23506
|
+
properties: {
|
|
23507
|
+
...AsyncApiBindings.MessageBindings.properties,
|
|
23508
|
+
ros2: "Ros2MessageBinding"
|
|
23509
|
+
}
|
|
23510
|
+
};
|
|
23231
23511
|
var AsyncApi3Types = {
|
|
23232
|
-
|
|
23233
|
-
...
|
|
23512
|
+
...AsyncApiBindings,
|
|
23513
|
+
...Ros2Bindings,
|
|
23514
|
+
ServerBindings: ServerBindings2,
|
|
23515
|
+
ChannelBindings: ChannelBindings2,
|
|
23516
|
+
OperationBindings: OperationBindings2,
|
|
23517
|
+
MessageBindings: MessageBindings2,
|
|
23234
23518
|
CorrelationId,
|
|
23235
23519
|
SecuritySchemeFlows,
|
|
23236
23520
|
ServerVariable: ServerVariable2,
|
|
@@ -24402,236 +24686,230 @@ var OpenRpcTypes = {
|
|
|
24402
24686
|
};
|
|
24403
24687
|
|
|
24404
24688
|
// ../../node_modules/@redocly/config/lib-esm/index.js
|
|
24405
|
-
var
|
|
24406
|
-
var
|
|
24407
|
-
var
|
|
24408
|
-
var c = { type: "object", properties: { hide: { type: "boolean"
|
|
24409
|
-
var
|
|
24410
|
-
var
|
|
24411
|
-
var S = { type: "object", properties: { licenseKey: { type: "string" }, hideLoading: { type: "boolean" }, disableRouter: { type: "boolean" }, hideSidebar: { type: "boolean" }, feedback: c, hideReplay: { type: "boolean" }, oAuth2RedirectURI: { type: "string"
|
|
24412
|
-
var
|
|
24413
|
-
var
|
|
24414
|
-
var
|
|
24415
|
-
var
|
|
24416
|
-
var
|
|
24417
|
-
var
|
|
24418
|
-
var
|
|
24419
|
-
var
|
|
24420
|
-
var
|
|
24421
|
-
var
|
|
24422
|
-
var
|
|
24423
|
-
var
|
|
24424
|
-
var
|
|
24425
|
-
var
|
|
24426
|
-
var
|
|
24427
|
-
var
|
|
24428
|
-
var
|
|
24429
|
-
var
|
|
24430
|
-
var
|
|
24431
|
-
var
|
|
24432
|
-
var
|
|
24433
|
-
var
|
|
24434
|
-
var
|
|
24435
|
-
var
|
|
24436
|
-
var
|
|
24437
|
-
var
|
|
24438
|
-
var
|
|
24439
|
-
var
|
|
24440
|
-
var
|
|
24441
|
-
var
|
|
24442
|
-
var
|
|
24443
|
-
var
|
|
24444
|
-
var
|
|
24445
|
-
var
|
|
24446
|
-
var
|
|
24447
|
-
var
|
|
24448
|
-
var
|
|
24449
|
-
var
|
|
24450
|
-
var
|
|
24451
|
-
var
|
|
24452
|
-
var
|
|
24453
|
-
var
|
|
24454
|
-
var
|
|
24455
|
-
var
|
|
24456
|
-
var
|
|
24457
|
-
var
|
|
24458
|
-
var
|
|
24459
|
-
var
|
|
24460
|
-
var
|
|
24461
|
-
var
|
|
24462
|
-
var
|
|
24463
|
-
var
|
|
24464
|
-
var
|
|
24465
|
-
var
|
|
24466
|
-
var
|
|
24467
|
-
var
|
|
24468
|
-
var
|
|
24469
|
-
var
|
|
24470
|
-
function
|
|
24471
|
-
return Object.fromEntries(
|
|
24689
|
+
var Se = { hide: { type: "boolean" }, component: { type: "string", enum: ["radio", "checkbox"] }, label: { type: "string" }, items: { type: "array", items: { type: "string" } } };
|
|
24690
|
+
var N = { type: "object", properties: Se, additionalProperties: false };
|
|
24691
|
+
var Me = { type: "object", properties: { hide: { type: "boolean" }, label: { type: "string" }, placeholder: { type: "string" } }, additionalProperties: false };
|
|
24692
|
+
var c = { type: "object", properties: { hide: { type: "boolean" }, type: { type: "string", enum: ["rating", "sentiment", "comment", "reasons", "mood", "scale"] }, settings: { type: "object", properties: { label: { type: "string" }, submitText: { type: "string" }, buttonText: { type: "string" }, component: { type: "string", enum: ["radio", "checkbox"] }, items: { type: "array", items: { type: "string" }, minItems: 1 }, leftScaleLabel: { type: "string" }, rightScaleLabel: { type: "string" }, reasons: { type: "object", properties: { ...Se, like: N, dislike: N, satisfied: N, neutral: N, dissatisfied: N }, additionalProperties: false }, comment: { type: "object", properties: { hide: { type: "boolean" }, label: { type: "string" }, likeLabel: { type: "string" }, dislikeLabel: { type: "string" }, satisfiedLabel: { type: "string" }, neutralLabel: { type: "string" }, dissatisfiedLabel: { type: "string" } }, additionalProperties: false }, optionalEmail: Me }, additionalProperties: false } }, additionalProperties: false };
|
|
24693
|
+
var Ue = { type: "object", properties: { languages: { type: "array", items: { type: "object", properties: { lang: { type: "string" }, label: { type: "string" }, options: { type: "object", properties: { indent: { type: "string" }, withImports: { type: "boolean" }, withComments: { type: "boolean" }, binary: { type: "boolean" }, credentials: { type: "string", enum: ["omit", "same-origin", "include"] } }, additionalProperties: false } }, required: ["lang"], additionalProperties: false } }, skipOptionalParameters: { type: "boolean" }, withOAuth2Call: { type: "boolean" } }, additionalProperties: false };
|
|
24694
|
+
var j = { type: "array", items: { type: "object", properties: { title: { type: "string" }, url: { type: "string" } }, required: ["url"], additionalProperties: false } };
|
|
24695
|
+
var S = { type: "object", properties: { licenseKey: { type: "string" }, hideLoading: { type: "boolean" }, disableRouter: { type: "boolean" }, hideSidebar: { type: "boolean" }, feedback: c, hideReplay: { type: "boolean" }, oAuth2RedirectURI: { type: "string" }, corsProxyUrl: { type: "string" }, sortRequiredPropsFirst: { type: "boolean" }, sanitize: { type: "boolean" }, hideDownloadButtons: { type: "boolean" }, downloadUrls: j, onlyRequiredInSamples: { type: "boolean" }, generatedSamplesMaxDepth: { oneOf: [{ type: "number" }, { type: "string" }] }, showExtensions: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "array", items: { type: "string" } }] }, hideSchemaTitles: { type: "boolean" }, jsonSamplesExpandLevel: { oneOf: [{ type: "number" }, { type: "string" }] }, schemasExpansionLevel: { oneOf: [{ type: "number" }, { type: "string" }] }, mockServer: { type: "object", properties: { url: { type: "string" }, position: { type: "string", enum: ["first", "last", "replace", "off"] }, description: { type: "string" } } }, maxDisplayedEnumValues: { type: "number" }, schemaDefinitionsTagName: { type: "string" }, layout: { type: "string", enum: ["stacked", "three-panel"] }, hideInfoMetadata: { type: "boolean" }, events: { type: "object" }, skipBundle: { type: "boolean" }, routingBasePath: { type: "string" }, codeSamples: Ue, ignoreNamedSchemas: { oneOf: [{ type: "array", items: { type: "string" } }, { type: "string" }] }, hidePropertiesPrefix: { type: "boolean" }, excludeFromSearch: { type: "boolean" }, showSchemaCatalogLinks: { type: "boolean" } }, additionalProperties: false };
|
|
24696
|
+
var h = { type: "object", properties: { includeByName: { type: "array", items: { type: "string" } }, excludeByName: { type: "array", items: { type: "string" } } }, additionalProperties: false };
|
|
24697
|
+
var Be = { type: "object", properties: { name: { type: "string" }, items: h, queries: h, mutations: h, subscriptions: h, types: h, directives: h }, required: ["name"], additionalProperties: false };
|
|
24698
|
+
var Ge = { type: "object", properties: { requireExactGroups: { type: "boolean" }, groups: { type: "array", items: Be }, otherItemsGroupName: { type: "string" } }, required: ["requireExactGroups", "groups", "otherItemsGroupName"], additionalProperties: false };
|
|
24699
|
+
var ze = { type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri" }, email: { type: "string", format: "email" } }, additionalProperties: false };
|
|
24700
|
+
var Fe = { type: "object", properties: { name: { type: "string" }, url: { type: "string", format: "uri" }, identifier: { type: "string" } }, additionalProperties: false };
|
|
24701
|
+
var Ye = { type: "object", properties: { title: { type: "string" }, version: { type: "string" }, description: { type: "string" }, termsOfService: { type: "string", format: "uri" }, contact: ze, license: Fe }, additionalProperties: false };
|
|
24702
|
+
var b = { type: "object", properties: { menu: { type: "object", properties: { ...Ge.properties }, additionalProperties: false }, sidebar: { type: "object", properties: { hide: { type: "boolean" } } }, downloadUrls: j, apiLogo: { type: "object", properties: { imageUrl: { type: "string" }, href: { type: "string" }, altText: { type: "string" }, backgroundColor: { type: "string" } } }, jsonSamplesDepth: { type: "number" }, samplesMaxInlineArgs: { type: "number" }, licenseKey: { type: "string" }, fieldExpandLevel: { type: "number" }, baseUrlPath: { type: "string" }, metadata: { type: "object", properties: { apiId: { type: "string" } }, additionalProperties: true }, feedback: c, layout: { type: "string", enum: ["stacked", "three-panel"] }, showBuiltInScalars: { type: "boolean" }, showBuiltInDirectives: { type: "boolean" }, info: Ye }, additionalProperties: false };
|
|
24703
|
+
var he = { type: "object", properties: { downloadUrls: j, apiLogo: { type: "object", properties: { imageUrl: { type: "string" }, href: { type: "string" }, altText: { type: "string" }, backgroundColor: { type: "string" } } }, jsonSamplesDepth: { type: "number" }, samplesMaxInlineArgs: { type: "number" }, fieldExpandLevel: { type: "number" }, baseUrlPath: { type: "string" }, metadata: { type: "object", properties: { apiId: { type: "string" } }, additionalProperties: true }, feedback: c, layout: { type: "string", enum: ["stacked", "three-panel"] } }, additionalProperties: false };
|
|
24704
|
+
var Ve = { type: "object", properties: { label: { type: "string" }, lang: { type: "string", enum: ["curl", "C#", "Go", "Java", "Java8+Apache", "JavaScript", "Node.js", "PHP", "Python", "R", "Ruby"] } }, required: ["lang"] };
|
|
24705
|
+
var He = { type: "object", properties: { enum: { type: "string" }, enumSingleValue: { type: "string" }, enumArray: { type: "string" }, default: { type: "string" }, deprecated: { type: "string" }, example: { type: "string" }, examples: { type: "string" }, nullable: { type: "string" }, recursive: { type: "string" }, arrayOf: { type: "string" }, webhook: { type: "string" }, authorizations: { type: "string" }, tryItAuthBasicUsername: { type: "string" }, tryItAuthBasicPassword: { type: "string" } } };
|
|
24706
|
+
var be = { type: "object", properties: { label: { type: "string" }, link: { type: "string" }, target: { type: "string" } }, required: ["label", "link"] };
|
|
24707
|
+
var Ke = { type: "object", properties: { beforeInfo: { type: "array", items: be }, end: { type: "array", items: be } } };
|
|
24708
|
+
var g = { type: "object", properties: { main: { type: "string" }, light: { type: "string" }, dark: { type: "string" }, contrastText: { type: "string" } } };
|
|
24709
|
+
var E = { type: "object", properties: { backgroundColor: { type: "string" }, borderColor: { type: "string" }, color: { type: "string" }, tabTextColor: { type: "string" } } };
|
|
24710
|
+
var We = { type: "object", properties: I(g.properties, ["light", "dark"]) };
|
|
24711
|
+
var $e = { type: "object", properties: { basic: { type: "string" }, delete: { type: "string" }, get: { type: "string" }, head: { type: "string" }, link: { type: "string" }, options: { type: "string" }, patch: { type: "string" }, post: { type: "string" }, put: { type: "string" } } };
|
|
24712
|
+
var Xe = { type: "object", properties: { error: E, info: E, redirect: E, success: E } };
|
|
24713
|
+
var Qe = { type: "object", properties: u(g.properties, ["dark"]) };
|
|
24714
|
+
var Ze = { type: "object", properties: { primary: { type: "string" }, secondary: { type: "string" }, light: { type: "string" } } };
|
|
24715
|
+
var et = { type: "object", properties: { accent: g, border: We, error: g, http: $e, primary: g, responses: Xe, secondary: Qe, success: g, text: Ze, tonalOffset: { type: "number" }, warning: g } };
|
|
24716
|
+
var T = { type: "object", properties: { fontSize: { type: "string" }, padding: { type: "string" }, minWidth: { type: "string" } } };
|
|
24717
|
+
var tt = { type: "object", properties: { small: T, medium: T, large: T, xlarge: T } };
|
|
24718
|
+
var y = { type: "object", properties: { fontFamily: { type: "string" }, fontSize: { type: "string" }, fontWeight: { type: "string" }, lineHeight: { type: "string" } } };
|
|
24719
|
+
var ot = { type: "object", properties: { ...u(y.properties, ["fontSize", "lineHeight"]), borderRadius: { type: "string" }, hoverStyle: { type: "string" }, boxShadow: { type: "string" }, hoverBoxShadow: { type: "string" }, sizes: tt } };
|
|
24720
|
+
var ue = { type: "object", properties: I(y.properties, ["fontSize", "lineHeight"]) };
|
|
24721
|
+
var it = { type: "object", properties: { medium: ue, small: ue } };
|
|
24722
|
+
var st = { type: "object", properties: { ...u(y.properties, ["fontSize", "lineHeight"]), borderRadius: { type: "string" }, color: { type: "string" }, sizes: it } };
|
|
24723
|
+
var rt = { type: "object", properties: { top: { type: "string" }, width: { type: "string" }, height: { type: "string" } } };
|
|
24724
|
+
var at = { type: "object", properties: { borderRadius: { type: "string" }, backgroundColor: { type: "string" } } };
|
|
24725
|
+
var Ce = { type: "object", properties: { fullWidth: { type: "boolean" } } };
|
|
24726
|
+
var nt = { type: "object", properties: { buttons: ot, httpBadges: st, layoutControls: rt, panels: at, tryItButton: Ce, tryItSendButton: Ce } };
|
|
24727
|
+
var k = { type: "object", properties: { small: { type: "string" }, medium: { type: "string" }, large: { type: "string" } } };
|
|
24728
|
+
var pt = { type: "object", properties: { maxWidth: k } };
|
|
24729
|
+
var ct = { type: "object", properties: { maxWidth: k, middlePanelMaxWidth: k } };
|
|
24730
|
+
var yt = { type: "object", properties: { showDarkRightPanel: { type: "boolean" }, stacked: pt, "three-panel": ct } };
|
|
24731
|
+
var Re = { type: "object", properties: { backgroundColor: { type: "string" }, border: { type: "string" } } };
|
|
24732
|
+
var lt = { type: "object", properties: { breakFieldNames: { type: "boolean" }, caretColor: { type: "string" }, caretSize: { type: "string" }, constraints: Re, defaultDetailsWidth: { type: "string" }, examples: Re, labelsTextSize: { type: "string" }, linesColor: { type: "string" }, nestedBackground: { type: "string" }, nestingSpacing: { type: "string" }, requireLabelColor: { type: "string" }, typeNameColor: { type: "string" }, typeTitleColor: { type: "string" } } };
|
|
24733
|
+
var Oe = { type: "object", properties: { subItemsColor: { type: "string" }, textTransform: { type: "string" }, fontWeight: { type: "string" } } };
|
|
24734
|
+
var dt = { type: "object", properties: I(Oe.properties, ["textTransform"]) };
|
|
24735
|
+
var gt = { type: "object", properties: { unit: { type: "number" }, paddingHorizontal: { type: "string" }, paddingVertical: { type: "string" }, offsetTop: { type: "string" }, offsetLeft: { type: "string" }, offsetNesting: { type: "string" } } };
|
|
24736
|
+
var mt = { type: "object", properties: { ...u(y.properties, ["fontWeight", "lineHeight"]), activeBgColor: { type: "string" }, activeTextColor: { type: "string" }, backgroundColor: { type: "string" }, borderRadius: { type: "string" }, breakPath: { type: "boolean" }, caretColor: { type: "string" }, caretSize: { type: "string" }, groupItems: Oe, level1items: dt, rightLineColor: { type: "string" }, separatorLabelColor: { type: "string" }, showAtBreakpoint: { type: "string" }, spacing: gt, textColor: { type: "string" }, width: { type: "string" } } };
|
|
24737
|
+
var v = { type: "object", properties: { ...y.properties, color: { type: "string" }, transform: { type: "string" } } };
|
|
24738
|
+
var ft = { type: "object", properties: { ...y.properties, backgroundColor: { type: "string" }, color: { type: "string" }, wordBreak: { type: "string", enum: ["break-all", "break-word", "keep-all", "normal", "revert", "unset", "inherit", "initial"] }, wrap: { type: "boolean" } } };
|
|
24739
|
+
var St = { type: "object", properties: u(y.properties, ["fontSize"]) };
|
|
24740
|
+
var ht = { type: "object", properties: { color: { type: "string" }, hover: { type: "string" }, textDecoration: { type: "string" }, hoverTextDecoration: { type: "string" }, visited: { type: "string" } } };
|
|
24741
|
+
var bt = { type: "object", properties: { code: ft, fieldName: y, ...I(y.properties, ["fontSize", "fontFamily"]), fontWeightBold: { type: "string" }, fontWeightLight: { type: "string" }, fontWeightRegular: { type: "string" }, heading1: v, heading2: v, heading3: v, headings: St, lineHeight: { type: "string" }, links: ht, optimizeSpeed: { type: "boolean" }, rightPanelHeading: v, smoothing: { type: "string", enum: ["auto", "none", "antialiased", "subpixel-antialiased", "grayscale"] } } };
|
|
24742
|
+
var ut = { type: "object", properties: { color: { type: "string" }, ...u(y.properties, ["fontWeight"]) } };
|
|
24743
|
+
var Ct = { type: "object", properties: { backgroundColor: { type: "string" }, borderRadius: { type: "string" }, tokens: ut } };
|
|
24744
|
+
var Rt = { type: "object", properties: { gutter: { type: "string" }, maxHeight: { type: "string" }, maxWidth: { type: "string" } } };
|
|
24745
|
+
var Pt = { type: "object", properties: { backgroundColor: { type: "string" }, color: { type: "string" } } };
|
|
24746
|
+
var Pe = { type: "object", properties: { custom: { type: "string" } } };
|
|
24747
|
+
var Ot = { type: "object", properties: { DownloadButton: Pe, NextSectionButton: Pe } };
|
|
24748
|
+
var Nt = { type: "object", properties: { backgroundColor: { type: "string" }, panelBackgroundColor: { type: "string" }, panelControlsBackgroundColor: { type: "string" }, showAtBreakpoint: { type: "string" }, textColor: { type: "string" }, width: { type: "string" } } };
|
|
24749
|
+
var jt = { type: "object", properties: { borderRadius: { type: "string" } } };
|
|
24750
|
+
var xt = { type: "object", properties: { sectionHorizontal: { type: "number" }, sectionVertical: { type: "number" }, unit: { type: "number" } } };
|
|
24751
|
+
var Et = { type: "object", properties: { breakpoints: k, codeBlock: Ct, colors: et, components: nt, layout: yt, logo: Rt, fab: Pt, overrides: Ot, rightPanel: Nt, schema: lt, shape: jt, sidebar: mt, spacing: xt, typography: bt, links: { type: "object", properties: { color: { type: "string" } } }, codeSample: { type: "object", properties: { backgroundColor: { type: "string" } } } } };
|
|
24752
|
+
var Tt = { type: "object", properties: { skipOptionalParameters: { type: "boolean" }, languages: { type: "array", items: Ve } }, required: ["languages"] };
|
|
24753
|
+
var oe = { type: "object", properties: { theme: Et, ctrlFHijack: { type: "boolean" }, defaultSampleLanguage: { type: "string" }, disableDeepLinks: { type: "boolean" }, disableSearch: { type: "boolean" }, disableSidebar: { type: "boolean" }, downloadDefinitionUrl: { type: "string" }, expandDefaultServerVariables: { type: "boolean" }, enumSkipQuotes: { type: "boolean" }, expandDefaultRequest: { type: "boolean" }, expandDefaultResponse: { type: "boolean" }, expandResponses: { type: "string" }, expandSingleSchemaField: { type: "boolean" }, generateCodeSamples: Tt, generatedPayloadSamplesMaxDepth: { type: "number" }, hideDownloadButton: { type: "boolean" }, hideHostname: { type: "boolean" }, hideInfoSection: { type: "boolean" }, hideLogo: { type: "boolean" }, hideRequestPayloadSample: { type: "boolean" }, hideRightPanel: { type: "boolean" }, hideSchemaPattern: { type: "boolean" }, hideSingleRequestSampleTab: { type: "boolean" }, hideSecuritySection: { type: "boolean" }, hideTryItPanel: { type: "boolean" }, hideFab: { type: "boolean" }, hideOneOfDescription: { type: "boolean" }, htmlTemplate: { type: "string" }, jsonSampleExpandLevel: { oneOf: [{ type: "number", minimum: 1 }, { type: "string" }] }, labels: He, menuToggle: { type: "boolean" }, nativeScrollbars: { type: "boolean" }, noAutoAuth: { type: "boolean" }, onDeepLinkClick: { type: "object" }, pagination: { type: "string", enum: ["none", "section", "item"] }, pathInMiddlePanel: { type: "boolean" }, payloadSampleIdx: { type: "number", minimum: 0 }, requiredPropsFirst: { type: "boolean" }, routingStrategy: { type: "string" }, samplesTabsMaxCount: { type: "number" }, schemaExpansionLevel: { oneOf: [{ type: "number", minimum: 0 }, { type: "string" }] }, minCharacterLengthToInitSearch: { type: "number", minimum: 1 }, maxResponseHeadersToShowInTryIt: { type: "number", minimum: 0 }, scrollYOffset: { oneOf: [{ type: "number" }, { type: "string" }] }, searchAutoExpand: { type: "boolean" }, searchFieldLevelBoost: { type: "number", minimum: 0 }, searchMaxDepth: { type: "number", minimum: 1 }, searchMode: { type: "string", enum: ["default", "path-only"] }, searchOperationTitleBoost: { type: "number" }, searchTagTitleBoost: { type: "number" }, sendXUserAgentInTryIt: { type: "boolean" }, showChangeLayoutButton: { type: "boolean" }, showConsole: { type: "boolean" }, showNextButton: { type: "boolean" }, showRightPanelToggle: { type: "boolean" }, showSecuritySchemeType: { type: "boolean" }, showWebhookVerb: { type: "boolean" }, showObjectSchemaExamples: { type: "boolean" }, disableTryItRequestUrlEncoding: { type: "boolean" }, sidebarLinks: Ke, sideNavStyle: { type: "string", enum: ["summary-only", "path-first", "id-only", "path-only"] }, simpleOneOfTypeLabel: { type: "boolean" }, sortEnumValuesAlphabetically: { type: "boolean" }, sortOperationsAlphabetically: { type: "boolean" }, sortPropsAlphabetically: { type: "boolean" }, sortTagsAlphabetically: { type: "boolean" }, suppressWarnings: { type: "boolean" }, unstable_externalDescription: { type: "boolean" }, unstable_ignoreMimeParameters: { type: "boolean" }, untrustedDefinition: { type: "boolean" }, showAccessMode: { type: "boolean" }, preserveOriginalExtensionsName: { type: "boolean" }, markdownHeadingsAnchorLevel: { type: "number" } }, additionalProperties: false };
|
|
24754
|
+
function I(f, te) {
|
|
24755
|
+
return Object.fromEntries(te.filter((i) => i in f).map((i) => [i, f[i]]));
|
|
24472
24756
|
}
|
|
24473
|
-
function
|
|
24474
|
-
return Object.fromEntries(Object.entries(
|
|
24757
|
+
function u(f, te) {
|
|
24758
|
+
return Object.fromEntries(Object.entries(f).filter(([i]) => !te.includes(i)));
|
|
24475
24759
|
}
|
|
24476
|
-
var
|
|
24477
|
-
var
|
|
24760
|
+
var r = { nodeTypeName: void 0, type: "object", additionalProperties: { oneOf: [{ type: "string" }, { type: "object" }] }, description: "The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.", documentationLink: "https://redocly.com/docs/cli/configuration/reference/rules#rules" };
|
|
24761
|
+
var vt = { rules: r, oas2Rules: r, oas3_0Rules: r, oas3_1Rules: r, oas3_2Rules: r, async2Rules: r, async3Rules: r, arazzo1Rules: r, arazzo1_1Rules: r, overlay1Rules: r, openrpc1Rules: r, graphqlRules: r };
|
|
24478
24762
|
var n = { nodeTypeName: void 0, type: "object", additionalProperties: true };
|
|
24479
|
-
var
|
|
24763
|
+
var kt = { preprocessors: n, oas2Preprocessors: n, oas3_0Preprocessors: n, oas3_1Preprocessors: n, oas3_2Preprocessors: n, async2Preprocessors: n, async3Preprocessors: n, arazzo1Preprocessors: n, arazzo1_1Preprocessors: n, overlay1Preprocessors: n, openrpc1Preprocessors: n };
|
|
24480
24764
|
var p = { nodeTypeName: void 0, type: "object", additionalProperties: true };
|
|
24481
|
-
var
|
|
24482
|
-
var
|
|
24483
|
-
var
|
|
24484
|
-
var
|
|
24485
|
-
var s =
|
|
24486
|
-
var
|
|
24487
|
-
var
|
|
24488
|
-
var
|
|
24489
|
-
var
|
|
24490
|
-
var
|
|
24491
|
-
var
|
|
24492
|
-
var
|
|
24493
|
-
var
|
|
24494
|
-
var
|
|
24495
|
-
var
|
|
24496
|
-
var
|
|
24497
|
-
var
|
|
24498
|
-
var
|
|
24499
|
-
var
|
|
24500
|
-
var
|
|
24501
|
-
var
|
|
24502
|
-
var
|
|
24503
|
-
var
|
|
24504
|
-
var
|
|
24505
|
-
var
|
|
24506
|
-
var
|
|
24507
|
-
var
|
|
24508
|
-
var
|
|
24509
|
-
var
|
|
24510
|
-
var
|
|
24511
|
-
var
|
|
24512
|
-
var
|
|
24513
|
-
var
|
|
24514
|
-
var
|
|
24515
|
-
var
|
|
24516
|
-
var
|
|
24517
|
-
var
|
|
24518
|
-
var
|
|
24519
|
-
var
|
|
24520
|
-
var
|
|
24521
|
-
var
|
|
24522
|
-
var
|
|
24523
|
-
var
|
|
24524
|
-
var
|
|
24525
|
-
var
|
|
24526
|
-
var
|
|
24527
|
-
var
|
|
24528
|
-
var
|
|
24529
|
-
var
|
|
24530
|
-
var
|
|
24531
|
-
var
|
|
24532
|
-
var
|
|
24533
|
-
var
|
|
24534
|
-
var
|
|
24535
|
-
var
|
|
24536
|
-
var
|
|
24537
|
-
var
|
|
24538
|
-
var
|
|
24539
|
-
var
|
|
24540
|
-
var
|
|
24541
|
-
var
|
|
24542
|
-
var
|
|
24543
|
-
var
|
|
24544
|
-
var
|
|
24545
|
-
var
|
|
24546
|
-
var
|
|
24547
|
-
var
|
|
24548
|
-
var
|
|
24549
|
-
var
|
|
24550
|
-
var
|
|
24551
|
-
var
|
|
24552
|
-
var
|
|
24553
|
-
var
|
|
24554
|
-
var
|
|
24555
|
-
var
|
|
24556
|
-
var
|
|
24557
|
-
var
|
|
24558
|
-
var
|
|
24559
|
-
var
|
|
24560
|
-
var
|
|
24561
|
-
var
|
|
24562
|
-
var
|
|
24563
|
-
var
|
|
24564
|
-
|
|
24565
|
-
|
|
24566
|
-
|
|
24567
|
-
|
|
24568
|
-
}
|
|
24569
|
-
var
|
|
24570
|
-
var
|
|
24571
|
-
var
|
|
24572
|
-
var
|
|
24573
|
-
var
|
|
24574
|
-
var
|
|
24575
|
-
var
|
|
24576
|
-
var
|
|
24577
|
-
var
|
|
24578
|
-
var
|
|
24579
|
-
var
|
|
24580
|
-
var
|
|
24581
|
-
var
|
|
24582
|
-
var
|
|
24583
|
-
var
|
|
24584
|
-
var
|
|
24585
|
-
var Fe = { type: "boolean" };
|
|
24586
|
-
var Ye = { type: "string", pattern: "^https?://.*" };
|
|
24587
|
-
var Ve = { type: "string", pattern: "^https?://.*" };
|
|
24588
|
-
var _r = { type: "object", properties: { to: { type: "string" }, type: { type: "number", default: 301 } }, additionalProperties: false, nodeTypeName: s.RedirectSource, description: "Source is an absolute path that must start with a forward slash.", documentationLink: "https://redocly.com/docs/realm/config/redirects#sources-map" };
|
|
24589
|
-
var Or = { type: "object", additionalProperties: _r, default: {}, nodeTypeName: s.Redirects, description: "Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.", documentationLink: "https://redocly.com/docs/realm/config/redirects" };
|
|
24590
|
-
var Nr = { type: "string", enum: ["info", "success", "warning", "error"], default: "info" };
|
|
24765
|
+
var It = { decorators: p, oas2Decorators: p, oas3_0Decorators: p, oas3_1Decorators: p, oas3_2Decorators: p, async2Decorators: p, async3Decorators: p, arazzo1Decorators: p, arazzo1_1Decorators: p, overlay1Decorators: p, openrpc1Decorators: p };
|
|
24766
|
+
var Jt = { nodeTypeName: void 0, type: "array", items: { type: "string" }, description: "Use extends to inherit rules and their configurations from other rulesets.", documentationLink: "https://redocly.com/docs/cli/configuration/reference/extends" };
|
|
24767
|
+
var m = { ...vt, ...It, ...kt, extends: Jt };
|
|
24768
|
+
var J = (f) => f;
|
|
24769
|
+
var s = J({ RedirectSource: "RedirectSource", Redirects: "Redirects", ScorecardClassic: "ScorecardClassic", ScorecardClassicLevelList: "ScorecardClassicLevelList", ScorecardClassicLevel: "ScorecardClassicLevel", ScorecardClassicTargetList: "ScorecardClassicTargetList", ScorecardClassicTarget: "ScorecardClassicTarget", ScorecardClassicTargetWhere: "ScorecardClassicTargetWhere", ScorecardClassicTargetWhereMetadata: "ScorecardClassicTargetWhereMetadata", ScorecardClassicTeamMetadataProperty: "ScorecardClassicTeamMetadataProperty" });
|
|
24770
|
+
var o = { type: "object", properties: { hide: { type: "boolean" } }, additionalProperties: false };
|
|
24771
|
+
var Ne = { type: "object", properties: { src: { type: "string" }, async: { type: "boolean" }, crossorigin: { type: "string" }, defer: { type: "boolean" }, fetchpriority: { type: "string" }, integrity: { type: "string" }, module: { type: "boolean" }, nomodule: { type: "boolean" }, nonce: { type: "string" }, referrerpolicy: { type: "string" }, type: { type: "string" } }, required: ["src"], additionalProperties: true };
|
|
24772
|
+
var ie = { type: "object", properties: { page: { type: "string" }, directory: { type: "string" }, disconnect: { type: "boolean" }, group: { type: "string" }, label: { type: "string" }, href: { type: "string" }, external: { type: "boolean" }, labelTranslationKey: { type: "string" }, groupTranslationKey: { type: "string" }, icon: { oneOf: [{ type: "string" }, { type: "object", properties: { srcSet: { type: "string" } }, required: ["srcSet"] }] }, separator: { type: "string" }, separatorLine: { type: "boolean" }, linePosition: { type: "string", enum: ["top", "bottom"] }, version: { type: "string" }, menuStyle: { type: "string", enum: ["drilldown"] }, expanded: { type: "string", const: "always" }, selectFirstItemOnExpand: { type: "boolean" }, flatten: { type: "boolean" }, linkedSidebars: { type: "array", items: { type: "string" } }, items: { type: "array", items: { type: "object", additionalProperties: true } }, rbac: { type: "object", additionalProperties: { type: "string" } }, additionalProps: { type: "object", additionalProperties: true } } };
|
|
24773
|
+
var se = { type: "array", items: { ...ie, properties: { ...ie.properties, items: { type: "array", items: ie } } } };
|
|
24774
|
+
var Lt = { type: "object", properties: { name: { type: "string" }, icon: { type: "string" }, folder: { type: "string" } }, additionalProperties: false, required: ["name", "folder"] };
|
|
24775
|
+
var At = { type: "object", properties: { hide: { type: "boolean" }, suggestions: { type: "array", items: { type: "string" } }, prompt: { type: "string" } }, additionalProperties: false };
|
|
24776
|
+
var Dt = { type: "array", items: { type: "object", required: ["name", "field", "type"], properties: { name: { type: "string" }, field: { type: "string" }, type: { type: "string", enum: ["multi-select", "select", "tags"] } }, additionalProperties: false } };
|
|
24777
|
+
var _t = { type: "object", properties: { facets: Dt, ...o.properties }, additionalProperties: false };
|
|
24778
|
+
var qt = { type: "object", properties: { page: { type: "string" }, label: { type: "string" }, labelTranslationKey: { type: "string" } }, required: ["page"] };
|
|
24779
|
+
var L = { type: "object", properties: { image: { type: "string" }, srcSet: { type: "string" }, altText: { type: "string" }, link: { type: "string" }, favicon: { type: "string" } }, additionalProperties: false };
|
|
24780
|
+
var A = { type: "object", properties: { items: se, ...o.properties }, additionalProperties: false };
|
|
24781
|
+
var D = { type: "object", additionalProperties: Lt };
|
|
24782
|
+
var _ = { type: "object", properties: { items: se, copyrightText: { type: "string" }, logo: o, ...o.properties }, additionalProperties: false };
|
|
24783
|
+
var q = { type: "object", properties: { separatorLine: { type: "boolean" }, linePosition: { type: "string", enum: ["top", "bottom"] }, ...o.properties }, additionalProperties: false };
|
|
24784
|
+
var w = { type: "object", properties: { head: { type: "array", items: Ne }, body: { type: "array", items: Ne } }, additionalProperties: false };
|
|
24785
|
+
var M = { type: "array", items: { type: "object", properties: { href: { type: "string" }, as: { type: "string" }, crossorigin: { type: "string" }, fetchpriority: { type: "string" }, hreflang: { type: "string" }, imagesizes: { type: "string" }, imagesrcset: { type: "string" }, integrity: { type: "string" }, media: { type: "string" }, prefetch: { type: "string" }, referrerpolicy: { type: "string" }, rel: { type: "string" }, sizes: { type: "string" }, title: { type: "string" }, type: { type: "string" } }, required: ["href"], additionalProperties: true } };
|
|
24786
|
+
var U = { type: "object", properties: { engine: { type: "string", enum: ["flexsearch", "typesense"] }, ai: At, filters: _t, placement: { type: "string" }, shortcuts: { type: "array", items: { type: "string" } }, suggestedPages: { type: "array", items: qt }, ...o.properties }, additionalProperties: false };
|
|
24787
|
+
var B = { type: "object", properties: { hide: { type: "boolean" }, suggestions: { type: "array", items: { type: "string" } }, prompt: { type: "string" }, trigger: { type: "object", properties: { hide: { type: "boolean" }, inputType: { type: "string", enum: ["button", "icon"] }, inputIcon: { type: "string", enum: ["chat", "sparkles", "redocly"] } }, additionalProperties: false } }, additionalProperties: false };
|
|
24788
|
+
var G = { type: "object", properties: { ignoreDetection: { type: "boolean" }, modes: { type: "array", items: { type: "string" } }, ...o.properties }, additionalProperties: false };
|
|
24789
|
+
var C = { type: "string", enum: ["slate", "pink", "coral", "amber", "jade", "cyan", "ocean", "indigo", "iris"] };
|
|
24790
|
+
var wt = { type: "object", properties: { ...o.properties, items: { type: "array", items: { type: "string", enum: ["copy", "view", "chatgpt", "claude", "docs-mcp-cursor", "docs-mcp-vscode"] } } }, additionalProperties: false };
|
|
24791
|
+
var z = { type: "object", properties: { nextButton: { type: "object", properties: { text: { type: "string" }, ...o.properties }, additionalProperties: false }, previousButton: { type: "object", properties: { text: { type: "string" }, ...o.properties }, additionalProperties: false }, actions: wt }, additionalProperties: false };
|
|
24792
|
+
var F = { type: "object", properties: { elementFormat: { type: "string" }, copy: { type: "object", properties: { ...o.properties }, additionalProperties: false }, report: { type: "object", properties: { tooltipText: { type: "string" }, buttonText: { type: "string" }, label: { type: "string" }, ...o.properties }, additionalProperties: false }, expand: { type: "object", properties: { ...o.properties }, additionalProperties: false }, collapse: { type: "object", properties: { ...o.properties }, additionalProperties: false } }, additionalProperties: false };
|
|
24793
|
+
var Y = { type: "object", properties: { frontMatterKeysToResolve: { type: "array", items: { type: "string" } }, partialsFolders: { type: "array", items: { type: "string" } }, lastUpdatedBlock: { type: "object", properties: { format: { type: "string", enum: ["timeago", "iso", "long", "short"] }, locale: { type: "string" }, ...o.properties }, additionalProperties: false }, toc: { type: "object", properties: { header: { type: "string" }, depth: { type: "integer", minimum: 1 }, ...o.properties }, additionalProperties: false }, editPage: { type: "object", properties: { baseUrl: { type: "string" }, ...o.properties }, additionalProperties: false }, template: { type: "object", additionalProperties: { type: "string" } } }, additionalProperties: false };
|
|
24794
|
+
var R = { ...S, properties: { ...S.properties, ...oe.properties } };
|
|
24795
|
+
var Ii = { ...S, properties: { ...S.properties, ...oe.properties } };
|
|
24796
|
+
var Mt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, scriptUrl: { type: "string" }, pageViewEventName: { type: "string" } }, additionalProperties: false, required: ["scriptUrl"] };
|
|
24797
|
+
var Ut = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, apiKey: { type: "string" }, head: { type: "boolean" }, respectDNT: { type: "boolean" }, exclude: { type: "array", items: { type: "string" } }, outboundClickEventName: { type: "string" }, pageViewEventName: { type: "string" }, amplitudeConfig: { type: "object", additionalProperties: true } }, additionalProperties: false, required: ["apiKey"] };
|
|
24798
|
+
var Bt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, orgId: { type: "string" } }, additionalProperties: false, required: ["orgId"] };
|
|
24799
|
+
var Gt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, appId: { type: "string" } }, additionalProperties: false, required: ["appId"] };
|
|
24800
|
+
var zt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, writeKey: { type: "string", minLength: 10 }, trackPage: { type: "boolean" }, dataPlaneUrl: { type: "string" }, controlPlaneUrl: { type: "string" }, sdkUrl: { type: "string" }, loadOptions: { type: "object", additionalProperties: true } }, additionalProperties: false, required: ["writeKey"] };
|
|
24801
|
+
var Ft = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, writeKey: { type: "string", minLength: 10 }, trackPage: { type: "boolean" }, includeTitleInPageCall: { type: "boolean" }, host: { type: "string" } }, additionalProperties: false, required: ["writeKey"] };
|
|
24802
|
+
var Yt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, trackingId: { type: "string" }, gtmAuth: { type: "string" }, gtmPreview: { type: "string" }, defaultDataLayer: { type: "object", additionalProperties: true }, dataLayerName: { type: "string" }, enableWebVitalsTracking: { type: "boolean" }, selfHostedOrigin: { type: "string" }, pageViewEventName: { type: "string" } }, additionalProperties: false, required: ["trackingId"] };
|
|
24803
|
+
var re = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, trackingId: { type: "string" }, conversionId: { type: "string" }, floodlightId: { type: "string" }, optimizeId: { type: "string" }, exclude: { type: "array", items: { type: "string" } } }, additionalProperties: false, required: ["trackingId"] };
|
|
24804
|
+
var Vt = { type: "object", properties: { includeInDevelopment: { type: "boolean" }, trackingId: { type: "string" }, conversionId: { type: "string" }, floodlightId: { type: "string" }, head: { type: "boolean" }, respectDNT: { type: "boolean" }, exclude: { type: "array", items: { type: "string" } }, optimizeId: { type: "string" }, anonymizeIp: { type: "boolean" }, cookieExpires: { type: "number" }, trackers: { type: "object", additionalProperties: re } }, additionalProperties: false, required: ["trackingId"] };
|
|
24805
|
+
var V = { type: "object", properties: { adobe: Mt, amplitude: Ut, fullstory: Bt, heap: Gt, rudderstack: zt, segment: Ft, gtm: Yt, ga: Vt } };
|
|
24806
|
+
var H = { type: "object", properties: { items: { type: "array", items: { type: "object", properties: { label: { type: "string" }, external: { type: "boolean" }, link: { type: "string" }, separatorLine: { type: "boolean" } }, additionalProperties: true } }, hideLoginButton: { type: "boolean" }, ...o.properties }, additionalProperties: false };
|
|
24807
|
+
var K = { type: "object", properties: { hide: { type: "boolean" }, showForUnversioned: { type: "boolean" } } };
|
|
24808
|
+
var W = { type: "object", properties: { hide: { type: "boolean" }, prefixItems: { type: "array", items: { type: "object", properties: { label: { type: "string" }, labelTranslationKey: { type: "string" }, page: { type: "string" }, icon: { type: "string" } }, additionalProperties: false } } }, additionalProperties: false };
|
|
24809
|
+
var Ht = { type: "object", additionalProperties: false, required: ["title", "property"], properties: { type: { type: "string", enum: ["select", "checkboxes", "date-range"] }, title: { type: "string" }, titleTranslationKey: { type: "string" }, property: { type: "string" }, parentFilter: { type: "string" }, valuesMapping: { type: "object", additionalProperties: { type: "string" } }, missingCategoryName: { type: "string" }, missingCategoryNameTranslationKey: { type: "string" }, options: { type: "array", items: { type: "string" } } } };
|
|
24810
|
+
var Kt = { type: "object", additionalProperties: true, required: ["slug", "items"], properties: { show: { type: "boolean" }, slug: { type: "string" }, filters: { type: "array", items: Ht }, groupByFirstFilter: { type: "boolean" }, filterValuesCasing: { type: "string", enum: ["sentence", "original", "lowercase", "uppercase"] }, items: se, requiredPermission: { type: "string" }, separateVersions: { type: "boolean" }, title: { type: "string" }, titleTranslationKey: { type: "string" }, description: { type: "string" }, descriptionTranslationKey: { type: "string" } } };
|
|
24811
|
+
var P = { type: "object", patternProperties: { ".*": Kt } };
|
|
24812
|
+
var O = { nodeTypeName: s.ScorecardClassic, description: "Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.", documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic", type: "object", additionalProperties: true, required: [], properties: { ignoreNonCompliant: { type: "boolean" }, teamMetadataProperty: { nodeTypeName: s.ScorecardClassicTeamMetadataProperty, description: "Provide custom team label and team metadata property.", documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object", type: "object", properties: { property: { type: "string" }, label: { type: "string" }, default: { type: "string" } } }, levels: { nodeTypeName: s.ScorecardClassicLevelList, description: "List of levels to score against.", type: "array", items: { nodeTypeName: s.ScorecardClassicLevel, documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic#level-object", type: "object", required: ["name"], properties: { name: { type: "string" }, color: { type: "string" }, ...m }, additionalProperties: false } }, targets: { nodeTypeName: s.ScorecardClassicTargetList, description: "Provide custom `minimumLevel` for specific targets.", type: "array", items: { nodeTypeName: s.ScorecardClassicTarget, type: "object", required: ["where"], properties: { minimumLevel: { type: "string" }, rules: { type: "object", additionalProperties: true }, where: { nodeTypeName: s.ScorecardClassicTargetWhere, description: "Specify which API descriptions to apply the `minimumLevel` to based on the metadata.", documentationLink: "https://redocly.com/docs/realm/config/scorecard-classic#where-object", type: "object", required: ["metadata"], properties: { metadata: { nodeTypeName: s.ScorecardClassicTargetWhereMetadata, type: "object", additionalProperties: { type: "string" } } }, additionalProperties: false } }, additionalProperties: false } }, ignore: { type: "array", items: { type: "string" } }, fromProjectUrl: { type: "string", format: "uri" } } };
|
|
24813
|
+
var Wt = { type: "object", required: ["key"], properties: { key: { type: "string" } }, additionalProperties: false };
|
|
24814
|
+
var $t = { type: "object", required: ["type"], properties: { type: { type: "string" } }, additionalProperties: false };
|
|
24815
|
+
var Xt = { type: "object", required: ["property", "title"], properties: { property: { type: "string" }, hide: { type: "boolean" }, label: { type: "string" }, options: { type: "array", items: { type: "string" } }, type: { type: "string", enum: ["select", "checkboxes", "date-range"] }, title: { type: "string" }, titleTranslationKey: { type: "string" }, parentFilter: { type: "string" }, valuesMapping: { type: "object", additionalProperties: { type: "string" } } }, additionalProperties: false };
|
|
24816
|
+
var l = { type: "object", properties: { slug: { type: "string" }, hide: { type: "boolean" }, includes: { type: "array", items: $t }, excludes: { type: "array", items: Wt }, filters: { type: "array", items: Xt }, titleTranslationKey: { type: "string" }, descriptionTranslationKey: { type: "string" }, catalogSwitcherLabelTranslationKey: { type: "string" } }, additionalProperties: false };
|
|
24817
|
+
var Qt = { type: "object", properties: { type: { type: "string", enum: ["string", "number", "boolean", "array", "object"] }, description: { type: "string" }, example: { oneOf: [{ type: "string" }, { type: "number" }, { type: "boolean" }, { type: "array" }, { type: "object" }] }, enum: { type: "array", items: { type: "string" } }, pattern: { type: "string" }, format: { type: "string" }, minimum: { type: "number" }, maximum: { type: "number" }, items: { type: "object" } }, additionalProperties: true };
|
|
24818
|
+
var Zt = { type: "object", required: ["type", "properties"], properties: { type: { type: "string", enum: ["object"] }, description: { type: "string" }, properties: { type: "object", additionalProperties: Qt }, required: { type: "array", items: { type: "string" } }, additionalProperties: { type: "boolean" } }, additionalProperties: true };
|
|
24819
|
+
var eo = { type: "object", required: ["name", "description", "metadataSchema"], properties: { name: { type: "string", description: "Display name of the entity type" }, description: { type: "string", description: "Description of the entity type" }, metadataSchema: Zt, icon: { type: "object", properties: { src: { type: "string" }, srcSet: { type: "string" } }, additionalProperties: false } }, additionalProperties: false };
|
|
24820
|
+
var to = { type: "object", additionalProperties: eo };
|
|
24821
|
+
var $ = { type: "object", properties: { show: { type: "boolean" }, entityTypes: to, catalogs: { type: "object", properties: { all: l, services: l, domains: l, teams: l, users: l, apiDescriptions: l, dataSchemas: l, apiOperations: l }, additionalProperties: l } }, additionalProperties: false };
|
|
24822
|
+
var je = { type: "string", enum: ["eq", "in", "gt", "gte", "lt", "lte", "contains", "startsWith", "endsWith", "exists", "isEmpty", "between", "matches", "some", "every", "none"] };
|
|
24823
|
+
var ne = { type: "string", enum: ["and", "or"] };
|
|
24824
|
+
var ae = { type: "object", properties: { field: { type: "string" }, operator: je, value: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "number" }] }, modifier: { type: "string", enum: ["not"] }, match: { type: "array", items: { type: "object", properties: { field: { type: "string" }, operator: je, value: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "number" }] }, modifier: { type: "string", enum: ["not"] } } } } } };
|
|
24825
|
+
var oo = { type: "object", properties: { operator: ne, conditions: { type: "array", items: ae } }, required: ["operator", "conditions"], additionalProperties: false };
|
|
24826
|
+
var xe = { type: "array", items: { oneOf: [ae, { type: "object", properties: { operator: ne, conditions: { type: "array", items: { oneOf: [ae, oo] } } }, required: ["operator", "conditions"], additionalProperties: false }] } };
|
|
24827
|
+
var Te = { type: "object", properties: { defined: { type: "boolean" }, nonEmpty: { type: "boolean" }, eq: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "number" }] }, gt: { type: "number" }, gte: { type: "number" }, lt: { type: "number" }, lte: { type: "number" }, const: { oneOf: [{ type: "boolean" }, { type: "string" }, { type: "number" }] } }, additionalProperties: false };
|
|
24828
|
+
var io = { type: "array", items: { type: "object", properties: { subject: { type: "object", properties: { type: { type: "string", enum: ["Entity", "EntityMetadata", "EntityRelations", "EntityRelation"] }, property: { type: "string" } }, required: ["type", "property"], additionalProperties: false }, assertions: Te }, required: ["subject", "assertions"], additionalProperties: false } };
|
|
24829
|
+
var so = { type: "object", properties: { title: { type: "string" }, subject: { type: "object", properties: { type: { type: "string", enum: ["Entity", "EntityMetadata", "EntityRelations", "EntityRelation"] }, property: { type: "string" } }, required: ["type", "property"], additionalProperties: false }, severity: { type: "string", enum: ["error", "warn", "off"] }, message: { type: "string" }, assertions: Te, where: io, weight: { type: "number" } }, required: ["subject", "assertions"], additionalProperties: false };
|
|
24830
|
+
var ro = { type: "object", additionalProperties: { oneOf: [{ type: "string" }, { type: "object", properties: { severity: { type: "string", enum: ["error", "warn", "off"] }, weight: { type: "number" } }, additionalProperties: true }, so] } };
|
|
24831
|
+
var ao = { type: "object", properties: { name: { type: "string" }, extends: m.extends, rules: ro }, required: ["name"], additionalProperties: false };
|
|
24832
|
+
var Ee = { type: "object", properties: { event: { type: "string", enum: ["runtime", "manual"] } }, required: ["event"], additionalProperties: false };
|
|
24833
|
+
var no = { oneOf: [Ee, { type: "array", items: Ee }] };
|
|
24834
|
+
var po = { type: "object", properties: { name: { type: "string" }, key: { type: "string" }, description: { type: "string" }, entities: { oneOf: [xe, { type: "object", properties: { operator: ne, conditions: xe }, required: ["operator", "conditions"], additionalProperties: false }] }, levels: { type: "array", items: ao, minItems: 1 }, trigger: no }, required: ["name", "key", "entities", "levels"], additionalProperties: false };
|
|
24835
|
+
var X = { type: "array", items: po };
|
|
24836
|
+
var a = { type: "object", properties: { imports: { type: "array", items: { type: "string" } }, logo: L, navbar: A, products: D, footer: _, sidebar: q, scripts: w, links: M, feedback: c, search: U, aiAssistant: B, colorMode: G, palette: C, navigation: z, codeSnippet: F, markdown: Y, openapi: R, asyncapi: he, graphql: b, analytics: V, userMenu: H, versionPicker: K, breadcrumbs: W, catalog: P, entitiesCatalog: $, catalogClassic: P, scorecard: O, scorecardClassic: O, scorecards: X }, additionalProperties: true };
|
|
24837
|
+
var pe = ((i) => (i.OIDC = "OIDC", i.SAML2 = "SAML2", i))(pe || {});
|
|
24838
|
+
var ce = ((i) => (i.SERVICE_ACCOUNT = "SERVICE_ACCOUNT", i.OAUTH2 = "OAUTH2", i))(ce || {});
|
|
24839
|
+
var ve = ((i) => (i.STACKED = "stacked", i.THREE_PANEL = "three-panel", i))(ve || {});
|
|
24840
|
+
var Q = "^[a-z0-9]+(?:-[a-z0-9]+)*$";
|
|
24841
|
+
var mo = new RegExp(Q);
|
|
24842
|
+
var ke = 63;
|
|
24843
|
+
var So = `Unique ID cannot exceed ${ke} characters`;
|
|
24844
|
+
var Z = ["redocly", "corporate", "guest"];
|
|
24845
|
+
var ho = `Unique ID cannot be a reserved word (${Z.join(", ")})`;
|
|
24846
|
+
var ye = ["REDOCLY", "CORPORATE", "GUEST"];
|
|
24847
|
+
var bo = { type: "object", additionalProperties: { type: "string" } };
|
|
24848
|
+
var uo = { type: "object", additionalProperties: false, patternProperties: { "^[a-zA-Z0-9_-]+$": { type: "string", pattern: "^https?://[^\\s/$.?#].[^\\s]*$" } } };
|
|
24849
|
+
var ee = { type: "string", enum: ["error", "warn", "off"] };
|
|
24850
|
+
var Co = { type: "object", additionalProperties: false, properties: { schemaCheck: ee, statusCodeCheck: ee, contentTypeCheck: ee, successCriteriaCheck: ee } };
|
|
24851
|
+
var Ro = { type: "object", properties: { event: { type: "string", enum: ["schedule"] }, interval: { type: "string", enum: ["1m", "2m", "5m", "10m", "15m", "30m", "1h", "3h", "6h", "12h", "1d", "7d"] } }, required: ["event"], additionalProperties: false };
|
|
24852
|
+
var Po = { type: "object", properties: { event: { type: "string", enum: ["build"] } }, required: ["event"], additionalProperties: false };
|
|
24853
|
+
var Oo = { type: "object", properties: { warn: { type: "number" }, error: { type: "number" } }, additionalProperties: false };
|
|
24854
|
+
var Ie = { type: "object", properties: { ignoreLint: { oneOf: [{ type: "boolean" }, { type: "object", additionalProperties: { type: "boolean" } }] }, ignoreLinkChecker: { type: "boolean" }, ignoreMarkdocErrors: { type: "boolean" }, ignoreRespectMonitoring: { type: "boolean" }, jobs: { type: "array", items: { type: "object", properties: { path: { type: "string", pattern: "^(?!\\/|\\.\\./)" }, agent: { type: "string", enum: ["respect"] }, trigger: { oneOf: [Ro, Po] }, inputs: bo, servers: uo, severity: Co, slo: Oo }, required: ["path", "trigger", "agent"], additionalProperties: false } } }, additionalProperties: false };
|
|
24855
|
+
var No = { type: "object", properties: { end_session_endpoint: { type: "string" }, token_endpoint: { type: "string" }, authorization_endpoint: { type: "string" }, jwks_uri: { type: "string" } }, required: ["token_endpoint", "authorization_endpoint"], additionalProperties: true };
|
|
24856
|
+
var jo = { type: "object", properties: { type: { type: "string", const: "OIDC" }, title: { type: "string" }, pkce: { type: "boolean" }, configurationUrl: { type: "string", minLength: 1 }, configuration: No, clientId: { type: "string", minLength: 1 }, clientSecret: { type: "string" }, teamsClaimName: { type: "string" }, teamsClaimMap: { type: "object", additionalProperties: { type: "string" } }, defaultTeams: { type: "array", items: { type: "string" } }, scopes: { type: "array", items: { type: "string" } }, tokenExpirationTime: { type: "number" }, authorizationRequestCustomParams: { type: "object", additionalProperties: { type: "string" } }, introspectEndpoint: { type: "string" }, tokenRequestCustomParams: { type: "object", additionalProperties: { type: "string" } }, audience: { type: "array", items: { type: "string" } } }, required: ["type", "clientId"], oneOf: [{ required: ["configurationUrl"] }, { required: ["configuration"] }], additionalProperties: false };
|
|
24857
|
+
var xo = { type: "object", properties: { type: { type: "string", const: "SAML2" }, title: { type: "string" }, issuerId: { type: "string" }, entityId: { type: "string" }, ssoUrl: { type: "string" }, x509PublicCert: { type: "string" }, teamsAttributeName: { type: "string" }, teamsAttributeMap: { type: "object", additionalProperties: { type: "string" } }, defaultTeams: { type: "array", items: { type: "string" } } }, additionalProperties: false, required: ["type", "issuerId", "ssoUrl", "x509PublicCert"] };
|
|
24858
|
+
var Eo = { oneOf: [jo, xo], discriminator: { propertyName: "type" } };
|
|
24859
|
+
var To = { type: "object", additionalProperties: Eo };
|
|
24860
|
+
var Ae = { oneOf: [{ type: "array", items: { type: "string", enum: ye }, uniqueItems: true }, { type: "string", enum: ye }] };
|
|
24861
|
+
var Je = { type: "string", pattern: Q, not: { enum: [...Z] } };
|
|
24862
|
+
var De = { oneOf: [{ type: "array", items: Je, uniqueItems: true }, Je] };
|
|
24863
|
+
var _e = { type: "boolean" };
|
|
24864
|
+
var qe = { type: "string", pattern: "^https?://.*" };
|
|
24865
|
+
var we = { type: "string", pattern: "^https?://.*" };
|
|
24866
|
+
var vo = { type: "object", properties: { to: { type: "string" }, type: { type: "number" } }, additionalProperties: false, nodeTypeName: s.RedirectSource, description: "Source is an absolute path that must start with a forward slash.", documentationLink: "https://redocly.com/docs/realm/config/redirects#sources-map" };
|
|
24867
|
+
var ko = { type: "object", additionalProperties: vo, nodeTypeName: s.Redirects, description: "Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.", documentationLink: "https://redocly.com/docs/realm/config/redirects" };
|
|
24868
|
+
var Io = { type: "string", enum: ["info", "success", "warning", "error"] };
|
|
24591
24869
|
var e = { type: "object", additionalProperties: { type: "string" } };
|
|
24592
|
-
var
|
|
24593
|
-
var
|
|
24594
|
-
var
|
|
24595
|
-
var
|
|
24596
|
-
var
|
|
24597
|
-
var
|
|
24598
|
-
var
|
|
24599
|
-
var
|
|
24600
|
-
var
|
|
24601
|
-
var
|
|
24602
|
-
var
|
|
24603
|
-
var
|
|
24604
|
-
var
|
|
24605
|
-
var
|
|
24606
|
-
var
|
|
24607
|
-
var
|
|
24608
|
-
var
|
|
24609
|
-
var
|
|
24610
|
-
var
|
|
24611
|
-
var
|
|
24612
|
-
var
|
|
24613
|
-
var
|
|
24614
|
-
var
|
|
24615
|
-
var
|
|
24616
|
-
var
|
|
24617
|
-
var
|
|
24618
|
-
var
|
|
24619
|
-
var
|
|
24620
|
-
var
|
|
24621
|
-
var t =
|
|
24622
|
-
var
|
|
24623
|
-
var
|
|
24624
|
-
var
|
|
24625
|
-
var
|
|
24626
|
-
var
|
|
24627
|
-
var
|
|
24628
|
-
var
|
|
24629
|
-
var
|
|
24630
|
-
var
|
|
24631
|
-
var
|
|
24632
|
-
var
|
|
24633
|
-
var
|
|
24634
|
-
var
|
|
24870
|
+
var Jo = { type: "object", properties: { trackingId: { type: "string" }, content: { type: "string" }, dismissible: { type: "boolean" }, target: { type: "string" }, color: Io, rbac: e, startAt: { type: "string", format: "date-time" }, endAt: { type: "string", format: "date-time" } }, required: ["content"], additionalProperties: false };
|
|
24871
|
+
var Lo = { type: "array", items: Jo };
|
|
24872
|
+
var de = { type: "object", properties: { root: { type: "string" }, output: { type: "string", pattern: "(.ya?ml|.json)$" }, rbac: e, openapi: R, graphql: b, theme: { type: "object", properties: { openapi: R, graphql: b }, additionalProperties: false }, title: { type: "string" }, metadata: { type: "object", additionalProperties: true }, ...m }, required: ["root"] };
|
|
24873
|
+
var Ao = { type: "object", additionalProperties: true };
|
|
24874
|
+
var Do = { type: "object", additionalProperties: { type: "object", additionalProperties: true } };
|
|
24875
|
+
var _o = { type: "object", properties: { hide: { type: "boolean" }, title: { type: "string" }, description: { type: "string" }, details: { type: "object", properties: { path: { type: "string" }, content: { type: "string" } }, additionalProperties: false }, excludeFiles: { type: "array", items: { type: "string" } }, sections: { type: "array", items: { type: "object", properties: { title: { type: "string" }, description: { type: "string" }, includeFiles: { type: "array", items: { type: "string" } }, excludeFiles: { type: "array", items: { type: "string" } } }, required: ["title"], additionalProperties: false } } }, additionalProperties: false };
|
|
24876
|
+
var qo = { type: "object", properties: { title: { type: "string" }, projectTitle: { type: "string" }, description: { type: "string" }, siteUrl: { type: "string" }, image: { type: "string" }, keywords: { oneOf: [{ type: "array", items: { type: "string" } }, { type: "string" }] }, lang: { type: "string" }, jsonLd: { type: "object" }, meta: { type: "array", items: { type: "object", properties: { name: { type: "string" }, content: { type: "string" } }, required: ["name", "content"], additionalProperties: false } }, llmstxt: _o }, additionalProperties: false };
|
|
24877
|
+
var wo = { type: "object", properties: { folders: { type: "array", items: { type: "string" } } }, additionalProperties: false };
|
|
24878
|
+
var Mo = { type: "object", properties: { catalogs: { type: "object", properties: { all: e, services: e, domains: e, teams: e, users: e, apiDescriptions: e, dataSchemas: e, apiOperations: e }, additionalProperties: e }, entitiesTypes: { type: "object", properties: { service: e, domain: e, team: e, user: e, apiDescription: e, apiOperation: e, dataSchema: e }, additionalProperties: e }, entitiesGroups: { type: "array", items: { type: "object", properties: { entities: { type: "array", items: { type: "string" } }, config: e }, additionalProperties: false } }, entities: { type: "object", properties: { "**": e }, additionalProperties: e } }, additionalProperties: false };
|
|
24879
|
+
var ge = { type: "object", properties: { teamNamePatterns: { type: "array", items: { type: "string" } }, teamFolders: { type: "array", items: { type: "string" } }, teamFoldersBaseRoles: e, cms: e, reunite: e, features: { type: "object", properties: { aiSearch: e }, additionalProperties: false }, content: { type: "object", properties: { "**": e }, additionalProperties: e }, entitiesCatalog: Mo }, additionalProperties: e };
|
|
24880
|
+
var Uo = { type: "object", properties: { static: { type: "string" } }, additionalProperties: false, required: ["static"] };
|
|
24881
|
+
var Bo = { type: "object", properties: { idp: { type: "string" } }, additionalProperties: false, required: ["idp"] };
|
|
24882
|
+
var Go = { type: "object", properties: { type: { type: "string", const: "GRAVITEE" }, apiBaseUrl: { type: "string" }, env: { type: "string" }, allowApiProductsOutsideCatalog: { type: "boolean" }, stage: { type: "string" }, auth: { oneOf: [Uo, Bo] } }, additionalProperties: false, required: ["type", "apiBaseUrl"] };
|
|
24883
|
+
var zo = { type: "object", properties: { type: { type: "string", const: "OAUTH2" }, tokenEndpoint: { type: "string" }, clientId: { type: "string" }, clientSecret: { type: "string" } }, additionalProperties: false, required: ["type", "tokenEndpoint", "clientId", "clientSecret"] };
|
|
24884
|
+
var Fo = { type: "object", properties: { type: { type: "string", const: "SERVICE_ACCOUNT" }, serviceAccountEmail: { type: "string" }, serviceAccountPrivateKey: { type: "string" } }, additionalProperties: false, required: ["type", "serviceAccountEmail", "serviceAccountPrivateKey"] };
|
|
24885
|
+
var le = { type: "object", properties: { type: { type: "string", const: "APIGEE_X" }, apiUrl: { type: "string" }, stage: { type: "string" }, organizationName: { type: "string" }, ignoreApiProducts: { type: "array", items: { type: "string" } }, allowApiProductsOutsideCatalog: { type: "boolean" }, auth: { type: "object", oneOf: [zo, Fo], discriminator: { propertyName: "type" } } }, additionalProperties: false, required: ["type", "organizationName", "auth"] };
|
|
24886
|
+
var Yo = { ...le, properties: { ...le.properties, type: { type: "string", const: "APIGEE_EDGE" } } };
|
|
24887
|
+
var Vo = { type: "object", oneOf: [le, Yo, Go], discriminator: { propertyName: "type" } };
|
|
24888
|
+
var Ho = { type: "object", required: ["adapters"], additionalProperties: false, properties: { adapters: { type: "array", items: Vo } } };
|
|
24889
|
+
var Le = { type: "object", properties: { defaultLocale: { type: "string" }, locales: { type: "array", items: { type: "object", properties: { code: { type: "string" }, name: { type: "string" } }, required: ["code"] } } }, additionalProperties: false, required: ["defaultLocale"] };
|
|
24890
|
+
var Ko = { type: "object", properties: { name: { type: "string" }, value: { type: "string" } }, additionalProperties: false, required: ["name", "value"] };
|
|
24891
|
+
var Wo = { type: "object", properties: { hide: { type: "boolean" }, docs: { type: "object", properties: { hide: { type: "boolean" }, name: { type: "string" }, ignore: { type: "array", items: { type: "string" } } }, additionalProperties: false }, gateway: { type: "object", properties: { hide: { type: "boolean" }, allowedHosts: { type: "array", items: { type: "string" } } }, additionalProperties: false } }, additionalProperties: false };
|
|
24892
|
+
var $o = { type: "object", properties: { requiresLogin: _e, logoutReturnUrl: qe, residency: we, sso: Ae, idps: De, rbac: ge }, additionalProperties: false, not: { required: ["sso", "idps"] }, description: "Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both." };
|
|
24893
|
+
var x = { type: "object", properties: { imports: { type: "array", items: { type: "string" } }, licenseKey: { type: "string" }, redirects: ko, seo: qo, rbac: ge, apiFunctions: wo, requiresLogin: _e, responseHeaders: { type: "object", additionalProperties: { type: "array", items: Ko } }, mockServer: { type: "object", properties: { off: { type: "boolean" }, position: { type: "string", enum: ["first", "last", "replace", "off"] }, strictExamples: { type: "boolean" }, errorIfForcedExampleNotFound: { type: "boolean" }, description: { type: "string" } } }, apis: { type: "object", additionalProperties: de }, ...m, ssoDirect: To, sso: Ae, idps: De, residency: we, logoutReturnUrl: qe, access: $o, developerOnboarding: Ho, removeAttribution: { type: "boolean" }, i18n: Le, l10n: Le, metadata: Ao, metadataGlobs: Do, ignore: { type: "array", items: { type: "string" } }, theme: a, reunite: Ie, logo: L, navbar: A, products: D, footer: _, sidebar: q, scripts: w, links: M, feedback: c, search: U, aiAssistant: B, colorMode: G, palette: C, navigation: z, codeSnippet: F, markdown: Y, openapi: R, graphql: b, analytics: V, userMenu: H, versionPicker: K, breadcrumbs: W, catalog: P, entitiesCatalog: $, catalogClassic: P, scorecard: O, scorecardClassic: O, scorecards: X, mcp: Wo, corsProxy: { type: "object", properties: { allowedTargets: { type: "array", items: { type: "string" } } }, additionalProperties: false }, banner: Lo }, not: { required: ["sso", "idps"] }, additionalProperties: true };
|
|
24894
|
+
var Xo = { ...x, additionalProperties: false };
|
|
24895
|
+
var Qo = { $id: "root-redocly-config", ...x, properties: { plugins: { type: "array", items: { type: "string" } }, ...x.properties, env: { type: "object", additionalProperties: Xo } }, additionalProperties: false };
|
|
24896
|
+
var me = { type: "object", properties: { logo: a.properties.logo, navbar: a.properties.navbar, footer: a.properties.footer, sidebar: a.properties.sidebar, search: a.properties.search, codeSnippet: a.properties.codeSnippet, breadcrumbs: a.properties.breadcrumbs, openapi: a.properties.openapi, feedback: a.properties.feedback, palette: C, mockServer: x.properties.mockServer, analytics: { type: "object", properties: { ga: re } } }, additionalProperties: true };
|
|
24897
|
+
var Zo = { $id: "product-config-override", type: "object", properties: { ...me.properties, apis: { type: "object", additionalProperties: de }, theme: me }, additionalProperties: false };
|
|
24898
|
+
var fe = ["partOf", "hasParts", "creates", "createdBy", "owns", "ownedBy", "implements", "implementedBy", "dependsOn", "dependencyOf", "uses", "usedBy", "produces", "consumes", "linksTo", "supersedes", "supersededBy", "compatibleWith", "extends", "extendedBy", "relatesTo", "hasMember", "memberOf", "triggers", "triggeredBy", "returns", "returnedBy"];
|
|
24899
|
+
var t = J({ UserEntity: "UserEntity", UserEntityMetadata: "UserEntityMetadata", ApiDescriptionEntity: "ApiDescriptionEntity", ApiDescriptionEntityMetadata: "ApiDescriptionEntityMetadata", ApiOperationEntity: "ApiOperationEntity", ApiOperationEntityMetadata: "ApiOperationEntityMetadata", DataSchemaEntity: "DataSchemaEntity", DataSchemaEntityMetadata: "DataSchemaEntityMetadata", ServiceEntity: "ServiceEntity", DomainEntity: "DomainEntity", TeamEntity: "TeamEntity", Entity: "Entity", EntityMetadata: "EntityMetadata", EntityLinkList: "EntityLinkList", EntityLink: "EntityLink", EntityRelation: "EntityRelation", EntityRelationList: "EntityRelationList", EntityContact: "EntityContact", EntitySlackContact: "EntitySlackContact", EntitySlackChannel: "EntitySlackChannel" });
|
|
24900
|
+
var ei = { type: "object", nodeTypeName: t.UserEntityMetadata, properties: { email: { type: "string", description: "Email of the user" } }, required: ["email"], additionalProperties: true };
|
|
24901
|
+
var ti = { type: "object", nodeTypeName: t.ApiDescriptionEntityMetadata, properties: { specType: { type: "string", enum: ["jsonschema", "openapi", "asyncapi", "avro", "zod", "graphql", "protobuf", "arazzo"], description: "Type of the API description" }, descriptionFile: { type: "string", description: "Path to the file containing the API description" } }, required: ["specType", "descriptionFile"], additionalProperties: true };
|
|
24902
|
+
var oi = { type: "object", nodeTypeName: t.ApiOperationEntityMetadata, properties: { method: { type: "string", enum: ["GET", "POST", "PUT", "DELETE", "PATCH", "MUTATION", "QUERY", "SUBSCRIBE", "PUBLISH"], description: "HTTP method of the API operation" }, path: { type: "string", description: "Path of the API operation" }, payload: { type: "array", items: { type: "string", description: "Related dataSchema name" } }, responses: { type: "array", items: { type: "string", description: "Related dataSchema name" } } }, required: ["method", "path"], additionalProperties: true };
|
|
24903
|
+
var ii = { type: "object", nodeTypeName: t.DataSchemaEntityMetadata, properties: { specType: { type: "string", enum: ["jsonschema", "openapi", "asyncapi", "avro", "zod", "graphql", "protobuf", "arazzo"], description: "Specification type of the data schema" }, schema: { type: "string", description: "Inline schema of the data structure" }, sdl: { type: "string", description: "SDL of the data structure" } }, required: ["specType"], additionalProperties: true };
|
|
24904
|
+
var si = { type: "object", properties: {}, nodeTypeName: t.EntityMetadata, additionalProperties: true };
|
|
24905
|
+
var ri = { type: "object", nodeTypeName: t.EntitySlackChannel, properties: { name: { type: "string", minLength: 2, maxLength: 150 }, url: { type: "string" } }, required: ["name"], additionalProperties: false };
|
|
24906
|
+
var ai = { type: "object", nodeTypeName: t.EntitySlackContact, properties: { channels: { type: "array", items: ri } }, required: ["channels"], additionalProperties: false };
|
|
24907
|
+
var ni = { type: "object", nodeTypeName: t.EntityContact, properties: { slack: ai }, additionalProperties: false };
|
|
24908
|
+
var pi = { type: "object", nodeTypeName: t.EntityLink, properties: { label: { type: "string", minLength: 2, maxLength: 150 }, url: { type: "string" } }, required: ["label", "url"], additionalProperties: false };
|
|
24909
|
+
var ci = { type: "object", nodeTypeName: t.EntityRelation, properties: { type: { type: "string", enum: fe }, key: { type: "string", minLength: 2, maxLength: 100 }, version: { type: "string" }, revision: { type: "string" } }, required: ["type", "key"], additionalProperties: false };
|
|
24910
|
+
var d = { version: { type: "string" }, key: { type: "string", pattern: "^[a-z0-9]+(?:-[a-z0-9]+)*$", minLength: 2, maxLength: 150 }, type: { type: "string", enum: ["user", "data-schema", "api-operation", "api-description", "service", "domain", "team"] }, title: { type: "string", minLength: 2, maxLength: 200 }, summary: { type: "string", minLength: 1, maxLength: 500 }, tags: { type: "array", items: { type: "string", minLength: 1, maxLength: 50 } }, git: { type: "array", items: { type: "string" } }, contact: ni, links: { type: "array", nodeTypeName: t.EntityLinkList, items: pi }, relations: { type: "array", nodeTypeName: t.EntityRelationList, items: ci }, metadata: si };
|
|
24911
|
+
var hs = { type: "object", discriminator: { propertyName: "type" }, oneOf: [{ type: "object", properties: { ...d, type: { type: "string", const: "user" }, metadata: ei }, required: ["key", "title", "type", "metadata"], additionalProperties: false, nodeTypeName: t.UserEntity }, { type: "object", nodeTypeName: t.ApiOperationEntity, properties: { ...d, type: { type: "string", const: "api-operation" }, metadata: oi }, required: ["key", "title", "type", "metadata"], additionalProperties: false }, { type: "object", nodeTypeName: t.DataSchemaEntity, properties: { ...d, type: { type: "string", const: "data-schema" }, metadata: ii }, required: ["key", "title", "type", "metadata"], additionalProperties: false }, { type: "object", nodeTypeName: t.ApiDescriptionEntity, properties: { ...d, type: { type: "string", const: "api-description" }, metadata: ti }, required: ["key", "title", "type", "metadata"], additionalProperties: false }, { type: "object", nodeTypeName: t.ServiceEntity, properties: { ...d, type: { type: "string", const: "service" } }, required: ["key", "title", "type"], additionalProperties: false }, { type: "object", nodeTypeName: t.DomainEntity, properties: { ...d, type: { type: "string", const: "domain" } }, required: ["key", "title", "type"], additionalProperties: false }, { type: "object", nodeTypeName: t.TeamEntity, properties: { ...d, type: { type: "string", const: "team" } }, required: ["key", "title", "type"], additionalProperties: false }] };
|
|
24912
|
+
var bs = { type: "object", nodeTypeName: t.Entity, properties: { ...d }, required: ["key", "title", "type"], additionalProperties: false };
|
|
24635
24913
|
|
|
24636
24914
|
// ../core/lib/types/redocly-yaml.js
|
|
24637
24915
|
import path3 from "node:path";
|
|
@@ -24799,13 +25077,13 @@ function transformJSONSchemaToNodeType(propertyName, schema, ctx) {
|
|
|
24799
25077
|
throw new Error(`Unexpected discriminator without a propertyName in ${propertyName}.`);
|
|
24800
25078
|
}
|
|
24801
25079
|
const discriminatorMapping = {};
|
|
24802
|
-
const oneOfs = schema.oneOf.map((option,
|
|
25080
|
+
const oneOfs = schema.oneOf.map((option, i) => {
|
|
24803
25081
|
if (typeof option === "boolean") {
|
|
24804
|
-
throw new Error(`Unexpected boolean schema in ${propertyName} at position ${
|
|
25082
|
+
throw new Error(`Unexpected boolean schema in ${propertyName} at position ${i} in oneOf.`);
|
|
24805
25083
|
}
|
|
24806
25084
|
const discriminatedProperty = option?.properties?.[discriminatedPropertyName];
|
|
24807
25085
|
if (!discriminatedProperty || typeof discriminatedProperty === "boolean") {
|
|
24808
|
-
throw new Error(`Unexpected property '${discriminatedProperty}' schema in ${propertyName} at position ${
|
|
25086
|
+
throw new Error(`Unexpected property '${discriminatedProperty}' schema in ${propertyName} at position ${i} in oneOf.`);
|
|
24809
25087
|
}
|
|
24810
25088
|
const discriminatorValue = discriminatedProperty.const;
|
|
24811
25089
|
const actualTypeName = transformJSONSchemaToNodeType(discriminatorValue, option, ctx);
|
|
@@ -24827,7 +25105,7 @@ function transformJSONSchemaToNodeType(propertyName, schema, ctx) {
|
|
|
24827
25105
|
return findOneOf(schema.oneOf, oneOfs)(value, key);
|
|
24828
25106
|
};
|
|
24829
25107
|
} else {
|
|
24830
|
-
const oneOfs = schema.oneOf.map((option,
|
|
25108
|
+
const oneOfs = schema.oneOf.map((option, i) => transformJSONSchemaToNodeType(propertyName + "_" + i, option, ctx));
|
|
24831
25109
|
return findOneOf(schema.oneOf, oneOfs);
|
|
24832
25110
|
}
|
|
24833
25111
|
}
|
|
@@ -25556,9 +25834,9 @@ var CoreConfigTypes = {
|
|
|
25556
25834
|
Preprocessors,
|
|
25557
25835
|
Assertions
|
|
25558
25836
|
};
|
|
25559
|
-
var { theme: _2, ...propertiesWithoutTheme } =
|
|
25837
|
+
var { theme: _2, ...propertiesWithoutTheme } = Qo.properties;
|
|
25560
25838
|
var redoclyConfigSchemaWithoutTheme = {
|
|
25561
|
-
...
|
|
25839
|
+
...Qo,
|
|
25562
25840
|
properties: propertiesWithoutTheme
|
|
25563
25841
|
};
|
|
25564
25842
|
var ConfigTypes = createConfigTypes(redoclyConfigSchemaWithoutTheme);
|
|
@@ -25768,8 +26046,8 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
25768
26046
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
25769
26047
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
25770
26048
|
var __copyProps = (to2, from, except, desc) => {
|
|
25771
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from),
|
|
25772
|
-
key = keys[
|
|
26049
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n2 = keys.length, key; i < n2; i++) {
|
|
26050
|
+
key = keys[i];
|
|
25773
26051
|
if (!__hasOwnProp.call(to2, key) && key !== except) __defProp(to2, key, {
|
|
25774
26052
|
get: ((k2) => from[k2]).bind(null, key),
|
|
25775
26053
|
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
@@ -25887,18 +26165,18 @@ var require_snippet = /* @__PURE__ */ __commonJSMin(((exports, module2) => {
|
|
|
25887
26165
|
let result = "";
|
|
25888
26166
|
const lineNoLength = Math.min(mark.line + options2.linesAfter, lineEnds.length).toString().length;
|
|
25889
26167
|
const maxLineLength = options2.maxLength - (options2.indent + lineNoLength + 3);
|
|
25890
|
-
for (let
|
|
25891
|
-
if (foundLineNo -
|
|
25892
|
-
const line2 = getLine(mark.buffer, lineStarts[foundLineNo -
|
|
25893
|
-
result = common.repeat(" ", options2.indent) + padStart((mark.line -
|
|
26168
|
+
for (let i = 1; i <= options2.linesBefore; i++) {
|
|
26169
|
+
if (foundLineNo - i < 0) break;
|
|
26170
|
+
const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
26171
|
+
result = common.repeat(" ", options2.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + "\n" + result;
|
|
25894
26172
|
}
|
|
25895
26173
|
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
25896
26174
|
result += common.repeat(" ", options2.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + "\n";
|
|
25897
26175
|
result += common.repeat("-", options2.indent + lineNoLength + 3 + line.pos) + "^\n";
|
|
25898
|
-
for (let
|
|
25899
|
-
if (foundLineNo +
|
|
25900
|
-
const line2 = getLine(mark.buffer, lineStarts[foundLineNo +
|
|
25901
|
-
result += common.repeat(" ", options2.indent) + padStart((mark.line +
|
|
26176
|
+
for (let i = 1; i <= options2.linesAfter; i++) {
|
|
26177
|
+
if (foundLineNo + i >= lineEnds.length) break;
|
|
26178
|
+
const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
26179
|
+
result += common.repeat(" ", options2.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + "\n";
|
|
25902
26180
|
}
|
|
25903
26181
|
return result.replace(/\n$/, "");
|
|
25904
26182
|
}
|
|
@@ -26647,9 +26925,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin(((exports, module2) => {
|
|
|
26647
26925
|
}
|
|
26648
26926
|
var simpleEscapeCheck = new Array(256);
|
|
26649
26927
|
var simpleEscapeMap = new Array(256);
|
|
26650
|
-
for (let
|
|
26651
|
-
simpleEscapeCheck[
|
|
26652
|
-
simpleEscapeMap[
|
|
26928
|
+
for (let i = 0; i < 256; i++) {
|
|
26929
|
+
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
26930
|
+
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
26653
26931
|
}
|
|
26654
26932
|
function State(input, options2) {
|
|
26655
26933
|
this.input = input;
|
|
@@ -27768,7 +28046,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module2) => {
|
|
|
27768
28046
|
var STYLE_FOLDED = 4;
|
|
27769
28047
|
var STYLE_DOUBLE = 5;
|
|
27770
28048
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
27771
|
-
let
|
|
28049
|
+
let i;
|
|
27772
28050
|
let char = 0;
|
|
27773
28051
|
let prevChar = null;
|
|
27774
28052
|
let hasLineBreak = false;
|
|
@@ -27776,26 +28054,26 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module2) => {
|
|
|
27776
28054
|
const shouldTrackWidth = lineWidth !== -1;
|
|
27777
28055
|
let previousLineBreak = -1;
|
|
27778
28056
|
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
27779
|
-
if (singleLineOnly || forceQuotes) for (
|
|
27780
|
-
char = codePointAt(string,
|
|
28057
|
+
if (singleLineOnly || forceQuotes) for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
28058
|
+
char = codePointAt(string, i);
|
|
27781
28059
|
if (!isPrintable(char)) return STYLE_DOUBLE;
|
|
27782
28060
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
27783
28061
|
prevChar = char;
|
|
27784
28062
|
}
|
|
27785
28063
|
else {
|
|
27786
|
-
for (
|
|
27787
|
-
char = codePointAt(string,
|
|
28064
|
+
for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
28065
|
+
char = codePointAt(string, i);
|
|
27788
28066
|
if (char === CHAR_LINE_FEED) {
|
|
27789
28067
|
hasLineBreak = true;
|
|
27790
28068
|
if (shouldTrackWidth) {
|
|
27791
|
-
hasFoldableLine = hasFoldableLine ||
|
|
27792
|
-
previousLineBreak =
|
|
28069
|
+
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
28070
|
+
previousLineBreak = i;
|
|
27793
28071
|
}
|
|
27794
28072
|
} else if (!isPrintable(char)) return STYLE_DOUBLE;
|
|
27795
28073
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
27796
28074
|
prevChar = char;
|
|
27797
28075
|
}
|
|
27798
|
-
hasFoldableLine = hasFoldableLine || shouldTrackWidth &&
|
|
28076
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
27799
28077
|
}
|
|
27800
28078
|
if (!hasLineBreak && !hasFoldableLine) {
|
|
27801
28079
|
if (plain && !forceQuotes && !testAmbiguousType(string)) return STYLE_PLAIN;
|
|
@@ -27887,12 +28165,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module2) => {
|
|
|
27887
28165
|
function escapeString(string) {
|
|
27888
28166
|
let result = "";
|
|
27889
28167
|
let char = 0;
|
|
27890
|
-
for (let
|
|
27891
|
-
char = codePointAt(string,
|
|
28168
|
+
for (let i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
28169
|
+
char = codePointAt(string, i);
|
|
27892
28170
|
const escapeSeq = ESCAPE_SEQUENCES[char];
|
|
27893
28171
|
if (!escapeSeq && isPrintable(char)) {
|
|
27894
|
-
result += string[
|
|
27895
|
-
if (char >= 65536) result += string[
|
|
28172
|
+
result += string[i];
|
|
28173
|
+
if (char >= 65536) result += string[i + 1];
|
|
27896
28174
|
} else result += escapeSeq || encodeHex(char);
|
|
27897
28175
|
}
|
|
27898
28176
|
return result;
|
|
@@ -28062,10 +28340,10 @@ var require_dumper = /* @__PURE__ */ __commonJSMin(((exports, module2) => {
|
|
|
28062
28340
|
if (duplicatesIndexes.indexOf(index) === -1) duplicatesIndexes.push(index);
|
|
28063
28341
|
} else {
|
|
28064
28342
|
objects.push(object);
|
|
28065
|
-
if (Array.isArray(object)) for (let
|
|
28343
|
+
if (Array.isArray(object)) for (let i = 0, length = object.length; i < length; i += 1) inspectNode(object[i], objects, duplicatesIndexes);
|
|
28066
28344
|
else {
|
|
28067
28345
|
const objectKeyList = Object.keys(object);
|
|
28068
|
-
for (let
|
|
28346
|
+
for (let i = 0, length = objectKeyList.length; i < length; i += 1) inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
28069
28347
|
}
|
|
28070
28348
|
}
|
|
28071
28349
|
}
|
|
@@ -28170,12 +28448,12 @@ function getIntersectionLength(keys, properties) {
|
|
|
28170
28448
|
function isOrdered(value, options2) {
|
|
28171
28449
|
const direction = options2.direction || options2;
|
|
28172
28450
|
const property = options2.property;
|
|
28173
|
-
for (let
|
|
28174
|
-
let currValue = value[
|
|
28175
|
-
let prevVal = value[
|
|
28451
|
+
for (let i = 1; i < value.length; i++) {
|
|
28452
|
+
let currValue = value[i];
|
|
28453
|
+
let prevVal = value[i - 1];
|
|
28176
28454
|
if (property) {
|
|
28177
|
-
const currPropValue = value[
|
|
28178
|
-
const prevPropValue = value[
|
|
28455
|
+
const currPropValue = value[i][property];
|
|
28456
|
+
const prevPropValue = value[i - 1][property];
|
|
28179
28457
|
if (!currPropValue || !prevPropValue) {
|
|
28180
28458
|
return false;
|
|
28181
28459
|
}
|
|
@@ -28858,19 +29136,19 @@ function filter(node, ctx, criteria) {
|
|
|
28858
29136
|
const { parent, key } = ctx;
|
|
28859
29137
|
let didDelete = false;
|
|
28860
29138
|
if (Array.isArray(node)) {
|
|
28861
|
-
for (let
|
|
28862
|
-
if (isRef(node[
|
|
28863
|
-
const resolved = ctx.resolve(node[
|
|
29139
|
+
for (let i = 0; i < node.length; i++) {
|
|
29140
|
+
if (isRef(node[i])) {
|
|
29141
|
+
const resolved = ctx.resolve(node[i]);
|
|
28864
29142
|
if (criteria(resolved.node)) {
|
|
28865
|
-
node.splice(
|
|
29143
|
+
node.splice(i, 1);
|
|
28866
29144
|
didDelete = true;
|
|
28867
|
-
|
|
29145
|
+
i--;
|
|
28868
29146
|
}
|
|
28869
29147
|
}
|
|
28870
|
-
if (criteria(node[
|
|
28871
|
-
node.splice(
|
|
29148
|
+
if (criteria(node[i])) {
|
|
29149
|
+
node.splice(i, 1);
|
|
28872
29150
|
didDelete = true;
|
|
28873
|
-
|
|
29151
|
+
i--;
|
|
28874
29152
|
}
|
|
28875
29153
|
}
|
|
28876
29154
|
} else if (isPlainObject(node)) {
|
|
@@ -29126,26 +29404,26 @@ var RemoveXInternal = ({ internalFlagProperty = DEFAULT_INTERNAL_PROPERTY_NAME }
|
|
|
29126
29404
|
const { parent, key } = ctx;
|
|
29127
29405
|
let didDelete = false;
|
|
29128
29406
|
if (Array.isArray(node)) {
|
|
29129
|
-
for (let
|
|
29130
|
-
if (isRef(node[
|
|
29131
|
-
const resolved = ctx.resolve(node[
|
|
29407
|
+
for (let i = 0; i < node.length; i++) {
|
|
29408
|
+
if (isRef(node[i])) {
|
|
29409
|
+
const resolved = ctx.resolve(node[i]);
|
|
29132
29410
|
if (resolved.node?.[internalFlagProperty]) {
|
|
29133
29411
|
if (isPlainObject(parent.discriminator?.mapping)) {
|
|
29134
29412
|
for (const mapping in parent.discriminator.mapping) {
|
|
29135
|
-
if (originalMapping2?.[mapping] === node[
|
|
29413
|
+
if (originalMapping2?.[mapping] === node[i].$ref) {
|
|
29136
29414
|
delete parent.discriminator.mapping[mapping];
|
|
29137
29415
|
}
|
|
29138
29416
|
}
|
|
29139
29417
|
}
|
|
29140
|
-
node.splice(
|
|
29418
|
+
node.splice(i, 1);
|
|
29141
29419
|
didDelete = true;
|
|
29142
|
-
|
|
29420
|
+
i--;
|
|
29143
29421
|
}
|
|
29144
29422
|
}
|
|
29145
|
-
if (node[
|
|
29146
|
-
node.splice(
|
|
29423
|
+
if (node[i]?.[internalFlagProperty]) {
|
|
29424
|
+
node.splice(i, 1);
|
|
29147
29425
|
didDelete = true;
|
|
29148
|
-
|
|
29426
|
+
i--;
|
|
29149
29427
|
}
|
|
29150
29428
|
}
|
|
29151
29429
|
} else if (isPlainObject(node)) {
|
|
@@ -29857,14 +30135,14 @@ function getSuggest(given, variants) {
|
|
|
29857
30135
|
if (typeof given !== "string" || !variants.length)
|
|
29858
30136
|
return [];
|
|
29859
30137
|
const distances = [];
|
|
29860
|
-
for (let
|
|
29861
|
-
const distance = (0, import_js_levenshtein.default)(given, variants[
|
|
30138
|
+
for (let i = 0; i < variants.length; i++) {
|
|
30139
|
+
const distance = (0, import_js_levenshtein.default)(given, variants[i]);
|
|
29862
30140
|
if (distance < 4) {
|
|
29863
|
-
distances.push({ distance, variant: variants[
|
|
30141
|
+
distances.push({ distance, variant: variants[i] });
|
|
29864
30142
|
}
|
|
29865
30143
|
}
|
|
29866
30144
|
distances.sort((a2, b2) => a2.distance - b2.distance);
|
|
29867
|
-
return distances.map((
|
|
30145
|
+
return distances.map((d2) => d2.variant);
|
|
29868
30146
|
}
|
|
29869
30147
|
function validateExample({ example, schema, options: options2, reference }) {
|
|
29870
30148
|
const { location, ctx, validator, allowAdditionalProperties, ajvContext } = options2;
|
|
@@ -30037,18 +30315,18 @@ var NoRequiredSchemaPropertiesUndefined = () => {
|
|
|
30037
30315
|
const matchesChild = (s2) => resolveSchema(s2, ctx).schema === child;
|
|
30038
30316
|
return !!(parent.allOf?.some(matchesChild) || parent.anyOf?.some(matchesChild) || parent.oneOf?.some(matchesChild));
|
|
30039
30317
|
};
|
|
30040
|
-
const findCompositionRoot = (
|
|
30041
|
-
if (
|
|
30318
|
+
const findCompositionRoot = (i, child) => {
|
|
30319
|
+
if (i < 0)
|
|
30042
30320
|
return void 0;
|
|
30043
|
-
const parent = parents[
|
|
30044
|
-
return isCompositionChild(parent, child) ? findCompositionRoot(
|
|
30321
|
+
const parent = parents[i];
|
|
30322
|
+
return isCompositionChild(parent, child) ? findCompositionRoot(i - 1, parent) ?? parent : void 0;
|
|
30045
30323
|
};
|
|
30046
30324
|
const compositionRoot = findCompositionRoot(parents.length - 2, currentSchema);
|
|
30047
|
-
for (const [
|
|
30325
|
+
for (const [i, requiredProperty] of currentSchema.required.entries()) {
|
|
30048
30326
|
if (!hasProperty(currentSchema, requiredProperty, /* @__PURE__ */ new Set()) && !hasProperty(compositionRoot, requiredProperty, /* @__PURE__ */ new Set())) {
|
|
30049
30327
|
ctx.report({
|
|
30050
30328
|
message: `Required property '${requiredProperty}' is not defined.`,
|
|
30051
|
-
location: ctx.location.child(["required",
|
|
30329
|
+
location: ctx.location.child(["required", i]),
|
|
30052
30330
|
reference: "https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"
|
|
30053
30331
|
});
|
|
30054
30332
|
}
|
|
@@ -30235,10 +30513,10 @@ var Struct = () => {
|
|
|
30235
30513
|
propValue = resolve7(propValue).node;
|
|
30236
30514
|
}
|
|
30237
30515
|
if (propSchema.items && propSchema.items?.enum && Array.isArray(propValue)) {
|
|
30238
|
-
for (let
|
|
30239
|
-
validateSchemaEnumType(propSchema.items?.enum, propValue[
|
|
30516
|
+
for (let i = 0; i < propValue.length; i++) {
|
|
30517
|
+
validateSchemaEnumType(propSchema.items?.enum, propValue[i], propName, refLocation, {
|
|
30240
30518
|
report,
|
|
30241
|
-
location: location.child([propName,
|
|
30519
|
+
location: location.child([propName, i])
|
|
30242
30520
|
}, propSchema.items?.documentationLink);
|
|
30243
30521
|
}
|
|
30244
30522
|
}
|
|
@@ -30256,13 +30534,13 @@ var Struct = () => {
|
|
|
30256
30534
|
ignoreNextVisitorsOnNode();
|
|
30257
30535
|
} else if (propValueType === "array" && propSchema.items?.type) {
|
|
30258
30536
|
const itemsType = propSchema.items?.type;
|
|
30259
|
-
for (let
|
|
30260
|
-
const item = propValue[
|
|
30537
|
+
for (let i = 0; i < propValue.length; i++) {
|
|
30538
|
+
const item = propValue[i];
|
|
30261
30539
|
if (!matchesJsonSchemaType(item, itemsType, false)) {
|
|
30262
30540
|
report({
|
|
30263
30541
|
message: `Expected type \`${itemsType}\` but got \`${oasTypeOf(item)}\`.`,
|
|
30264
30542
|
from: refLocation,
|
|
30265
|
-
location: propLocation.child([
|
|
30543
|
+
location: propLocation.child([i])
|
|
30266
30544
|
});
|
|
30267
30545
|
}
|
|
30268
30546
|
}
|
|
@@ -31151,11 +31429,11 @@ var TagsAlphabetical = ({ ignoreCase = false }) => {
|
|
|
31151
31429
|
Root(root, { report, location }) {
|
|
31152
31430
|
if (!root.tags)
|
|
31153
31431
|
return;
|
|
31154
|
-
for (let
|
|
31155
|
-
if (getTagName(root.tags[
|
|
31432
|
+
for (let i = 0; i < root.tags.length - 1; i++) {
|
|
31433
|
+
if (getTagName(root.tags[i], ignoreCase) > getTagName(root.tags[i + 1], ignoreCase)) {
|
|
31156
31434
|
report({
|
|
31157
31435
|
message: "The `tags` array should be in alphabetical order.",
|
|
31158
|
-
location: location.child(["tags",
|
|
31436
|
+
location: location.child(["tags", i]),
|
|
31159
31437
|
reference: "https://redocly.com/docs/cli/rules/oas/tags-alphabetical"
|
|
31160
31438
|
});
|
|
31161
31439
|
}
|
|
@@ -31599,16 +31877,16 @@ function arePathsAmbiguous(a2, b2) {
|
|
|
31599
31877
|
let aVars = 0;
|
|
31600
31878
|
let bVars = 0;
|
|
31601
31879
|
let ambiguous = true;
|
|
31602
|
-
for (let
|
|
31603
|
-
const aIsVar = partsA[
|
|
31604
|
-
const bIsVar = partsB[
|
|
31880
|
+
for (let i = 0; i < partsA.length; i++) {
|
|
31881
|
+
const aIsVar = partsA[i].match(/^{.+?}$/);
|
|
31882
|
+
const bIsVar = partsB[i].match(/^{.+?}$/);
|
|
31605
31883
|
if (aIsVar || bIsVar) {
|
|
31606
31884
|
if (aIsVar)
|
|
31607
31885
|
aVars++;
|
|
31608
31886
|
if (bIsVar)
|
|
31609
31887
|
bVars++;
|
|
31610
31888
|
continue;
|
|
31611
|
-
} else if (partsA[
|
|
31889
|
+
} else if (partsA[i] !== partsB[i]) {
|
|
31612
31890
|
ambiguous = false;
|
|
31613
31891
|
}
|
|
31614
31892
|
}
|
|
@@ -32073,11 +32351,11 @@ var OperationTagDefined = () => {
|
|
|
32073
32351
|
},
|
|
32074
32352
|
Operation(operation, { report, location }) {
|
|
32075
32353
|
if (operation?.tags) {
|
|
32076
|
-
for (let
|
|
32077
|
-
if (!definedTags.has(operation.tags[
|
|
32354
|
+
for (let i = 0; i < operation.tags.length; i++) {
|
|
32355
|
+
if (!definedTags.has(operation.tags[i])) {
|
|
32078
32356
|
report({
|
|
32079
32357
|
message: `Operation tags should be defined in global tags.`,
|
|
32080
|
-
location: location.child(["tags",
|
|
32358
|
+
location: location.child(["tags", i]),
|
|
32081
32359
|
reference: "https://redocly.com/docs/cli/rules/oas/operation-tag-defined"
|
|
32082
32360
|
});
|
|
32083
32361
|
}
|
|
@@ -32139,13 +32417,13 @@ var PathHttpVerbsOrder = (opts) => {
|
|
|
32139
32417
|
return {
|
|
32140
32418
|
PathItem(path11, { report, location }) {
|
|
32141
32419
|
const httpVerbs = Object.keys(path11).filter((k2) => order.includes(k2));
|
|
32142
|
-
for (let
|
|
32143
|
-
const aIdx = order.indexOf(httpVerbs[
|
|
32144
|
-
const bIdx = order.indexOf(httpVerbs[
|
|
32420
|
+
for (let i = 0; i < httpVerbs.length - 1; i++) {
|
|
32421
|
+
const aIdx = order.indexOf(httpVerbs[i]);
|
|
32422
|
+
const bIdx = order.indexOf(httpVerbs[i + 1]);
|
|
32145
32423
|
if (bIdx < aIdx) {
|
|
32146
32424
|
report({
|
|
32147
32425
|
message: "Operation http verbs must be ordered.",
|
|
32148
|
-
location: { reportOnKey: true, ...location.child(httpVerbs[
|
|
32426
|
+
location: { reportOnKey: true, ...location.child(httpVerbs[i + 1]) },
|
|
32149
32427
|
reference: "https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"
|
|
32150
32428
|
});
|
|
32151
32429
|
}
|
|
@@ -32291,7 +32569,7 @@ var createOperationHandlers = (pathContext, currentOperationParams, depth = 0) =
|
|
|
32291
32569
|
};
|
|
32292
32570
|
};
|
|
32293
32571
|
var extractTemplateParams = (path11) => {
|
|
32294
|
-
return new Set(Array.from(path11.matchAll(pathRegex)).map((
|
|
32572
|
+
return new Set(Array.from(path11.matchAll(pathRegex)).map((m2) => m2[1]));
|
|
32295
32573
|
};
|
|
32296
32574
|
var collectPathParamsFromOperation = (parameter, targetSet) => {
|
|
32297
32575
|
if (isPlainObject(parameter) && "in" in parameter && "name" in parameter) {
|
|
@@ -35827,14 +36105,14 @@ async function resolveDocument(opts) {
|
|
|
35827
36105
|
return;
|
|
35828
36106
|
}
|
|
35829
36107
|
const isTypeAFunction = typeof itemsType === "function";
|
|
35830
|
-
for (let
|
|
35831
|
-
let itemType = isTypeAFunction ? itemsType(node[
|
|
36108
|
+
for (let i = 0; i < node.length; i++) {
|
|
36109
|
+
let itemType = isTypeAFunction ? itemsType(node[i], joinPointer(nodeAbsoluteRef, i)) : itemsType;
|
|
35832
36110
|
if (itemType === void 0 && type2 !== unknownType && type2 !== SpecExtension) {
|
|
35833
36111
|
continue;
|
|
35834
36112
|
}
|
|
35835
|
-
const value = itemType?.directResolveAs ? { $ref: node[
|
|
36113
|
+
const value = itemType?.directResolveAs ? { $ref: node[i] } : node[i];
|
|
35836
36114
|
itemType = itemType?.directResolveAs || itemType;
|
|
35837
|
-
walk(value, isNamedType(itemType) ? itemType : unknownType, joinPointer(nodeAbsoluteRef,
|
|
36115
|
+
walk(value, isNamedType(itemType) ? itemType : unknownType, joinPointer(nodeAbsoluteRef, i));
|
|
35838
36116
|
}
|
|
35839
36117
|
return;
|
|
35840
36118
|
}
|
|
@@ -36561,16 +36839,16 @@ function walkDocument(opts) {
|
|
|
36561
36839
|
const itemsType = type.items;
|
|
36562
36840
|
if (itemsType !== void 0) {
|
|
36563
36841
|
const isTypeAFunction = typeof itemsType === "function";
|
|
36564
|
-
for (let
|
|
36565
|
-
const itemLocation = resolvedLocation.child([
|
|
36566
|
-
let itemType = isTypeAFunction ? itemsType(resolvedNode[
|
|
36567
|
-
let itemValue = resolvedNode[
|
|
36842
|
+
for (let i = 0; i < resolvedNode.length; i++) {
|
|
36843
|
+
const itemLocation = resolvedLocation.child([i]);
|
|
36844
|
+
let itemType = isTypeAFunction ? itemsType(resolvedNode[i], itemLocation.absolutePointer) : itemsType;
|
|
36845
|
+
let itemValue = resolvedNode[i];
|
|
36568
36846
|
if (itemType?.directResolveAs) {
|
|
36569
36847
|
itemType = itemType.directResolveAs;
|
|
36570
36848
|
itemValue = { $ref: itemValue };
|
|
36571
36849
|
}
|
|
36572
36850
|
if (isNamedType(itemType)) {
|
|
36573
|
-
walkNode(itemValue, itemType, itemLocation, resolvedNode,
|
|
36851
|
+
walkNode(itemValue, itemType, itemLocation, resolvedNode, i);
|
|
36574
36852
|
}
|
|
36575
36853
|
}
|
|
36576
36854
|
}
|
|
@@ -37547,15 +37825,15 @@ function getCodeframe(location, color) {
|
|
|
37547
37825
|
skipLines = 0;
|
|
37548
37826
|
const prefixedLines = [];
|
|
37549
37827
|
let currentPad = 0;
|
|
37550
|
-
for (let
|
|
37551
|
-
if (skipLines > 0 &&
|
|
37828
|
+
for (let i = startLineNum; i <= endLineNum; i++) {
|
|
37829
|
+
if (skipLines > 0 && i >= endLineNum - skipLines)
|
|
37552
37830
|
break;
|
|
37553
|
-
const line = lines[
|
|
37831
|
+
const line = lines[i - 1] || "";
|
|
37554
37832
|
if (line !== "")
|
|
37555
37833
|
currentPad = padSize(line);
|
|
37556
|
-
const startIdx =
|
|
37557
|
-
const endIdx =
|
|
37558
|
-
prefixedLines.push([`${
|
|
37834
|
+
const startIdx = i === startLineNum ? start.col - 1 : currentPad;
|
|
37835
|
+
const endIdx = i === endLineNum ? end.col - 1 : line.length;
|
|
37836
|
+
prefixedLines.push([`${i}`, markLine(line, startIdx, endIdx, colorize.red)]);
|
|
37559
37837
|
if (!color)
|
|
37560
37838
|
prefixedLines.push(["", underlineLine(line, startIdx, endIdx)]);
|
|
37561
37839
|
}
|
|
@@ -37619,9 +37897,9 @@ function leftPad(len, str) {
|
|
|
37619
37897
|
return whitespace(len - str.length) + str;
|
|
37620
37898
|
}
|
|
37621
37899
|
function padSize(line) {
|
|
37622
|
-
for (let
|
|
37623
|
-
if (line[
|
|
37624
|
-
return
|
|
37900
|
+
for (let i = 0; i < line.length; i++) {
|
|
37901
|
+
if (line[i] !== " ")
|
|
37902
|
+
return i;
|
|
37625
37903
|
}
|
|
37626
37904
|
return line.length;
|
|
37627
37905
|
}
|
|
@@ -37641,18 +37919,18 @@ function positionsToLoc(source, startPos, endPos) {
|
|
|
37641
37919
|
let currentLine = 1;
|
|
37642
37920
|
let currentCol = 1;
|
|
37643
37921
|
let start = { line: 1, col: 1 };
|
|
37644
|
-
for (let
|
|
37645
|
-
if (
|
|
37922
|
+
for (let i = 0; i < endPos - 1; i++) {
|
|
37923
|
+
if (i === startPos - 1) {
|
|
37646
37924
|
start = { line: currentLine, col: currentCol + 1 };
|
|
37647
37925
|
}
|
|
37648
|
-
if (source[
|
|
37926
|
+
if (source[i] === "\n") {
|
|
37649
37927
|
currentLine++;
|
|
37650
37928
|
currentCol = 1;
|
|
37651
|
-
if (
|
|
37929
|
+
if (i === startPos - 1) {
|
|
37652
37930
|
start = { line: currentLine, col: currentCol };
|
|
37653
37931
|
}
|
|
37654
|
-
if (source[
|
|
37655
|
-
|
|
37932
|
+
if (source[i + 1] === "\r")
|
|
37933
|
+
i++;
|
|
37656
37934
|
continue;
|
|
37657
37935
|
}
|
|
37658
37936
|
currentCol++;
|
|
@@ -37668,7 +37946,7 @@ function getAstNodeByPointer(root, pointer, reportOnKey) {
|
|
|
37668
37946
|
let currentNode = root;
|
|
37669
37947
|
for (const key of pointerSegments) {
|
|
37670
37948
|
if (currentNode.kind === yamlAst.Kind.MAP) {
|
|
37671
|
-
const mapping = currentNode.mappings.find((
|
|
37949
|
+
const mapping = currentNode.mappings.find((m2) => m2.key.value === key);
|
|
37672
37950
|
if (!mapping)
|
|
37673
37951
|
break;
|
|
37674
37952
|
currentNode = mapping;
|
|
@@ -37727,14 +38005,14 @@ function getTotals(problems) {
|
|
|
37727
38005
|
let errors = 0;
|
|
37728
38006
|
let warnings = 0;
|
|
37729
38007
|
let ignored = 0;
|
|
37730
|
-
for (const
|
|
37731
|
-
if (
|
|
38008
|
+
for (const m2 of problems) {
|
|
38009
|
+
if (m2.ignored) {
|
|
37732
38010
|
ignored++;
|
|
37733
38011
|
continue;
|
|
37734
38012
|
}
|
|
37735
|
-
if (
|
|
38013
|
+
if (m2.severity === "error")
|
|
37736
38014
|
errors++;
|
|
37737
|
-
if (
|
|
38015
|
+
if (m2.severity === "warn")
|
|
37738
38016
|
warnings++;
|
|
37739
38017
|
}
|
|
37740
38018
|
return {
|
|
@@ -37747,7 +38025,7 @@ function formatProblems(problems, opts) {
|
|
|
37747
38025
|
const { maxProblems = 100, cwd = isBrowser ? "" : process.cwd(), format = "codeframe", color = colorOptions.enabled, totals = getTotals(problems), version = "2.0", command } = opts;
|
|
37748
38026
|
colorOptions.enabled = color;
|
|
37749
38027
|
const totalProblems = problems.length;
|
|
37750
|
-
problems = problems.filter((
|
|
38028
|
+
problems = problems.filter((m2) => !m2.ignored);
|
|
37751
38029
|
const ignoredProblems = totalProblems - problems.length;
|
|
37752
38030
|
problems = problems.sort((a2, b2) => severityToNumber(a2.severity) - severityToNumber(b2.severity)).slice(0, maxProblems);
|
|
37753
38031
|
if (!totalProblems && format !== "json" && format !== "junit")
|
|
@@ -37757,13 +38035,13 @@ function formatProblems(problems, opts) {
|
|
|
37757
38035
|
outputJSON();
|
|
37758
38036
|
break;
|
|
37759
38037
|
case "codeframe":
|
|
37760
|
-
for (let
|
|
37761
|
-
const problem = problems[
|
|
38038
|
+
for (let i = 0; i < problems.length; i++) {
|
|
38039
|
+
const problem = problems[i];
|
|
37762
38040
|
if (command === "bundle") {
|
|
37763
|
-
logger.info(`${formatCodeframe(problem,
|
|
38041
|
+
logger.info(`${formatCodeframe(problem, i)}
|
|
37764
38042
|
`);
|
|
37765
38043
|
} else {
|
|
37766
|
-
logger.output(`${formatCodeframe(problem,
|
|
38044
|
+
logger.output(`${formatCodeframe(problem, i)}
|
|
37767
38045
|
`);
|
|
37768
38046
|
}
|
|
37769
38047
|
}
|
|
@@ -37773,8 +38051,8 @@ function formatProblems(problems, opts) {
|
|
|
37773
38051
|
for (const [file, { ruleIdPad, locationPad: positionPad, fileProblems }] of Object.entries(groupedByFile)) {
|
|
37774
38052
|
logger.output(`${colorize.blue(isAbsoluteUrl(file) ? file : path10.relative(cwd, file))}:
|
|
37775
38053
|
`);
|
|
37776
|
-
for (let
|
|
37777
|
-
const problem = fileProblems[
|
|
38054
|
+
for (let i = 0; i < fileProblems.length; i++) {
|
|
38055
|
+
const problem = fileProblems[i];
|
|
37778
38056
|
logger.output(`${formatStylish(problem, positionPad, ruleIdPad)}
|
|
37779
38057
|
`);
|
|
37780
38058
|
}
|
|
@@ -37792,8 +38070,8 @@ function formatProblems(problems, opts) {
|
|
|
37792
38070
|
`);
|
|
37793
38071
|
logger.output(`|---|---|---|---|
|
|
37794
38072
|
`);
|
|
37795
|
-
for (let
|
|
37796
|
-
const problem = fileProblems[
|
|
38073
|
+
for (let i = 0; i < fileProblems.length; i++) {
|
|
38074
|
+
const problem = fileProblems[i];
|
|
37797
38075
|
logger.output(`${formatMarkdown(problem)}
|
|
37798
38076
|
`);
|
|
37799
38077
|
}
|
|
@@ -38117,9 +38395,9 @@ function outputForGithubActions(problems, cwd) {
|
|
|
38117
38395
|
}
|
|
38118
38396
|
|
|
38119
38397
|
// ../core/lib/lint.js
|
|
38120
|
-
var { theme: _3, ...propertiesWithoutTheme2 } =
|
|
38398
|
+
var { theme: _3, ...propertiesWithoutTheme2 } = Qo.properties;
|
|
38121
38399
|
var redoclyConfigSchemaWithoutTheme2 = {
|
|
38122
|
-
...
|
|
38400
|
+
...Qo,
|
|
38123
38401
|
properties: propertiesWithoutTheme2
|
|
38124
38402
|
};
|
|
38125
38403
|
async function lint(opts) {
|
|
@@ -38253,6 +38531,7 @@ export {
|
|
|
38253
38531
|
parseYaml,
|
|
38254
38532
|
stringifyYaml,
|
|
38255
38533
|
bold,
|
|
38534
|
+
dim,
|
|
38256
38535
|
red,
|
|
38257
38536
|
green,
|
|
38258
38537
|
yellow,
|
|
@@ -38266,6 +38545,7 @@ export {
|
|
|
38266
38545
|
YamlParseError,
|
|
38267
38546
|
getMajorSpecVersion,
|
|
38268
38547
|
detectSpec,
|
|
38548
|
+
require_dist,
|
|
38269
38549
|
isSupportedExtension,
|
|
38270
38550
|
ResolveError,
|
|
38271
38551
|
BaseResolver,
|
|
@@ -38284,8 +38564,7 @@ export {
|
|
|
38284
38564
|
lint,
|
|
38285
38565
|
lintDocument,
|
|
38286
38566
|
lintConfig,
|
|
38287
|
-
HandledError
|
|
38288
|
-
require_supports_color
|
|
38567
|
+
HandledError
|
|
38289
38568
|
};
|
|
38290
38569
|
/*! Bundled license information:
|
|
38291
38570
|
|