@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.
- package/CHANGELOG.md +14 -0
- package/cjs/refractor/plugins/normalize-operation-ids.cjs +1 -0
- package/cjs/refractor/plugins/replace-empty-element.cjs +1 -1
- package/dist/apidom-ns-openapi-3-1.browser.js +896 -1363
- package/dist/apidom-ns-openapi-3-1.browser.min.js +1 -1
- package/es/refractor/plugins/normalize-operation-ids.js +1 -0
- package/es/refractor/plugins/replace-empty-element.js +1 -1
- package/package.json +6 -5
|
@@ -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
|
|
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.
|
|
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-
|
|
49
|
-
"@swagger-api/apidom-
|
|
50
|
-
"@
|
|
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": "
|
|
66
|
+
"gitHead": "397e4cd2fd84bb57038183b177c0da4d80f15004"
|
|
66
67
|
}
|