vite-plugin-swagger-mcp 0.0.5 → 0.0.6
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/cjs/index.js +1 -2
- package/dist/esm/index.js +4 -5
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
package/dist/esm/index.js
CHANGED
|
@@ -163,12 +163,11 @@ export var SwaggerMcpServer = /*#__PURE__*/function () {
|
|
|
163
163
|
var _doc$paths$path$metho2;
|
|
164
164
|
var originalRef = (_doc$paths$path$metho2 = doc.paths[path][method].responses) === null || _doc$paths$path$metho2 === void 0 || (_doc$paths$path$metho2 = _doc$paths$path$metho2["200"]) === null || _doc$paths$path$metho2 === void 0 || (_doc$paths$path$metho2 = _doc$paths$path$metho2.schema) === null || _doc$paths$path$metho2 === void 0 ? void 0 : _doc$paths$path$metho2.originalRef;
|
|
165
165
|
var resolvedDefinition = _this2.resolveRef(doc, originalRef);
|
|
166
|
-
apis.push(
|
|
166
|
+
apis.push({
|
|
167
167
|
path: path,
|
|
168
|
-
method: method
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}));
|
|
168
|
+
method: method,
|
|
169
|
+
summary: doc.paths[path][method].summary || ""
|
|
170
|
+
});
|
|
172
171
|
}
|
|
173
172
|
});
|
|
174
173
|
});
|