echoapi-converter 0.0.60 → 0.0.62

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 +5 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2136,9 +2136,9 @@ const createDataModelNewFolder = (folder_name) => {
2136
2136
  const createNewModelData = (item, key, folder_name) => {
2137
2137
  var model = {
2138
2138
  model_id: `#/components/${folder_name}/${key}`,
2139
- name: (item === null || item === void 0 ? void 0 : item.title) || key || 'New Schema',
2140
- displayName: (item === null || item === void 0 ? void 0 : item.title) || '',
2141
- display_name: (item === null || item === void 0 ? void 0 : item.title) || '',
2139
+ name: folder_name || (item === null || item === void 0 ? void 0 : item.title) || key || 'New Schema',
2140
+ displayName: folder_name || (item === null || item === void 0 ? void 0 : item.title) || '',
2141
+ display_name: folder_name || (item === null || item === void 0 ? void 0 : item.title) || '',
2142
2142
  model_type: 'model',
2143
2143
  description: (item === null || item === void 0 ? void 0 : item.description) || '',
2144
2144
  schema: {},
@@ -3999,7 +3999,7 @@ class ApifoxToApipost {
3999
3999
  description: (item === null || item === void 0 ? void 0 : item.description) || "",
4000
4000
  parent_id: (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.model_id) || "0",
4001
4001
  name: (item === null || item === void 0 ? void 0 : item.name) || "New Folder",
4002
- display_name: (item === null || item === void 0 ? void 0 : item.displayName) || "",
4002
+ display_name: (item === null || item === void 0 ? void 0 : item.displayName) || (item === null || item === void 0 ? void 0 : item.display_name) || "",
4003
4003
  sort: 1000,
4004
4004
  };
4005
4005
  pre.push(parent);
@@ -4022,7 +4022,7 @@ class ApifoxToApipost {
4022
4022
  type: "object",
4023
4023
  properties: {},
4024
4024
  },
4025
- display_name: (item === null || item === void 0 ? void 0 : item.displayName) || "",
4025
+ display_name: (item === null || item === void 0 ? void 0 : item.displayName) || (item === null || item === void 0 ? void 0 : item.display_name) || "",
4026
4026
  sort: 1000,
4027
4027
  });
4028
4028
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [