@swagger-api/apidom-ns-openapi-3-1 0.70.2 → 0.71.0

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.
@@ -56,6 +56,7 @@ const plugin = ({
56
56
 
57
57
  // append incremental numerical suffixes to identical operationIds
58
58
  Object.entries(normalizedOperationGroups).forEach(([normalizedOperationId, operationElements]) => {
59
+ if (!Array.isArray(operationElements)) return;
59
60
  if (operationElements.length <= 1) return;
60
61
  operationElements.forEach((operationElement, index) => {
61
62
  const indexedNormalizedOperationId = `${normalizedOperationId}${index + 1}`;
@@ -620,7 +620,7 @@ const schema = {
620
620
  const findElementFactory = (ancestor, keyName) => {
621
621
  var _ancestor$classes$fir, _ancestor$classes$fir2;
622
622
  const elementType = getNodeType(ancestor); // @ts-ignore
623
- const keyMapping = schema[elementType] || schema[(_ancestor$classes$fir = ancestor.classes.first) === null || _ancestor$classes$fir === void 0 ? void 0 : (_ancestor$classes$fir2 = _ancestor$classes$fir.toValue) === null || _ancestor$classes$fir2 === void 0 ? void 0 : _ancestor$classes$fir2.call(_ancestor$classes$fir)];
623
+ const keyMapping = schema[elementType] || schema[(_ancestor$classes$fir = ancestor.classes.first) === null || _ancestor$classes$fir === void 0 || (_ancestor$classes$fir2 = _ancestor$classes$fir.toValue) === null || _ancestor$classes$fir2 === void 0 ? void 0 : _ancestor$classes$fir2.call(_ancestor$classes$fir)];
624
624
  return typeof keyMapping === 'undefined' ? undefined : Object.prototype.hasOwnProperty.call(keyMapping, '[key: *]') ? keyMapping['[key: *]'] : keyMapping[keyName];
625
625
  };
626
626
  const plugin = () => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swagger-api/apidom-ns-openapi-3-1",
3
- "version": "0.70.2",
3
+ "version": "0.71.0",
4
4
  "description": "Parser adapter for parsing JSON documents into AsyncAPI 2.x.y namespace.",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -45,9 +45,10 @@
45
45
  "license": "Apache-2.0",
46
46
  "dependencies": {
47
47
  "@babel/runtime-corejs3": "^7.20.7",
48
- "@swagger-api/apidom-core": "^0.70.1",
49
- "@swagger-api/apidom-ns-openapi-3-0": "^0.70.2",
50
- "@types/ramda": "~0.29.1",
48
+ "@swagger-api/apidom-ast": "^0.71.0",
49
+ "@swagger-api/apidom-core": "^0.71.0",
50
+ "@swagger-api/apidom-ns-openapi-3-0": "^0.71.0",
51
+ "@types/ramda": "~0.29.3",
51
52
  "ramda": "~0.29.0",
52
53
  "ramda-adjunct": "^4.0.0",
53
54
  "stampit": "^4.3.2"
@@ -62,5 +63,5 @@
62
63
  "README.md",
63
64
  "CHANGELOG.md"
64
65
  ],
65
- "gitHead": "56f189b5db03d24b6537ca766575094a9ef90bf0"
66
+ "gitHead": "397e4cd2fd84bb57038183b177c0da4d80f15004"
66
67
  }