@speclynx/apidom-parser-adapter-asyncapi-yaml-2 2.2.0 → 2.2.1

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,10 @@
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.1](https://github.com/speclynx/apidom/compare/v2.2.0...v2.2.1) (2026-01-20)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-parser-adapter-asyncapi-yaml-2
9
+
6
10
  # [2.2.0](https://github.com/speclynx/apidom/compare/v2.1.0...v2.2.0) (2026-01-19)
7
11
 
8
12
  **Note:** Version bump only for package @speclynx/apidom-parser-adapter-asyncapi-yaml-2
@@ -21150,8 +21150,10 @@ __webpack_require__.r(__webpack_exports__);
21150
21150
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
21151
21151
  /* harmony export */ Path: () => (/* binding */ Path)
21152
21152
  /* harmony export */ });
21153
- /* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(61198);
21154
- /* harmony import */ var _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33204);
21153
+ /* harmony import */ var _speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25162);
21154
+ /* harmony import */ var _speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61198);
21155
+ /* harmony import */ var _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33204);
21156
+
21155
21157
 
21156
21158
 
21157
21159
 
@@ -21293,14 +21295,34 @@ class Path {
21293
21295
  }
21294
21296
 
21295
21297
  /**
21296
- * Get the path from root as an array of keys.
21298
+ * Get the semantic path from root as an array of keys.
21299
+ * Returns logical document keys (property names, array indices) rather than
21300
+ * internal ApiDOM structure keys.
21301
+ *
21302
+ * @example
21303
+ * // For a path to $.paths['/pets'].get in an OpenAPI document:
21304
+ * path.getPathKeys(); // => ['paths', '/pets', 'get']
21297
21305
  */
21298
21306
  getPathKeys() {
21299
21307
  const keys = [];
21300
21308
  // eslint-disable-next-line @typescript-eslint/no-this-alias
21301
21309
  let current = this;
21302
21310
  while (current !== null && current.key !== undefined) {
21303
- keys.unshift(current.key);
21311
+ const {
21312
+ key,
21313
+ parent,
21314
+ parentPath
21315
+ } = current;
21316
+ if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isMemberElement)(parent) && key === 'value') {
21317
+ // Inside MemberElement.value → push the member's key
21318
+ if (!(0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isStringElement)(parent.key)) {
21319
+ throw new TypeError('MemberElement.key must be a StringElement');
21320
+ }
21321
+ keys.unshift(parent.key.toValue());
21322
+ } else if ((0,_speclynx_apidom_datamodel__WEBPACK_IMPORTED_MODULE_0__.isArrayElement)(parentPath?.node) && typeof key === 'number') {
21323
+ // Inside ArrayElement → push the numeric index
21324
+ keys.unshift(key);
21325
+ }
21304
21326
  current = current.parentPath;
21305
21327
  }
21306
21328
  return keys;
@@ -21336,11 +21358,11 @@ class Path {
21336
21358
  }
21337
21359
  if (pathFormat === 'jsonpath') {
21338
21360
  // RFC 9535 Normalized JSONPath
21339
- return _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_1__.NormalizedPath.from(parts);
21361
+ return _speclynx_apidom_json_path__WEBPACK_IMPORTED_MODULE_2__.NormalizedPath.from(parts);
21340
21362
  }
21341
21363
 
21342
21364
  // RFC 6901 JSON Pointer
21343
- return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_0__.compile)(parts);
21365
+ return (0,_speclynx_apidom_json_pointer__WEBPACK_IMPORTED_MODULE_1__.compile)(parts);
21344
21366
  }
21345
21367
 
21346
21368
  /**