echoapi-converter 0.0.64 → 0.0.65

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 +1 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1125,11 +1125,7 @@ const handlePathItemRequestBody = (body, pathItem, modelsObj) => {
1125
1125
  if (lodash.isString(item === null || item === void 0 ? void 0 : item.key) &&
1126
1126
  item.key.length > 0 &&
1127
1127
  (!lodash.has(item, "is_checked") || (item === null || item === void 0 ? void 0 : item.is_checked) > 0)) {
1128
- lastData[item.key] = {
1129
- type: ((_a = item === null || item === void 0 ? void 0 : item.field_type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || 'string',
1130
- description: (item === null || item === void 0 ? void 0 : item.description) || "",
1131
- example: (item === null || item === void 0 ? void 0 : item.value) || "",
1132
- };
1128
+ lastData[item.key] = Object.assign({ type: ((_a = item === null || item === void 0 ? void 0 : item.field_type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || 'string', description: (item === null || item === void 0 ? void 0 : item.description) || "", example: (item === null || item === void 0 ? void 0 : item.value) || "" }, (lodash.isPlainObject(item === null || item === void 0 ? void 0 : item.schema) ? item.schema : {}));
1133
1129
  }
1134
1130
  return lastData;
1135
1131
  }, {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [