echoapi-converter 0.0.50 → 0.0.51
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 +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -707,11 +707,12 @@ const handlePathItemRequestBody = (body, pathItem, modelsObj) => {
|
|
|
707
707
|
schema: {
|
|
708
708
|
type: "object",
|
|
709
709
|
properties: parameter.reduce((lastData, item) => {
|
|
710
|
+
var _a;
|
|
710
711
|
if (lodash.isString(item === null || item === void 0 ? void 0 : item.key) &&
|
|
711
712
|
item.key.length > 0 &&
|
|
712
713
|
(!lodash.has(item, "is_checked") || (item === null || item === void 0 ? void 0 : item.is_checked) > 0)) {
|
|
713
714
|
lastData[item.key] = {
|
|
714
|
-
type:
|
|
715
|
+
type: ((_a = item === null || item === void 0 ? void 0 : item.field_type) === null || _a === void 0 ? void 0 : _a.toLowerCase()) || 'string',
|
|
715
716
|
description: (item === null || item === void 0 ? void 0 : item.description) || "",
|
|
716
717
|
example: (item === null || item === void 0 ? void 0 : item.value) || "",
|
|
717
718
|
};
|