echoapi-converter 0.0.46 → 0.0.48
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/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -733,10 +733,11 @@ const createPathItem = (item, sourceObj, pid, pidName, modelsObj, apiVersion, ta
|
|
|
733
733
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11;
|
|
734
734
|
const path = recursiveFolderPath("", sourceObj, pid, pidName);
|
|
735
735
|
const pathItem = {
|
|
736
|
+
'x-target-id': (item === null || item === void 0 ? void 0 : item.target_id) || '',
|
|
736
737
|
'x-protocol': target_type || '',
|
|
737
738
|
summary: (item === null || item === void 0 ? void 0 : item.name) || "",
|
|
738
739
|
description: (item === null || item === void 0 ? void 0 : item.description) || "",
|
|
739
|
-
tags:
|
|
740
|
+
tags: []
|
|
740
741
|
};
|
|
741
742
|
if (lodash.isArray(item === null || item === void 0 ? void 0 : item.tags) && (item === null || item === void 0 ? void 0 : item.tags.length) > 0) {
|
|
742
743
|
pathItem['x-tags'] = item === null || item === void 0 ? void 0 : item.tags;
|
|
@@ -1348,7 +1349,8 @@ ${item.description}
|
|
|
1348
1349
|
name: (item === null || item === void 0 ? void 0 : item.name) || "New Folder",
|
|
1349
1350
|
description: (item === null || item === void 0 ? void 0 : item.description) || "",
|
|
1350
1351
|
'x-type': item.target_type,
|
|
1351
|
-
'x-url': (item === null || item === void 0 ? void 0 : item.url) || ''
|
|
1352
|
+
'x-url': (item === null || item === void 0 ? void 0 : item.url) || '',
|
|
1353
|
+
'x-target-id': (item === null || item === void 0 ? void 0 : item.target_id) || ''
|
|
1352
1354
|
});
|
|
1353
1355
|
folderObj[item === null || item === void 0 ? void 0 : item.name] = item;
|
|
1354
1356
|
}
|