@speclynx/apidom-ns-asyncapi-2 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-ns-asyncapi-2
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-ns-asyncapi-2
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-ns-asyncapi-2
@@ -17574,8 +17574,10 @@ __webpack_require__.r(__webpack_exports__);
17574
17574
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17575
17575
  /* harmony export */ Path: () => (/* binding */ Path)
17576
17576
  /* harmony export */ });
17577
- /* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61198);
17578
- /* harmony import */ var _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33204);
17577
+ /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25162);
17578
+ /* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61198);
17579
+ /* harmony import */ var _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33204);
17580
+
17579
17581
 
17580
17582
 
17581
17583
 
@@ -17717,14 +17719,34 @@ class Path {
17717
17719
  }
17718
17720
 
17719
17721
  /**
17720
- * Get the path from root as an array of keys.
17722
+ * Get the semantic path from root as an array of keys.
17723
+ * Returns logical document keys (property names, array indices) rather than
17724
+ * internal ApiDOM structure keys.
17725
+ *
17726
+ * @example
17727
+ * // For a path to $.paths['/pets'].get in an OpenAPI document:
17728
+ * path.getPathKeys(); // => ['paths', '/pets', 'get']
17721
17729
  */
17722
17730
  getPathKeys() {
17723
17731
  const keys = [];
17724
17732
  // eslint-disable-next-line @typescript-eslint/no-this-alias
17725
17733
  let current = this;
17726
17734
  while (current !== null && current.key !== undefined) {
17727
- keys.unshift(current.key);
17735
+ const {
17736
+ key,
17737
+ parent,
17738
+ parentPath
17739
+ } = current;
17740
+ if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isMemberElement)(parent) && key === 'value') {
17741
+ // Inside MemberElement.value → push the member's key
17742
+ if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(parent.key)) {
17743
+ throw new TypeError('MemberElement.key must be a StringElement');
17744
+ }
17745
+ keys.unshift(parent.key.toValue());
17746
+ } else if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isArrayElement)(parentPath?.node) && typeof key === 'number') {
17747
+ // Inside ArrayElement → push the numeric index
17748
+ keys.unshift(key);
17749
+ }
17728
17750
  current = current.parentPath;
17729
17751
  }
17730
17752
  return keys;
@@ -17760,11 +17782,11 @@ class Path {
17760
17782
  }
17761
17783
  if (pathFormat === 'jsonpath') {
17762
17784
  // RFC 9535 Normalized JSONPath
17763
- return _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_1__.NormalizedPath.from(parts);
17785
+ return _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__.NormalizedPath.from(parts);
17764
17786
  }
17765
17787
 
17766
17788
  // RFC 6901 JSON Pointer
17767
- return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__.compile)(parts);
17789
+ return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__.compile)(parts);
17768
17790
  }
17769
17791
 
17770
17792
  /**