@speclynx/apidom-parser-adapter-openapi-yaml-3-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-openapi-yaml-3-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-openapi-yaml-3-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-openapi-yaml-3-1
|
|
@@ -20315,8 +20315,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20315
20315
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
20316
20316
|
/* harmony export */ Path: () => (/* binding */ Path)
|
|
20317
20317
|
/* harmony export */ });
|
|
20318
|
-
/* harmony import */ var
|
|
20319
|
-
/* harmony import */ var
|
|
20318
|
+
/* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25162);
|
|
20319
|
+
/* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61198);
|
|
20320
|
+
/* harmony import */ var _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33204);
|
|
20321
|
+
|
|
20320
20322
|
|
|
20321
20323
|
|
|
20322
20324
|
|
|
@@ -20458,14 +20460,34 @@ class Path {
|
|
|
20458
20460
|
}
|
|
20459
20461
|
|
|
20460
20462
|
/**
|
|
20461
|
-
* Get the path from root as an array of keys.
|
|
20463
|
+
* Get the semantic path from root as an array of keys.
|
|
20464
|
+
* Returns logical document keys (property names, array indices) rather than
|
|
20465
|
+
* internal ApiDOM structure keys.
|
|
20466
|
+
*
|
|
20467
|
+
* @example
|
|
20468
|
+
* // For a path to $.paths['/pets'].get in an OpenAPI document:
|
|
20469
|
+
* path.getPathKeys(); // => ['paths', '/pets', 'get']
|
|
20462
20470
|
*/
|
|
20463
20471
|
getPathKeys() {
|
|
20464
20472
|
const keys = [];
|
|
20465
20473
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
20466
20474
|
let current = this;
|
|
20467
20475
|
while (current !== null && current.key !== undefined) {
|
|
20468
|
-
|
|
20476
|
+
const {
|
|
20477
|
+
key,
|
|
20478
|
+
parent,
|
|
20479
|
+
parentPath
|
|
20480
|
+
} = current;
|
|
20481
|
+
if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isMemberElement)(parent) && key === 'value') {
|
|
20482
|
+
// Inside MemberElement.value → push the member's key
|
|
20483
|
+
if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(parent.key)) {
|
|
20484
|
+
throw new TypeError('MemberElement.key must be a StringElement');
|
|
20485
|
+
}
|
|
20486
|
+
keys.unshift(parent.key.toValue());
|
|
20487
|
+
} else if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isArrayElement)(parentPath?.node) && typeof key === 'number') {
|
|
20488
|
+
// Inside ArrayElement → push the numeric index
|
|
20489
|
+
keys.unshift(key);
|
|
20490
|
+
}
|
|
20469
20491
|
current = current.parentPath;
|
|
20470
20492
|
}
|
|
20471
20493
|
return keys;
|
|
@@ -20501,11 +20523,11 @@ class Path {
|
|
|
20501
20523
|
}
|
|
20502
20524
|
if (pathFormat === 'jsonpath') {
|
|
20503
20525
|
// RFC 9535 Normalized JSONPath
|
|
20504
|
-
return
|
|
20526
|
+
return _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__.NormalizedPath.from(parts);
|
|
20505
20527
|
}
|
|
20506
20528
|
|
|
20507
20529
|
// RFC 6901 JSON Pointer
|
|
20508
|
-
return (0,
|
|
20530
|
+
return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__.compile)(parts);
|
|
20509
20531
|
}
|
|
20510
20532
|
|
|
20511
20533
|
/**
|