@speclynx/apidom-parser-adapter-arazzo-yaml-1 2.2.0 → 2.2.2
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.2.2](https://github.com/speclynx/apidom/compare/v2.2.1...v2.2.2) (2026-01-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-arazzo-yaml-1
|
|
9
|
+
|
|
10
|
+
## [2.2.1](https://github.com/speclynx/apidom/compare/v2.2.0...v2.2.1) (2026-01-20)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-arazzo-yaml-1
|
|
13
|
+
|
|
6
14
|
# [2.2.0](https://github.com/speclynx/apidom/compare/v2.1.0...v2.2.0) (2026-01-19)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @speclynx/apidom-parser-adapter-arazzo-yaml-1
|
|
@@ -17282,8 +17282,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17282
17282
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17283
17283
|
/* harmony export */ Path: () => (/* binding */ Path)
|
|
17284
17284
|
/* harmony export */ });
|
|
17285
|
-
/* harmony import */ var
|
|
17286
|
-
/* harmony import */ var
|
|
17285
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25162);
|
|
17286
|
+
/* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61198);
|
|
17287
|
+
/* harmony import */ var _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33204);
|
|
17288
|
+
|
|
17287
17289
|
|
|
17288
17290
|
|
|
17289
17291
|
|
|
@@ -17425,14 +17427,34 @@ class Path {
|
|
|
17425
17427
|
}
|
|
17426
17428
|
|
|
17427
17429
|
/**
|
|
17428
|
-
* Get the path from root as an array of keys.
|
|
17430
|
+
* Get the semantic path from root as an array of keys.
|
|
17431
|
+
* Returns logical document keys (property names, array indices) rather than
|
|
17432
|
+
* internal ApiDOM structure keys.
|
|
17433
|
+
*
|
|
17434
|
+
* @example
|
|
17435
|
+
* // For a path to $.paths['/pets'].get in an OpenAPI document:
|
|
17436
|
+
* path.getPathKeys(); // => ['paths', '/pets', 'get']
|
|
17429
17437
|
*/
|
|
17430
17438
|
getPathKeys() {
|
|
17431
17439
|
const keys = [];
|
|
17432
17440
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
17433
17441
|
let current = this;
|
|
17434
17442
|
while (current !== null && current.key !== undefined) {
|
|
17435
|
-
|
|
17443
|
+
const {
|
|
17444
|
+
key,
|
|
17445
|
+
parent,
|
|
17446
|
+
parentPath
|
|
17447
|
+
} = current;
|
|
17448
|
+
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isMemberElement)(parent) && key === 'value') {
|
|
17449
|
+
// Inside MemberElement.value → push the member's key
|
|
17450
|
+
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(parent.key)) {
|
|
17451
|
+
throw new TypeError('MemberElement.key must be a StringElement');
|
|
17452
|
+
}
|
|
17453
|
+
keys.unshift(parent.key.toValue());
|
|
17454
|
+
} else if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isArrayElement)(parentPath?.node) && typeof key === 'number') {
|
|
17455
|
+
// Inside ArrayElement → push the numeric index
|
|
17456
|
+
keys.unshift(key);
|
|
17457
|
+
}
|
|
17436
17458
|
current = current.parentPath;
|
|
17437
17459
|
}
|
|
17438
17460
|
return keys;
|
|
@@ -17468,11 +17490,11 @@ class Path {
|
|
|
17468
17490
|
}
|
|
17469
17491
|
if (pathFormat === 'jsonpath') {
|
|
17470
17492
|
// RFC 9535 Normalized JSONPath
|
|
17471
|
-
return
|
|
17493
|
+
return _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__.NormalizedPath.from(parts);
|
|
17472
17494
|
}
|
|
17473
17495
|
|
|
17474
17496
|
// RFC 6901 JSON Pointer
|
|
17475
|
-
return (0,
|
|
17497
|
+
return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__.compile)(parts);
|
|
17476
17498
|
}
|
|
17477
17499
|
|
|
17478
17500
|
/**
|