@swagger-api/apidom-parser-adapter-json-schema-yaml-2020-12 1.0.0-beta.51 → 1.0.0-rc.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.
|
@@ -971,6 +971,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
971
971
|
/* harmony export */ });
|
|
972
972
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28400);
|
|
973
973
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
|
|
974
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10977);
|
|
974
975
|
|
|
975
976
|
|
|
976
977
|
/**
|
|
@@ -986,21 +987,19 @@ class Visitor {
|
|
|
986
987
|
Object.assign(this, options);
|
|
987
988
|
}
|
|
988
989
|
|
|
989
|
-
|
|
990
|
+
/* eslint-disable class-methods-use-this, no-param-reassign */
|
|
990
991
|
copyMetaAndAttributes(from, to) {
|
|
991
992
|
if (from.meta.length > 0 || to.meta.length > 0) {
|
|
992
|
-
// eslint-disable-next-line no-param-reassign
|
|
993
993
|
to.meta = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.meta, from.meta);
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
}
|
|
994
|
+
}
|
|
995
|
+
if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
|
|
996
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)(to, from);
|
|
998
997
|
}
|
|
999
998
|
if (from.attributes.length > 0 || from.meta.length > 0) {
|
|
1000
|
-
// eslint-disable-next-line no-param-reassign
|
|
1001
999
|
to.attributes = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(to.attributes, from.attributes);
|
|
1002
1000
|
}
|
|
1003
1001
|
}
|
|
1002
|
+
/* eslint-enable class-methods-use-this, no-param-reassign */
|
|
1004
1003
|
}
|
|
1005
1004
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
|
|
1006
1005
|
|
|
@@ -1135,65 +1134,6 @@ const jsonSchemaDraft4 = {
|
|
|
1135
1134
|
|
|
1136
1135
|
/***/ }),
|
|
1137
1136
|
|
|
1138
|
-
/***/ 3487:
|
|
1139
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1140
|
-
|
|
1141
|
-
"use strict";
|
|
1142
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1143
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1144
|
-
/* harmony export */ Point: () => (/* binding */ Point),
|
|
1145
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1146
|
-
/* harmony export */ });
|
|
1147
|
-
/* eslint-disable max-classes-per-file */
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
* @public
|
|
1151
|
-
*/
|
|
1152
|
-
|
|
1153
|
-
/**
|
|
1154
|
-
* @public
|
|
1155
|
-
*/
|
|
1156
|
-
class Point {
|
|
1157
|
-
static type = 'point';
|
|
1158
|
-
type = Point.type;
|
|
1159
|
-
row;
|
|
1160
|
-
column;
|
|
1161
|
-
char;
|
|
1162
|
-
constructor({
|
|
1163
|
-
row,
|
|
1164
|
-
column,
|
|
1165
|
-
char
|
|
1166
|
-
}) {
|
|
1167
|
-
this.row = row;
|
|
1168
|
-
this.column = column;
|
|
1169
|
-
this.char = char;
|
|
1170
|
-
}
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
/**
|
|
1174
|
-
* @public
|
|
1175
|
-
*/
|
|
1176
|
-
|
|
1177
|
-
/**
|
|
1178
|
-
* @public
|
|
1179
|
-
*/
|
|
1180
|
-
class Position {
|
|
1181
|
-
static type = 'position';
|
|
1182
|
-
type = Position.type;
|
|
1183
|
-
start;
|
|
1184
|
-
end;
|
|
1185
|
-
constructor({
|
|
1186
|
-
start,
|
|
1187
|
-
end
|
|
1188
|
-
}) {
|
|
1189
|
-
this.start = start;
|
|
1190
|
-
this.end = end;
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Position);
|
|
1194
|
-
|
|
1195
|
-
/***/ }),
|
|
1196
|
-
|
|
1197
1137
|
/***/ 3491:
|
|
1198
1138
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
1199
1139
|
|
|
@@ -2209,132 +2149,6 @@ module.exports = isString;
|
|
|
2209
2149
|
module.exports = __webpack_require__(18337);
|
|
2210
2150
|
|
|
2211
2151
|
|
|
2212
|
-
/***/ }),
|
|
2213
|
-
|
|
2214
|
-
/***/ 8575:
|
|
2215
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
2216
|
-
|
|
2217
|
-
"use strict";
|
|
2218
|
-
__webpack_require__.r(__webpack_exports__);
|
|
2219
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2220
|
-
/* harmony export */ "default": () => (/* binding */ _clone)
|
|
2221
|
-
/* harmony export */ });
|
|
2222
|
-
/* harmony import */ var _cloneRegExp_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31254);
|
|
2223
|
-
/* harmony import */ var _type_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60963);
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
/**
|
|
2228
|
-
* Copies an object.
|
|
2229
|
-
*
|
|
2230
|
-
* @private
|
|
2231
|
-
* @param {*} value The value to be copied
|
|
2232
|
-
* @param {Boolean} deep Whether or not to perform deep cloning.
|
|
2233
|
-
* @return {*} The copied value.
|
|
2234
|
-
*/
|
|
2235
|
-
function _clone(value, deep, map) {
|
|
2236
|
-
map || (map = new _ObjectMap());
|
|
2237
|
-
|
|
2238
|
-
// this avoids the slower switch with a quick if decision removing some milliseconds in each run.
|
|
2239
|
-
if (_isPrimitive(value)) {
|
|
2240
|
-
return value;
|
|
2241
|
-
}
|
|
2242
|
-
var copy = function copy(copiedValue) {
|
|
2243
|
-
// Check for circular and same references on the object graph and return its corresponding clone.
|
|
2244
|
-
var cachedCopy = map.get(value);
|
|
2245
|
-
if (cachedCopy) {
|
|
2246
|
-
return cachedCopy;
|
|
2247
|
-
}
|
|
2248
|
-
map.set(value, copiedValue);
|
|
2249
|
-
for (var key in value) {
|
|
2250
|
-
if (Object.prototype.hasOwnProperty.call(value, key)) {
|
|
2251
|
-
copiedValue[key] = deep ? _clone(value[key], true, map) : value[key];
|
|
2252
|
-
}
|
|
2253
|
-
}
|
|
2254
|
-
return copiedValue;
|
|
2255
|
-
};
|
|
2256
|
-
switch ((0,_type_js__WEBPACK_IMPORTED_MODULE_0__["default"])(value)) {
|
|
2257
|
-
case 'Object':
|
|
2258
|
-
return copy(Object.create(Object.getPrototypeOf(value)));
|
|
2259
|
-
case 'Array':
|
|
2260
|
-
return copy(Array(value.length));
|
|
2261
|
-
case 'Date':
|
|
2262
|
-
return new Date(value.valueOf());
|
|
2263
|
-
case 'RegExp':
|
|
2264
|
-
return (0,_cloneRegExp_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value);
|
|
2265
|
-
case 'Int8Array':
|
|
2266
|
-
case 'Uint8Array':
|
|
2267
|
-
case 'Uint8ClampedArray':
|
|
2268
|
-
case 'Int16Array':
|
|
2269
|
-
case 'Uint16Array':
|
|
2270
|
-
case 'Int32Array':
|
|
2271
|
-
case 'Uint32Array':
|
|
2272
|
-
case 'Float32Array':
|
|
2273
|
-
case 'Float64Array':
|
|
2274
|
-
case 'BigInt64Array':
|
|
2275
|
-
case 'BigUint64Array':
|
|
2276
|
-
return value.slice();
|
|
2277
|
-
default:
|
|
2278
|
-
return value;
|
|
2279
|
-
}
|
|
2280
|
-
}
|
|
2281
|
-
function _isPrimitive(param) {
|
|
2282
|
-
var type = typeof param;
|
|
2283
|
-
return param == null || type != 'object' && type != 'function';
|
|
2284
|
-
}
|
|
2285
|
-
var _ObjectMap = /*#__PURE__*/function () {
|
|
2286
|
-
function _ObjectMap() {
|
|
2287
|
-
this.map = {};
|
|
2288
|
-
this.length = 0;
|
|
2289
|
-
}
|
|
2290
|
-
_ObjectMap.prototype.set = function (key, value) {
|
|
2291
|
-
var hashedKey = this.hash(key);
|
|
2292
|
-
var bucket = this.map[hashedKey];
|
|
2293
|
-
if (!bucket) {
|
|
2294
|
-
this.map[hashedKey] = bucket = [];
|
|
2295
|
-
}
|
|
2296
|
-
bucket.push([key, value]);
|
|
2297
|
-
this.length += 1;
|
|
2298
|
-
};
|
|
2299
|
-
_ObjectMap.prototype.hash = function (key) {
|
|
2300
|
-
var hashedKey = [];
|
|
2301
|
-
for (var value in key) {
|
|
2302
|
-
hashedKey.push(Object.prototype.toString.call(key[value]));
|
|
2303
|
-
}
|
|
2304
|
-
return hashedKey.join();
|
|
2305
|
-
};
|
|
2306
|
-
_ObjectMap.prototype.get = function (key) {
|
|
2307
|
-
/**
|
|
2308
|
-
* depending on the number of objects to be cloned is faster to just iterate over the items in the map just because the hash function is so costly,
|
|
2309
|
-
* on my tests this number is 180, anything above that using the hash function is faster.
|
|
2310
|
-
*/
|
|
2311
|
-
if (this.length <= 180) {
|
|
2312
|
-
for (var p in this.map) {
|
|
2313
|
-
var bucket = this.map[p];
|
|
2314
|
-
for (var i = 0; i < bucket.length; i += 1) {
|
|
2315
|
-
var element = bucket[i];
|
|
2316
|
-
if (element[0] === key) {
|
|
2317
|
-
return element[1];
|
|
2318
|
-
}
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
|
-
return;
|
|
2322
|
-
}
|
|
2323
|
-
var hashedKey = this.hash(key);
|
|
2324
|
-
var bucket = this.map[hashedKey];
|
|
2325
|
-
if (!bucket) {
|
|
2326
|
-
return;
|
|
2327
|
-
}
|
|
2328
|
-
for (var i = 0; i < bucket.length; i += 1) {
|
|
2329
|
-
var element = bucket[i];
|
|
2330
|
-
if (element[0] === key) {
|
|
2331
|
-
return element[1];
|
|
2332
|
-
}
|
|
2333
|
-
}
|
|
2334
|
-
};
|
|
2335
|
-
return _ObjectMap;
|
|
2336
|
-
}();
|
|
2337
|
-
|
|
2338
2152
|
/***/ }),
|
|
2339
2153
|
|
|
2340
2154
|
/***/ 8666:
|
|
@@ -3076,6 +2890,7 @@ class DependentRequiredVisitor extends _swagger_api_apidom_ns_json_schema_draft_
|
|
|
3076
2890
|
"use strict";
|
|
3077
2891
|
__webpack_require__.r(__webpack_exports__);
|
|
3078
2892
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2893
|
+
/* harmony export */ assignSourceMap: () => (/* binding */ assignSourceMap),
|
|
3079
2894
|
/* harmony export */ dereference: () => (/* binding */ dereference)
|
|
3080
2895
|
/* harmony export */ });
|
|
3081
2896
|
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66719);
|
|
@@ -3110,6 +2925,20 @@ const dereference = (object, root) => {
|
|
|
3110
2925
|
return val;
|
|
3111
2926
|
}, object);
|
|
3112
2927
|
};
|
|
2928
|
+
/**
|
|
2929
|
+
* @public
|
|
2930
|
+
*/
|
|
2931
|
+
/* eslint-disable no-param-reassign */
|
|
2932
|
+
const assignSourceMap = (to, from) => {
|
|
2933
|
+
to.startPositionRow = from === null || from === void 0 ? void 0 : from.startPositionRow;
|
|
2934
|
+
to.startPositionColumn = from === null || from === void 0 ? void 0 : from.startPositionColumn;
|
|
2935
|
+
to.startIndex = from === null || from === void 0 ? void 0 : from.startIndex;
|
|
2936
|
+
to.endPositionRow = from === null || from === void 0 ? void 0 : from.endPositionRow;
|
|
2937
|
+
to.endPositionColumn = from === null || from === void 0 ? void 0 : from.endPositionColumn;
|
|
2938
|
+
to.endIndex = from === null || from === void 0 ? void 0 : from.endIndex;
|
|
2939
|
+
return to;
|
|
2940
|
+
};
|
|
2941
|
+
/* eslint-enable no-param-reassign */
|
|
3113
2942
|
|
|
3114
2943
|
/***/ }),
|
|
3115
2944
|
|
|
@@ -3185,9 +3014,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3185
3014
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3186
3015
|
/* harmony export */ isLiteral: () => (/* binding */ isLiteral),
|
|
3187
3016
|
/* harmony export */ isNodeType: () => (/* binding */ isNodeType),
|
|
3188
|
-
/* harmony export */ isParseResult: () => (/* binding */ isParseResult)
|
|
3189
|
-
/* harmony export */ isPoint: () => (/* binding */ isPoint),
|
|
3190
|
-
/* harmony export */ isPosition: () => (/* binding */ isPosition)
|
|
3017
|
+
/* harmony export */ isParseResult: () => (/* binding */ isParseResult)
|
|
3191
3018
|
/* harmony export */ });
|
|
3192
3019
|
/**
|
|
3193
3020
|
* @public
|
|
@@ -3199,16 +3026,6 @@ const isNodeType = (type, node) => node != null && typeof node === 'object' && '
|
|
|
3199
3026
|
*/
|
|
3200
3027
|
const isLiteral = node => isNodeType('literal', node);
|
|
3201
3028
|
|
|
3202
|
-
/**
|
|
3203
|
-
* @public
|
|
3204
|
-
*/
|
|
3205
|
-
const isPosition = node => isNodeType('position', node);
|
|
3206
|
-
|
|
3207
|
-
/**
|
|
3208
|
-
* @public
|
|
3209
|
-
*/
|
|
3210
|
-
const isPoint = node => isNodeType('point', node);
|
|
3211
|
-
|
|
3212
3029
|
/**
|
|
3213
3030
|
* @public
|
|
3214
3031
|
*/
|
|
@@ -8567,8 +8384,7 @@ const keyMapDefault = {
|
|
|
8567
8384
|
LinkElement: [],
|
|
8568
8385
|
Annotation: [],
|
|
8569
8386
|
Comment: [],
|
|
8570
|
-
ParseResultElement: ['content']
|
|
8571
|
-
SourceMap: ['content']
|
|
8387
|
+
ParseResultElement: ['content']
|
|
8572
8388
|
};
|
|
8573
8389
|
class PredicateVisitor {
|
|
8574
8390
|
result;
|
|
@@ -9906,8 +9722,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9906
9722
|
/* harmony export */ keyMap: () => (/* binding */ keyMap)
|
|
9907
9723
|
/* harmony export */ });
|
|
9908
9724
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(60331);
|
|
9909
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
9910
|
-
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(76162);
|
|
9725
|
+
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76162);
|
|
9911
9726
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9375);
|
|
9912
9727
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47177);
|
|
9913
9728
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3252);
|
|
@@ -9922,9 +9737,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9922
9737
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(7131);
|
|
9923
9738
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(86339);
|
|
9924
9739
|
/* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(24676);
|
|
9740
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10977);
|
|
9925
9741
|
/* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(97363);
|
|
9926
9742
|
|
|
9927
9743
|
|
|
9744
|
+
|
|
9928
9745
|
const keyMap = {
|
|
9929
9746
|
stream: ['children'],
|
|
9930
9747
|
document: ['children'],
|
|
@@ -9944,31 +9761,14 @@ class CstVisitor {
|
|
|
9944
9761
|
static isKind(ending) {
|
|
9945
9762
|
return node => node != null && typeof node === 'object' && 'type' in node && typeof node.type === 'string' && node.type.endsWith(ending);
|
|
9946
9763
|
}
|
|
9947
|
-
static toPosition(node) {
|
|
9948
|
-
const start = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
9949
|
-
row: node.startPosition.row,
|
|
9950
|
-
column: node.startPosition.column,
|
|
9951
|
-
char: node.startIndex
|
|
9952
|
-
});
|
|
9953
|
-
const end = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
9954
|
-
row: node.endPosition.row,
|
|
9955
|
-
column: node.endPosition.column,
|
|
9956
|
-
char: node.endIndex
|
|
9957
|
-
});
|
|
9958
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
|
|
9959
|
-
start,
|
|
9960
|
-
end
|
|
9961
|
-
});
|
|
9962
|
-
}
|
|
9963
9764
|
static kindNodeToYamlAnchor(node) {
|
|
9964
9765
|
const {
|
|
9965
9766
|
anchor: anchorNode
|
|
9966
9767
|
} = node;
|
|
9967
9768
|
if (typeof anchorNode === 'undefined') return undefined;
|
|
9968
|
-
return new
|
|
9969
|
-
name: anchorNode.text
|
|
9970
|
-
|
|
9971
|
-
});
|
|
9769
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
9770
|
+
name: anchorNode.text
|
|
9771
|
+
}, anchorNode));
|
|
9972
9772
|
}
|
|
9973
9773
|
static hasKeyValuePairEmptyKey(node) {
|
|
9974
9774
|
if (node.type !== 'block_mapping_pair' && node.type !== 'flow_pair') {
|
|
@@ -9990,12 +9790,10 @@ class CstVisitor {
|
|
|
9990
9790
|
} = node;
|
|
9991
9791
|
const explicitName = (tagNode === null || tagNode === void 0 ? void 0 : tagNode.text) || (node.type === 'plain_scalar' ? '?' : '!');
|
|
9992
9792
|
const kind = node.type.endsWith('mapping') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Mapping : node.type.endsWith('sequence') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Sequence : _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar;
|
|
9993
|
-
|
|
9994
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
9793
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
9995
9794
|
explicitName,
|
|
9996
|
-
kind
|
|
9997
|
-
|
|
9998
|
-
});
|
|
9795
|
+
kind
|
|
9796
|
+
}, tagNode));
|
|
9999
9797
|
}
|
|
10000
9798
|
|
|
10001
9799
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -10003,12 +9801,10 @@ class CstVisitor {
|
|
|
10003
9801
|
referenceManager;
|
|
10004
9802
|
stream = {
|
|
10005
9803
|
enter: node => {
|
|
10006
|
-
|
|
10007
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
|
|
9804
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10008
9805
|
children: node.children,
|
|
10009
|
-
position,
|
|
10010
9806
|
isMissing: node.isMissing
|
|
10011
|
-
});
|
|
9807
|
+
}, node));
|
|
10012
9808
|
},
|
|
10013
9809
|
leave: stream => {
|
|
10014
9810
|
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]({
|
|
@@ -10019,58 +9815,50 @@ class CstVisitor {
|
|
|
10019
9815
|
yaml_directive = {
|
|
10020
9816
|
enter: node => {
|
|
10021
9817
|
var _node$firstNamedChild;
|
|
10022
|
-
const position = CstVisitor.toPosition(node);
|
|
10023
9818
|
const version = node === null || node === void 0 || (_node$firstNamedChild = node.firstNamedChild) === null || _node$firstNamedChild === void 0 ? void 0 : _node$firstNamedChild.text;
|
|
10024
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
10025
|
-
position,
|
|
9819
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10026
9820
|
name: '%YAML',
|
|
10027
9821
|
parameters: {
|
|
10028
9822
|
version
|
|
10029
9823
|
}
|
|
10030
|
-
});
|
|
9824
|
+
}, node));
|
|
10031
9825
|
}
|
|
10032
9826
|
};
|
|
10033
9827
|
tag_directive = {
|
|
10034
9828
|
enter: node => {
|
|
10035
|
-
const position = CstVisitor.toPosition(node);
|
|
10036
9829
|
const tagHandleNode = node.children[0];
|
|
10037
9830
|
const tagPrefixNode = node.children[1];
|
|
10038
|
-
const tagDirective = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
10039
|
-
position,
|
|
9831
|
+
const tagDirective = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10040
9832
|
name: '%TAG',
|
|
10041
9833
|
parameters: {
|
|
10042
9834
|
handle: tagHandleNode === null || tagHandleNode === void 0 ? void 0 : tagHandleNode.text,
|
|
10043
9835
|
prefix: tagPrefixNode === null || tagPrefixNode === void 0 ? void 0 : tagPrefixNode.text
|
|
10044
9836
|
}
|
|
10045
|
-
});
|
|
9837
|
+
}, node));
|
|
10046
9838
|
this.schema.registerTagDirective(tagDirective);
|
|
10047
9839
|
return tagDirective;
|
|
10048
9840
|
}
|
|
10049
9841
|
};
|
|
10050
9842
|
reserved_directive = {
|
|
10051
9843
|
enter: node => {
|
|
10052
|
-
const position = CstVisitor.toPosition(node);
|
|
10053
9844
|
const directiveNameNode = node.children[0];
|
|
10054
9845
|
const directiveParameter1Node = node.children[1];
|
|
10055
9846
|
const directiveParameter2Node = node.children[2];
|
|
10056
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
|
|
10057
|
-
position,
|
|
9847
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10058
9848
|
name: directiveNameNode === null || directiveNameNode === void 0 ? void 0 : directiveNameNode.text,
|
|
10059
9849
|
parameters: {
|
|
10060
9850
|
handle: directiveParameter1Node === null || directiveParameter1Node === void 0 ? void 0 : directiveParameter1Node.text,
|
|
10061
9851
|
prefix: directiveParameter2Node === null || directiveParameter2Node === void 0 ? void 0 : directiveParameter2Node.text
|
|
10062
9852
|
}
|
|
10063
|
-
});
|
|
9853
|
+
}, node));
|
|
10064
9854
|
}
|
|
10065
9855
|
};
|
|
10066
9856
|
document = {
|
|
10067
9857
|
enter: node => {
|
|
10068
|
-
|
|
10069
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
|
|
9858
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10070
9859
|
children: node.children,
|
|
10071
|
-
position,
|
|
10072
9860
|
isMissing: node.isMissing
|
|
10073
|
-
});
|
|
9861
|
+
}, node));
|
|
10074
9862
|
},
|
|
10075
9863
|
leave: node => {
|
|
10076
9864
|
node.children = node.children.flat();
|
|
@@ -10089,21 +9877,17 @@ class CstVisitor {
|
|
|
10089
9877
|
if (CstVisitor.isScalar(kindCandidate) || CstVisitor.isMapping(kindCandidate) || CstVisitor.isSequence(kindCandidate)) {
|
|
10090
9878
|
return node.children;
|
|
10091
9879
|
}
|
|
10092
|
-
|
|
10093
9880
|
// kind node not present in flow node, creating empty node
|
|
10094
|
-
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10095
|
-
row: kindCandidate.endPosition.row,
|
|
10096
|
-
column: kindCandidate.endPosition.column,
|
|
10097
|
-
char: kindCandidate.endIndex
|
|
10098
|
-
});
|
|
10099
9881
|
const emptyScalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10100
9882
|
content: '',
|
|
10101
9883
|
anchor: CstVisitor.kindNodeToYamlAnchor(kindCandidate),
|
|
10102
9884
|
tag: CstVisitor.kindNodeToYamlTag(kindCandidate),
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
9885
|
+
startPositionRow: kindCandidate.endPositionRow,
|
|
9886
|
+
startPositionColumn: kindCandidate.endPositionColumn,
|
|
9887
|
+
startIndex: kindCandidate.endIndex,
|
|
9888
|
+
endPositionRow: kindCandidate.endPositionRow,
|
|
9889
|
+
endPositionColumn: kindCandidate.endPositionColumn,
|
|
9890
|
+
endIndex: kindCandidate.endIndex,
|
|
10107
9891
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10108
9892
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Plain
|
|
10109
9893
|
});
|
|
@@ -10123,25 +9907,22 @@ class CstVisitor {
|
|
|
10123
9907
|
};
|
|
10124
9908
|
block_mapping = {
|
|
10125
9909
|
enter: node => {
|
|
10126
|
-
const position = CstVisitor.toPosition(node);
|
|
10127
9910
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10128
9911
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10129
|
-
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
9912
|
+
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10130
9913
|
children: node.children,
|
|
10131
|
-
position,
|
|
10132
9914
|
anchor,
|
|
10133
9915
|
tag,
|
|
10134
9916
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Block,
|
|
10135
9917
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.NextLine,
|
|
10136
9918
|
isMissing: node.isMissing
|
|
10137
|
-
});
|
|
9919
|
+
}, node));
|
|
10138
9920
|
this.registerAnchor(mappingNode);
|
|
10139
9921
|
return this.schema.resolve(mappingNode);
|
|
10140
9922
|
}
|
|
10141
9923
|
};
|
|
10142
9924
|
block_mapping_pair = {
|
|
10143
9925
|
enter: node => {
|
|
10144
|
-
const position = CstVisitor.toPosition(node);
|
|
10145
9926
|
const children = [...node.children];
|
|
10146
9927
|
if (CstVisitor.hasKeyValuePairEmptyKey(node)) {
|
|
10147
9928
|
const keyNode = this.createKeyValuePairEmptyKey(node);
|
|
@@ -10151,35 +9932,31 @@ class CstVisitor {
|
|
|
10151
9932
|
const valueNode = this.createKeyValuePairEmptyValue(node);
|
|
10152
9933
|
children.push(valueNode);
|
|
10153
9934
|
}
|
|
10154
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
9935
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10155
9936
|
children,
|
|
10156
|
-
position,
|
|
10157
9937
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Block,
|
|
10158
9938
|
isMissing: node.isMissing
|
|
10159
|
-
});
|
|
9939
|
+
}, node));
|
|
10160
9940
|
}
|
|
10161
9941
|
};
|
|
10162
9942
|
flow_mapping = {
|
|
10163
9943
|
enter: node => {
|
|
10164
|
-
const position = CstVisitor.toPosition(node);
|
|
10165
9944
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10166
9945
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10167
|
-
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
|
|
9946
|
+
const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10168
9947
|
children: node.children,
|
|
10169
|
-
position,
|
|
10170
9948
|
anchor,
|
|
10171
9949
|
tag,
|
|
10172
9950
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10173
9951
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Explicit,
|
|
10174
9952
|
isMissing: node.isMissing
|
|
10175
|
-
});
|
|
9953
|
+
}, node));
|
|
10176
9954
|
this.registerAnchor(mappingNode);
|
|
10177
9955
|
return this.schema.resolve(mappingNode);
|
|
10178
9956
|
}
|
|
10179
9957
|
};
|
|
10180
9958
|
flow_pair = {
|
|
10181
9959
|
enter: node => {
|
|
10182
|
-
const position = CstVisitor.toPosition(node);
|
|
10183
9960
|
const children = [...node.children];
|
|
10184
9961
|
if (CstVisitor.hasKeyValuePairEmptyKey(node)) {
|
|
10185
9962
|
const keyNode = this.createKeyValuePairEmptyKey(node);
|
|
@@ -10189,12 +9966,11 @@ class CstVisitor {
|
|
|
10189
9966
|
const valueNode = this.createKeyValuePairEmptyValue(node);
|
|
10190
9967
|
children.push(valueNode);
|
|
10191
9968
|
}
|
|
10192
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
|
|
9969
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10193
9970
|
children,
|
|
10194
|
-
position,
|
|
10195
9971
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10196
9972
|
isMissing: node.isMissing
|
|
10197
|
-
});
|
|
9973
|
+
}, node));
|
|
10198
9974
|
}
|
|
10199
9975
|
};
|
|
10200
9976
|
keyValuePair = {
|
|
@@ -10204,17 +9980,15 @@ class CstVisitor {
|
|
|
10204
9980
|
};
|
|
10205
9981
|
block_sequence = {
|
|
10206
9982
|
enter: node => {
|
|
10207
|
-
const position = CstVisitor.toPosition(node);
|
|
10208
9983
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10209
9984
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10210
|
-
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
9985
|
+
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10211
9986
|
children: node.children,
|
|
10212
|
-
position,
|
|
10213
9987
|
anchor,
|
|
10214
9988
|
tag,
|
|
10215
9989
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Block,
|
|
10216
9990
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.NextLine
|
|
10217
|
-
});
|
|
9991
|
+
}, node));
|
|
10218
9992
|
this.registerAnchor(sequenceNode);
|
|
10219
9993
|
return this.schema.resolve(sequenceNode);
|
|
10220
9994
|
}
|
|
@@ -10227,21 +10001,18 @@ class CstVisitor {
|
|
|
10227
10001
|
}
|
|
10228
10002
|
|
|
10229
10003
|
// create empty node
|
|
10230
|
-
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10231
|
-
row: node.endPosition.row,
|
|
10232
|
-
column: node.endPosition.column,
|
|
10233
|
-
char: node.endIndex
|
|
10234
|
-
});
|
|
10235
10004
|
const emptyScalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10236
10005
|
content: '',
|
|
10237
10006
|
tag: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10238
10007
|
explicitName: '?',
|
|
10239
10008
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10240
10009
|
}),
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10010
|
+
startPositionRow: node.endPositionRow,
|
|
10011
|
+
startPositionColumn: node.endPositionColumn,
|
|
10012
|
+
startIndex: node.endIndex,
|
|
10013
|
+
endPositionRow: node.endPositionRow,
|
|
10014
|
+
endPositionColumn: node.endPositionColumn,
|
|
10015
|
+
endIndex: node.endIndex,
|
|
10245
10016
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10246
10017
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Plain
|
|
10247
10018
|
});
|
|
@@ -10250,17 +10021,15 @@ class CstVisitor {
|
|
|
10250
10021
|
};
|
|
10251
10022
|
flow_sequence = {
|
|
10252
10023
|
enter: node => {
|
|
10253
|
-
const position = CstVisitor.toPosition(node);
|
|
10254
10024
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10255
10025
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10256
|
-
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
|
|
10026
|
+
const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10257
10027
|
children: node.children.flat(),
|
|
10258
|
-
position,
|
|
10259
10028
|
anchor,
|
|
10260
10029
|
tag,
|
|
10261
10030
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10262
10031
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Explicit
|
|
10263
|
-
});
|
|
10032
|
+
}, node));
|
|
10264
10033
|
this.registerAnchor(sequenceNode);
|
|
10265
10034
|
return this.schema.resolve(sequenceNode);
|
|
10266
10035
|
}
|
|
@@ -10272,69 +10041,61 @@ class CstVisitor {
|
|
|
10272
10041
|
};
|
|
10273
10042
|
plain_scalar = {
|
|
10274
10043
|
enter: node => {
|
|
10275
|
-
const position = CstVisitor.toPosition(node);
|
|
10276
10044
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10277
10045
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10278
|
-
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10046
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10279
10047
|
content: node.text,
|
|
10280
10048
|
anchor,
|
|
10281
10049
|
tag,
|
|
10282
|
-
position,
|
|
10283
10050
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10284
10051
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Plain
|
|
10285
|
-
});
|
|
10052
|
+
}, node));
|
|
10286
10053
|
this.registerAnchor(scalarNode);
|
|
10287
10054
|
return this.schema.resolve(scalarNode);
|
|
10288
10055
|
}
|
|
10289
10056
|
};
|
|
10290
10057
|
single_quote_scalar = {
|
|
10291
10058
|
enter: node => {
|
|
10292
|
-
const position = CstVisitor.toPosition(node);
|
|
10293
10059
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10294
10060
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10295
|
-
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10061
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10296
10062
|
content: node.text,
|
|
10297
10063
|
anchor,
|
|
10298
10064
|
tag,
|
|
10299
|
-
position,
|
|
10300
10065
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10301
10066
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.SingleQuoted
|
|
10302
|
-
});
|
|
10067
|
+
}, node));
|
|
10303
10068
|
this.registerAnchor(scalarNode);
|
|
10304
10069
|
return this.schema.resolve(scalarNode);
|
|
10305
10070
|
}
|
|
10306
10071
|
};
|
|
10307
10072
|
double_quote_scalar = {
|
|
10308
10073
|
enter: node => {
|
|
10309
|
-
const position = CstVisitor.toPosition(node);
|
|
10310
10074
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10311
10075
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10312
|
-
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10076
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10313
10077
|
content: node.text,
|
|
10314
10078
|
anchor,
|
|
10315
10079
|
tag,
|
|
10316
|
-
position,
|
|
10317
10080
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
10318
10081
|
style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.DoubleQuoted
|
|
10319
|
-
});
|
|
10082
|
+
}, node));
|
|
10320
10083
|
this.registerAnchor(scalarNode);
|
|
10321
10084
|
return this.schema.resolve(scalarNode);
|
|
10322
10085
|
}
|
|
10323
10086
|
};
|
|
10324
10087
|
block_scalar = {
|
|
10325
10088
|
enter: node => {
|
|
10326
|
-
const position = CstVisitor.toPosition(node);
|
|
10327
10089
|
const tag = CstVisitor.kindNodeToYamlTag(node);
|
|
10328
10090
|
const anchor = CstVisitor.kindNodeToYamlAnchor(node);
|
|
10329
10091
|
const style = node.text.startsWith('|') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Literal : node.text.startsWith('>') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Folded : _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyle.Plain;
|
|
10330
|
-
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10092
|
+
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10331
10093
|
content: node.text,
|
|
10332
10094
|
anchor,
|
|
10333
10095
|
tag,
|
|
10334
|
-
position,
|
|
10335
10096
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Block,
|
|
10336
10097
|
style
|
|
10337
|
-
});
|
|
10098
|
+
}, node));
|
|
10338
10099
|
this.registerAnchor(scalarNode);
|
|
10339
10100
|
return this.schema.resolve(scalarNode);
|
|
10340
10101
|
}
|
|
@@ -10364,30 +10125,26 @@ class CstVisitor {
|
|
|
10364
10125
|
enter(node) {
|
|
10365
10126
|
// missing anonymous literals from CST transformed into AST literal nodes
|
|
10366
10127
|
if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_15__["default"] && !node.isNamed) {
|
|
10367
|
-
const position = CstVisitor.toPosition(node);
|
|
10368
10128
|
const value = node.type || node.text;
|
|
10369
10129
|
const {
|
|
10370
10130
|
isMissing
|
|
10371
10131
|
} = node;
|
|
10372
|
-
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__["default"]({
|
|
10132
|
+
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10373
10133
|
value,
|
|
10374
|
-
position,
|
|
10375
10134
|
isMissing
|
|
10376
|
-
});
|
|
10135
|
+
}, node));
|
|
10377
10136
|
}
|
|
10378
10137
|
return undefined;
|
|
10379
10138
|
}
|
|
10380
10139
|
|
|
10381
10140
|
// eslint-disable-next-line class-methods-use-this
|
|
10382
10141
|
ERROR(node, key, parent, path) {
|
|
10383
|
-
const
|
|
10384
|
-
const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_17__["default"]({
|
|
10142
|
+
const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_17__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10385
10143
|
children: node.children,
|
|
10386
|
-
position,
|
|
10387
10144
|
isUnexpected: !node.hasError,
|
|
10388
10145
|
isMissing: node.isMissing,
|
|
10389
10146
|
value: node.text
|
|
10390
|
-
});
|
|
10147
|
+
}, node));
|
|
10391
10148
|
if (path.length === 0) {
|
|
10392
10149
|
return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"]({
|
|
10393
10150
|
children: [errorNode]
|
|
@@ -10401,35 +10158,30 @@ class CstVisitor {
|
|
|
10401
10158
|
}
|
|
10402
10159
|
}
|
|
10403
10160
|
createKeyValuePairEmptyKey(node) {
|
|
10404
|
-
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10405
|
-
row: node.startPosition.row,
|
|
10406
|
-
column: node.startPosition.column,
|
|
10407
|
-
char: node.startIndex
|
|
10408
|
-
});
|
|
10409
10161
|
const {
|
|
10410
10162
|
keyNode
|
|
10411
10163
|
} = node;
|
|
10412
10164
|
const children = (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [];
|
|
10413
10165
|
const tagNode = children.find(CstVisitor.isKind('tag'));
|
|
10414
10166
|
const anchorNode = children.find(CstVisitor.isKind('anchor'));
|
|
10415
|
-
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10167
|
+
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10416
10168
|
explicitName: tagNode.text,
|
|
10417
|
-
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10418
|
-
|
|
10419
|
-
}) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10169
|
+
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10170
|
+
}, tagNode)) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10420
10171
|
explicitName: '?',
|
|
10421
10172
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10422
10173
|
});
|
|
10423
|
-
const anchor = typeof anchorNode !== 'undefined' ? new
|
|
10424
|
-
name: anchorNode.text
|
|
10425
|
-
|
|
10426
|
-
}) : undefined;
|
|
10174
|
+
const anchor = typeof anchorNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10175
|
+
name: anchorNode.text
|
|
10176
|
+
}, anchorNode)) : undefined;
|
|
10427
10177
|
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10428
10178
|
content: '',
|
|
10429
|
-
|
|
10430
|
-
|
|
10431
|
-
|
|
10432
|
-
|
|
10179
|
+
startPositionRow: node.startPositionRow,
|
|
10180
|
+
startPositionColumn: node.startPositionColumn,
|
|
10181
|
+
startIndex: node.startIndex,
|
|
10182
|
+
endPositionRow: node.startPositionRow,
|
|
10183
|
+
endPositionColumn: node.startPositionColumn,
|
|
10184
|
+
endIndex: node.startIndex,
|
|
10433
10185
|
tag,
|
|
10434
10186
|
anchor,
|
|
10435
10187
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
@@ -10439,35 +10191,30 @@ class CstVisitor {
|
|
|
10439
10191
|
return scalarNode;
|
|
10440
10192
|
}
|
|
10441
10193
|
createKeyValuePairEmptyValue(node) {
|
|
10442
|
-
const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
|
|
10443
|
-
row: node.endPosition.row,
|
|
10444
|
-
column: node.endPosition.column,
|
|
10445
|
-
char: node.endIndex
|
|
10446
|
-
});
|
|
10447
10194
|
const {
|
|
10448
10195
|
valueNode
|
|
10449
10196
|
} = node;
|
|
10450
10197
|
const children = (valueNode === null || valueNode === void 0 ? void 0 : valueNode.children) || [];
|
|
10451
10198
|
const tagNode = children.find(CstVisitor.isKind('tag'));
|
|
10452
10199
|
const anchorNode = children.find(CstVisitor.isKind('anchor'));
|
|
10453
|
-
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10200
|
+
const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10454
10201
|
explicitName: tagNode.text,
|
|
10455
|
-
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10456
|
-
|
|
10457
|
-
}) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10202
|
+
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10203
|
+
}, tagNode)) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
|
|
10458
10204
|
explicitName: '?',
|
|
10459
10205
|
kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
|
|
10460
10206
|
});
|
|
10461
|
-
const anchor = typeof anchorNode !== 'undefined' ? new
|
|
10462
|
-
name: anchorNode.text
|
|
10463
|
-
|
|
10464
|
-
}) : undefined;
|
|
10207
|
+
const anchor = typeof anchorNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.assignSourceMap)({
|
|
10208
|
+
name: anchorNode.text
|
|
10209
|
+
}, anchorNode)) : undefined;
|
|
10465
10210
|
const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
|
|
10466
10211
|
content: '',
|
|
10467
|
-
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10212
|
+
startPositionRow: node.endPositionRow,
|
|
10213
|
+
startPositionColumn: node.endPositionColumn,
|
|
10214
|
+
startIndex: node.endIndex,
|
|
10215
|
+
endPositionRow: node.endPositionRow,
|
|
10216
|
+
endPositionColumn: node.endPositionColumn,
|
|
10217
|
+
endIndex: node.endIndex,
|
|
10471
10218
|
tag,
|
|
10472
10219
|
anchor,
|
|
10473
10220
|
styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__.YamlStyleGroup.Flow,
|
|
@@ -11418,6 +11165,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11418
11165
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61339);
|
|
11419
11166
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(78866);
|
|
11420
11167
|
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(88326);
|
|
11168
|
+
/* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10977);
|
|
11421
11169
|
|
|
11422
11170
|
|
|
11423
11171
|
const keyMap = {
|
|
@@ -11570,12 +11318,7 @@ class YamlAstVisitor {
|
|
|
11570
11318
|
if (!this.sourceMap) {
|
|
11571
11319
|
return;
|
|
11572
11320
|
}
|
|
11573
|
-
|
|
11574
|
-
// @ts-ignore
|
|
11575
|
-
sourceMap.position = node.position;
|
|
11576
|
-
// @ts-ignore
|
|
11577
|
-
sourceMap.astNode = node;
|
|
11578
|
-
element.meta.set('sourceMap', sourceMap);
|
|
11321
|
+
(0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.assignSourceMap)(element, node);
|
|
11579
11322
|
}
|
|
11580
11323
|
}
|
|
11581
11324
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlAstVisitor);
|
|
@@ -13382,20 +13125,6 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
13382
13125
|
module.exports = equalObjects;
|
|
13383
13126
|
|
|
13384
13127
|
|
|
13385
|
-
/***/ }),
|
|
13386
|
-
|
|
13387
|
-
/***/ 31254:
|
|
13388
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
13389
|
-
|
|
13390
|
-
"use strict";
|
|
13391
|
-
__webpack_require__.r(__webpack_exports__);
|
|
13392
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13393
|
-
/* harmony export */ "default": () => (/* binding */ _cloneRegExp)
|
|
13394
|
-
/* harmony export */ });
|
|
13395
|
-
function _cloneRegExp(pattern) {
|
|
13396
|
-
return new RegExp(pattern.source, pattern.flags ? pattern.flags : (pattern.global ? 'g' : '') + (pattern.ignoreCase ? 'i' : '') + (pattern.multiline ? 'm' : '') + (pattern.sticky ? 'y' : '') + (pattern.unicode ? 'u' : '') + (pattern.dotAll ? 's' : ''));
|
|
13397
|
-
}
|
|
13398
|
-
|
|
13399
13128
|
/***/ }),
|
|
13400
13129
|
|
|
13401
13130
|
/***/ 31314:
|
|
@@ -14377,7 +14106,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14377
14106
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
14378
14107
|
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50726);
|
|
14379
14108
|
/* harmony import */ var _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39112);
|
|
14380
|
-
/* harmony import */ var
|
|
14109
|
+
/* harmony import */ var _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(16500);
|
|
14110
|
+
/* harmony import */ var _util_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10977);
|
|
14111
|
+
|
|
14381
14112
|
|
|
14382
14113
|
|
|
14383
14114
|
|
|
@@ -14481,6 +14212,9 @@ const cloneShallowElement = element => {
|
|
|
14481
14212
|
// @ts-ignore
|
|
14482
14213
|
const copy = new element.constructor();
|
|
14483
14214
|
copy.element = element.element;
|
|
14215
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(element)) {
|
|
14216
|
+
(0,_util_mjs__WEBPACK_IMPORTED_MODULE_3__.assignSourceMap)(copy, element);
|
|
14217
|
+
}
|
|
14484
14218
|
if (element.meta.length > 0) {
|
|
14485
14219
|
copy._meta = cloneDeep(element.meta);
|
|
14486
14220
|
}
|
|
@@ -14517,7 +14251,7 @@ const cloneShallow = value => {
|
|
|
14517
14251
|
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value)) {
|
|
14518
14252
|
return cloneShallowElement(value);
|
|
14519
14253
|
}
|
|
14520
|
-
throw new
|
|
14254
|
+
throw new _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]("Value provided to cloneShallow function couldn't be cloned", {
|
|
14521
14255
|
value
|
|
14522
14256
|
});
|
|
14523
14257
|
};
|
|
@@ -16811,16 +16545,31 @@ class Node {
|
|
|
16811
16545
|
type = 'node';
|
|
16812
16546
|
isMissing;
|
|
16813
16547
|
children;
|
|
16814
|
-
|
|
16548
|
+
startPositionRow;
|
|
16549
|
+
startPositionColumn;
|
|
16550
|
+
startIndex;
|
|
16551
|
+
endPositionRow;
|
|
16552
|
+
endPositionColumn;
|
|
16553
|
+
endIndex;
|
|
16815
16554
|
constructor({
|
|
16816
16555
|
children = [],
|
|
16817
|
-
|
|
16818
|
-
|
|
16556
|
+
isMissing = false,
|
|
16557
|
+
startPositionRow,
|
|
16558
|
+
startPositionColumn,
|
|
16559
|
+
startIndex,
|
|
16560
|
+
endPositionRow,
|
|
16561
|
+
endPositionColumn,
|
|
16562
|
+
endIndex
|
|
16819
16563
|
} = {}) {
|
|
16820
16564
|
this.type = this.constructor.type;
|
|
16821
16565
|
this.isMissing = isMissing;
|
|
16822
16566
|
this.children = children;
|
|
16823
|
-
this.
|
|
16567
|
+
this.startPositionRow = startPositionRow;
|
|
16568
|
+
this.startPositionColumn = startPositionColumn;
|
|
16569
|
+
this.startIndex = startIndex;
|
|
16570
|
+
this.endPositionRow = endPositionRow;
|
|
16571
|
+
this.endPositionColumn = endPositionColumn;
|
|
16572
|
+
this.endIndex = endIndex;
|
|
16824
16573
|
}
|
|
16825
16574
|
|
|
16826
16575
|
// creates shallow clone of node
|
|
@@ -17194,16 +16943,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17194
16943
|
/* harmony export */ isParseResultElement: () => (/* binding */ isParseResultElement),
|
|
17195
16944
|
/* harmony export */ isPrimitiveElement: () => (/* binding */ isPrimitiveElement),
|
|
17196
16945
|
/* harmony export */ isRefElement: () => (/* binding */ isRefElement),
|
|
17197
|
-
/* harmony export */ isSourceMapElement: () => (/* binding */ isSourceMapElement),
|
|
17198
16946
|
/* harmony export */ isStringElement: () => (/* binding */ isStringElement)
|
|
17199
16947
|
/* harmony export */ });
|
|
17200
16948
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
17201
|
-
/* harmony import */ var
|
|
17202
|
-
/* harmony import */ var
|
|
16949
|
+
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95380);
|
|
16950
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(73699);
|
|
17203
16951
|
/* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14102);
|
|
17204
16952
|
/* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10068);
|
|
17205
16953
|
/* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18737);
|
|
17206
|
-
/* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91364);
|
|
17207
16954
|
/* harmony import */ var _helpers_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70145);
|
|
17208
16955
|
|
|
17209
16956
|
|
|
@@ -17212,7 +16959,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17212
16959
|
|
|
17213
16960
|
|
|
17214
16961
|
|
|
17215
|
-
|
|
17216
16962
|
/**
|
|
17217
16963
|
* @public
|
|
17218
16964
|
*/
|
|
@@ -17351,17 +17097,6 @@ const isParseResultElement = (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__["defau
|
|
|
17351
17097
|
return element => element instanceof _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"] || hasBasicElementProps(element) && isElementType('parseResult', element) && primitiveEq('array', element);
|
|
17352
17098
|
});
|
|
17353
17099
|
|
|
17354
|
-
/**
|
|
17355
|
-
* @public
|
|
17356
|
-
*/
|
|
17357
|
-
const isSourceMapElement = (0,_helpers_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])(({
|
|
17358
|
-
hasBasicElementProps,
|
|
17359
|
-
isElementType,
|
|
17360
|
-
primitiveEq
|
|
17361
|
-
}) => {
|
|
17362
|
-
return element => element instanceof _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"] || hasBasicElementProps(element) && isElementType('sourceMap', element) && primitiveEq('array', element);
|
|
17363
|
-
});
|
|
17364
|
-
|
|
17365
17100
|
/**
|
|
17366
17101
|
* @public
|
|
17367
17102
|
*/
|
|
@@ -17377,7 +17112,10 @@ const isPrimitiveElement = element => {
|
|
|
17377
17112
|
* @public
|
|
17378
17113
|
*/
|
|
17379
17114
|
const hasElementSourceMap = element => {
|
|
17380
|
-
|
|
17115
|
+
if (!isElement(element)) {
|
|
17116
|
+
return false;
|
|
17117
|
+
}
|
|
17118
|
+
return Number.isInteger(element.startPositionRow) && Number.isInteger(element.startPositionColumn) && Number.isInteger(element.startIndex) && Number.isInteger(element.endPositionRow) && Number.isInteger(element.endPositionColumn) && Number.isInteger(element.endIndex);
|
|
17381
17119
|
};
|
|
17382
17120
|
|
|
17383
17121
|
/**
|
|
@@ -17391,7 +17129,7 @@ const includesSymbols = (symbols, element) => {
|
|
|
17391
17129
|
if (!isArrayElement(elementSymbols)) {
|
|
17392
17130
|
return false;
|
|
17393
17131
|
}
|
|
17394
|
-
return (0,
|
|
17132
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_5__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(elementSymbols.toValue()), symbols);
|
|
17395
17133
|
};
|
|
17396
17134
|
|
|
17397
17135
|
/**
|
|
@@ -17401,7 +17139,7 @@ const includesClasses = (classes, element) => {
|
|
|
17401
17139
|
if (classes.length === 0) {
|
|
17402
17140
|
return true;
|
|
17403
17141
|
}
|
|
17404
|
-
return (0,
|
|
17142
|
+
return (0,ramda__WEBPACK_IMPORTED_MODULE_5__["default"])((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(element.classes.toValue()), classes);
|
|
17405
17143
|
};
|
|
17406
17144
|
|
|
17407
17145
|
/***/ }),
|
|
@@ -18067,7 +17805,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18067
17805
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18068
17806
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
18069
17807
|
/* harmony export */ });
|
|
18070
|
-
/* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85757);
|
|
18071
17808
|
/* harmony import */ var _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(69261);
|
|
18072
17809
|
/* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(9375);
|
|
18073
17810
|
/* harmony import */ var _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51538);
|
|
@@ -18080,7 +17817,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18080
17817
|
|
|
18081
17818
|
|
|
18082
17819
|
|
|
18083
|
-
|
|
18084
17820
|
/**
|
|
18085
17821
|
* @public
|
|
18086
17822
|
*/
|
|
@@ -18158,7 +17894,12 @@ class FailsafeSchema {
|
|
|
18158
17894
|
specificTagName,
|
|
18159
17895
|
explicitTagName: node.tag.explicitName,
|
|
18160
17896
|
tagKind: node.tag.kind,
|
|
18161
|
-
|
|
17897
|
+
tagStartPositionRow: node.tag.startPositionRow,
|
|
17898
|
+
tagStartPositionColumn: node.tag.startPositionColumn,
|
|
17899
|
+
tagStartPositionIndex: node.tag.startIndex,
|
|
17900
|
+
tagEndPositionRow: node.tag.endPositionRow,
|
|
17901
|
+
tagEndPositionColumn: node.tag.endPositionColumn,
|
|
17902
|
+
tagEndPositionIndex: node.tag.endIndex,
|
|
18162
17903
|
node: node.clone()
|
|
18163
17904
|
});
|
|
18164
17905
|
}
|
|
@@ -18169,7 +17910,12 @@ class FailsafeSchema {
|
|
|
18169
17910
|
specificTagName,
|
|
18170
17911
|
explicitTagName: node.tag.explicitName,
|
|
18171
17912
|
tagKind: node.tag.kind,
|
|
18172
|
-
|
|
17913
|
+
tagStartPositionRow: node.tag.startPositionRow,
|
|
17914
|
+
tagStartPositionColumn: node.tag.startPositionColumn,
|
|
17915
|
+
tagStartPositionIndex: node.tag.startIndex,
|
|
17916
|
+
tagEndPositionRow: node.tag.endPositionRow,
|
|
17917
|
+
tagEndPositionColumn: node.tag.endPositionColumn,
|
|
17918
|
+
tagEndPositionIndex: node.tag.endIndex,
|
|
18173
17919
|
nodeCanonicalContent: canonicalNode.content,
|
|
18174
17920
|
node: node.clone()
|
|
18175
17921
|
});
|
|
@@ -20747,21 +20493,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20747
20493
|
/* harmony export */ ObjectElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement),
|
|
20748
20494
|
/* harmony export */ ParseResultElement: () => (/* reexport safe */ _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]),
|
|
20749
20495
|
/* harmony export */ RefElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.RefElement),
|
|
20750
|
-
/* harmony export */ SourceMapElement: () => (/* reexport safe */ _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]),
|
|
20751
20496
|
/* harmony export */ StringElement: () => (/* reexport safe */ minim__WEBPACK_IMPORTED_MODULE_0__.StringElement)
|
|
20752
20497
|
/* harmony export */ });
|
|
20753
20498
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
20754
20499
|
/* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14102);
|
|
20755
20500
|
/* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(10068);
|
|
20756
20501
|
/* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18737);
|
|
20757
|
-
/* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91364);
|
|
20758
20502
|
/* harmony import */ var _index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70696);
|
|
20759
20503
|
|
|
20760
20504
|
|
|
20761
20505
|
|
|
20762
20506
|
|
|
20763
20507
|
|
|
20764
|
-
|
|
20765
20508
|
minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement);
|
|
20766
20509
|
minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement);
|
|
20767
20510
|
minim__WEBPACK_IMPORTED_MODULE_0__.StringElement.refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(minim__WEBPACK_IMPORTED_MODULE_0__.StringElement);
|
|
@@ -20773,7 +20516,6 @@ minim__WEBPACK_IMPORTED_MODULE_0__.RefElement.refract = (0,_index_mjs__WEBPACK_I
|
|
|
20773
20516
|
_elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(_elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
20774
20517
|
_elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(_elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
20775
20518
|
_elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(_elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
20776
|
-
_elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(_elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]);
|
|
20777
20519
|
|
|
20778
20520
|
|
|
20779
20521
|
/***/ }),
|
|
@@ -22288,7 +22030,12 @@ class YamlTagError extends _YamlSchemaError_mjs__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
22288
22030
|
specificTagName;
|
|
22289
22031
|
explicitTagName;
|
|
22290
22032
|
tagKind;
|
|
22291
|
-
|
|
22033
|
+
tagStartPositionRow;
|
|
22034
|
+
tagStartPositionColumn;
|
|
22035
|
+
tagStartPositionIndex;
|
|
22036
|
+
tagEndPositionRow;
|
|
22037
|
+
tagEndPositionColumn;
|
|
22038
|
+
tagEndPositionIndex;
|
|
22292
22039
|
nodeCanonicalContent;
|
|
22293
22040
|
node;
|
|
22294
22041
|
constructor(message, structuredOptions) {
|
|
@@ -22297,7 +22044,12 @@ class YamlTagError extends _YamlSchemaError_mjs__WEBPACK_IMPORTED_MODULE_0__["de
|
|
|
22297
22044
|
this.specificTagName = structuredOptions.specificTagName;
|
|
22298
22045
|
this.explicitTagName = structuredOptions.explicitTagName;
|
|
22299
22046
|
this.tagKind = structuredOptions.tagKind;
|
|
22300
|
-
this.
|
|
22047
|
+
this.tagStartPositionRow = structuredOptions.tagStartPositionRow;
|
|
22048
|
+
this.tagStartPositionColumn = structuredOptions.tagStartPositionColumn;
|
|
22049
|
+
this.tagStartPositionIndex = structuredOptions.tagStartPositionIndex;
|
|
22050
|
+
this.tagEndPositionRow = structuredOptions.tagEndPositionRow;
|
|
22051
|
+
this.tagEndPositionColumn = structuredOptions.tagEndPositionColumn;
|
|
22052
|
+
this.tagEndPositionIndex = structuredOptions.tagEndPositionIndex;
|
|
22301
22053
|
this.nodeCanonicalContent = structuredOptions.nodeCanonicalContent;
|
|
22302
22054
|
this.node = structuredOptions.node;
|
|
22303
22055
|
}
|
|
@@ -24181,12 +23933,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24181
23933
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
24182
23934
|
/* harmony export */ });
|
|
24183
23935
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
24184
|
-
/* harmony import */ var
|
|
23936
|
+
/* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34606);
|
|
24185
23937
|
/* harmony import */ var _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(14102);
|
|
24186
23938
|
/* harmony import */ var _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(10068);
|
|
24187
23939
|
/* harmony import */ var _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(18737);
|
|
24188
|
-
/* harmony import */ var _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91364);
|
|
24189
|
-
|
|
24190
23940
|
|
|
24191
23941
|
|
|
24192
23942
|
|
|
@@ -24201,7 +23951,6 @@ class Namespace extends minim__WEBPACK_IMPORTED_MODULE_0__.Namespace {
|
|
|
24201
23951
|
this.register('annotation', _elements_Annotation_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
24202
23952
|
this.register('comment', _elements_Comment_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]);
|
|
24203
23953
|
this.register('parseResult', _elements_ParseResult_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
24204
|
-
this.register('sourceMap', _elements_SourceMap_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]);
|
|
24205
23954
|
}
|
|
24206
23955
|
}
|
|
24207
23956
|
|
|
@@ -24215,7 +23964,7 @@ const namespace = new Namespace();
|
|
|
24215
23964
|
*/
|
|
24216
23965
|
const createNamespace = namespacePlugin => {
|
|
24217
23966
|
const namespaceInstance = new Namespace();
|
|
24218
|
-
if ((0,
|
|
23967
|
+
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"])(namespacePlugin)) {
|
|
24219
23968
|
namespaceInstance.use(namespacePlugin);
|
|
24220
23969
|
}
|
|
24221
23970
|
return namespaceInstance;
|
|
@@ -26081,53 +25830,6 @@ var gt = /*#__PURE__*/(0,_internal_curry2_js__WEBPACK_IMPORTED_MODULE_0__["defau
|
|
|
26081
25830
|
|
|
26082
25831
|
/***/ }),
|
|
26083
25832
|
|
|
26084
|
-
/***/ 85757:
|
|
26085
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
26086
|
-
|
|
26087
|
-
"use strict";
|
|
26088
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26089
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26090
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
26091
|
-
/* harmony export */ });
|
|
26092
|
-
/* harmony import */ var _internal_clone_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(8575);
|
|
26093
|
-
/* harmony import */ var _internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(18938);
|
|
26094
|
-
|
|
26095
|
-
|
|
26096
|
-
|
|
26097
|
-
/**
|
|
26098
|
-
* Creates a deep copy of the source that can be used in place of the source
|
|
26099
|
-
* object without retaining any references to it.
|
|
26100
|
-
* The source object may contain (nested) `Array`s and `Object`s,
|
|
26101
|
-
* `Number`s, `String`s, `Boolean`s and `Date`s.
|
|
26102
|
-
* `Function`s are assigned by reference rather than copied.
|
|
26103
|
-
*
|
|
26104
|
-
* Dispatches to a `clone` method if present.
|
|
26105
|
-
*
|
|
26106
|
-
* Note that if the source object has multiple nodes that share a reference,
|
|
26107
|
-
* the returned object will have the same structure, but the references will
|
|
26108
|
-
* be pointed to the location within the cloned value.
|
|
26109
|
-
*
|
|
26110
|
-
* @func
|
|
26111
|
-
* @memberOf R
|
|
26112
|
-
* @since v0.1.0
|
|
26113
|
-
* @category Object
|
|
26114
|
-
* @sig {*} -> {*}
|
|
26115
|
-
* @param {*} value The object or array to clone
|
|
26116
|
-
* @return {*} A deeply cloned copy of `val`
|
|
26117
|
-
* @example
|
|
26118
|
-
*
|
|
26119
|
-
* const objects = [{}, {}, {}];
|
|
26120
|
-
* const objectsClone = R.clone(objects);
|
|
26121
|
-
* objects === objectsClone; //=> false
|
|
26122
|
-
* objects[0] === objectsClone[0]; //=> false
|
|
26123
|
-
*/
|
|
26124
|
-
var clone = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function clone(value) {
|
|
26125
|
-
return value != null && typeof value.clone === 'function' ? value.clone() : (0,_internal_clone_js__WEBPACK_IMPORTED_MODULE_1__["default"])(value, true);
|
|
26126
|
-
});
|
|
26127
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (clone);
|
|
26128
|
-
|
|
26129
|
-
/***/ }),
|
|
26130
|
-
|
|
26131
25833
|
/***/ 85969:
|
|
26132
25834
|
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
26133
25835
|
|
|
@@ -27387,54 +27089,6 @@ const namespace = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.creat
|
|
|
27387
27089
|
|
|
27388
27090
|
/***/ }),
|
|
27389
27091
|
|
|
27390
|
-
/***/ 91364:
|
|
27391
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
27392
|
-
|
|
27393
|
-
"use strict";
|
|
27394
|
-
__webpack_require__.r(__webpack_exports__);
|
|
27395
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27396
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
27397
|
-
/* harmony export */ });
|
|
27398
|
-
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(88326);
|
|
27399
|
-
|
|
27400
|
-
|
|
27401
|
-
/**
|
|
27402
|
-
* @public
|
|
27403
|
-
*/
|
|
27404
|
-
|
|
27405
|
-
/**
|
|
27406
|
-
* @public
|
|
27407
|
-
*/
|
|
27408
|
-
|
|
27409
|
-
/**
|
|
27410
|
-
* @public
|
|
27411
|
-
*/
|
|
27412
|
-
class SourceMap extends minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement {
|
|
27413
|
-
constructor(content, meta, attributes) {
|
|
27414
|
-
super(content, meta, attributes);
|
|
27415
|
-
this.element = 'sourceMap';
|
|
27416
|
-
}
|
|
27417
|
-
get positionStart() {
|
|
27418
|
-
return this.children.filter(item => item.classes.contains('position')).get(0);
|
|
27419
|
-
}
|
|
27420
|
-
get positionEnd() {
|
|
27421
|
-
return this.children.filter(item => item.classes.contains('position')).get(1);
|
|
27422
|
-
}
|
|
27423
|
-
set position(position) {
|
|
27424
|
-
if (typeof position === 'undefined') {
|
|
27425
|
-
return;
|
|
27426
|
-
}
|
|
27427
|
-
const start = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.start.row, position.start.column, position.start.char]);
|
|
27428
|
-
const end = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.end.row, position.end.column, position.end.char]);
|
|
27429
|
-
start.classes.push('position');
|
|
27430
|
-
end.classes.push('position');
|
|
27431
|
-
this.push(start).push(end);
|
|
27432
|
-
}
|
|
27433
|
-
}
|
|
27434
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SourceMap);
|
|
27435
|
-
|
|
27436
|
-
/***/ }),
|
|
27437
|
-
|
|
27438
27092
|
/***/ 91613:
|
|
27439
27093
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
27440
27094
|
|
|
@@ -29357,9 +29011,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29357
29011
|
/* harmony export */ });
|
|
29358
29012
|
class TreeCursorSyntaxNode {
|
|
29359
29013
|
type;
|
|
29360
|
-
|
|
29361
|
-
|
|
29014
|
+
startPositionRow;
|
|
29015
|
+
startPositionColumn;
|
|
29362
29016
|
startIndex;
|
|
29017
|
+
endPositionRow;
|
|
29018
|
+
endPositionColumn;
|
|
29363
29019
|
endIndex;
|
|
29364
29020
|
text;
|
|
29365
29021
|
isNamed;
|
|
@@ -29370,9 +29026,11 @@ class TreeCursorSyntaxNode {
|
|
|
29370
29026
|
previousSibling;
|
|
29371
29027
|
constructor(cursor) {
|
|
29372
29028
|
this.type = cursor.nodeType;
|
|
29373
|
-
this.
|
|
29374
|
-
this.
|
|
29029
|
+
this.startPositionRow = cursor.startPosition.row;
|
|
29030
|
+
this.startPositionColumn = cursor.startPosition.column;
|
|
29375
29031
|
this.startIndex = cursor.startIndex;
|
|
29032
|
+
this.endPositionRow = cursor.endPosition.row;
|
|
29033
|
+
this.endPositionColumn = cursor.endPosition.column;
|
|
29376
29034
|
this.endIndex = cursor.endIndex;
|
|
29377
29035
|
this.text = cursor.nodeText;
|
|
29378
29036
|
this.isNamed = cursor.nodeIsNamed;
|