@speclynx/apidom-parser-adapter-arazzo-json-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-json-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-json-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-json-1
@@ -2252,8 +2252,10 @@ __webpack_require__.r(__webpack_exports__);
2252
2252
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2253
2253
  /* harmony export */ Path: () => (/* binding */ Path)
2254
2254
  /* harmony export */ });
2255
- /* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1198);
2256
- /* harmony import */ var _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3204);
2255
+ /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(5162);
2256
+ /* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1198);
2257
+ /* harmony import */ var _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3204);
2258
+
2257
2259
 
2258
2260
 
2259
2261
 
@@ -2395,14 +2397,34 @@ class Path {
2395
2397
  }
2396
2398
 
2397
2399
  /**
2398
- * Get the path from root as an array of keys.
2400
+ * Get the semantic path from root as an array of keys.
2401
+ * Returns logical document keys (property names, array indices) rather than
2402
+ * internal ApiDOM structure keys.
2403
+ *
2404
+ * @example
2405
+ * // For a path to $.paths['/pets'].get in an OpenAPI document:
2406
+ * path.getPathKeys(); // => ['paths', '/pets', 'get']
2399
2407
  */
2400
2408
  getPathKeys() {
2401
2409
  const keys = [];
2402
2410
  // eslint-disable-next-line @typescript-eslint/no-this-alias
2403
2411
  let current = this;
2404
2412
  while (current !== null && current.key !== undefined) {
2405
- keys.unshift(current.key);
2413
+ const {
2414
+ key,
2415
+ parent,
2416
+ parentPath
2417
+ } = current;
2418
+ if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isMemberElement)(parent) && key === 'value') {
2419
+ // Inside MemberElement.value → push the member's key
2420
+ if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(parent.key)) {
2421
+ throw new TypeError('MemberElement.key must be a StringElement');
2422
+ }
2423
+ keys.unshift(parent.key.toValue());
2424
+ } else if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isArrayElement)(parentPath?.node) && typeof key === 'number') {
2425
+ // Inside ArrayElement → push the numeric index
2426
+ keys.unshift(key);
2427
+ }
2406
2428
  current = current.parentPath;
2407
2429
  }
2408
2430
  return keys;
@@ -2438,11 +2460,11 @@ class Path {
2438
2460
  }
2439
2461
  if (pathFormat === 'jsonpath') {
2440
2462
  // RFC 9535 Normalized JSONPath
2441
- return _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_1__.NormalizedPath.from(parts);
2463
+ return _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__.NormalizedPath.from(parts);
2442
2464
  }
2443
2465
 
2444
2466
  // RFC 6901 JSON Pointer
2445
- return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__.compile)(parts);
2467
+ return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__.compile)(parts);
2446
2468
  }
2447
2469
 
2448
2470
  /**