echoapi-converter 0.0.46 → 0.0.47

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -733,6 +733,7 @@ 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) || "",
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.46",
3
+ "version": "0.0.47",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [