echoapi-converter 0.0.66 → 0.0.68
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 +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2413,7 +2413,11 @@ class SwaggerToApipost {
|
|
|
2413
2413
|
for (const method in pathItem) {
|
|
2414
2414
|
const swaggerApi = pathItem[method];
|
|
2415
2415
|
if (Object.prototype.toString.call(swaggerApi) !== "[object Object]")
|
|
2416
|
-
|
|
2416
|
+
continue;
|
|
2417
|
+
// 先过滤其他协议
|
|
2418
|
+
if (lodash.has(swaggerApi, "x-protocol") && swaggerApi['x-protocol'] !== 'http') {
|
|
2419
|
+
continue;
|
|
2420
|
+
}
|
|
2417
2421
|
if (lodash.has(swaggerApi, "tags") && swaggerApi.tags.length > 0) {
|
|
2418
2422
|
this.handleTags(lodash.uniq(swaggerApi.tags), tags);
|
|
2419
2423
|
}
|
|
@@ -2870,7 +2874,7 @@ class SwaggerToApipost {
|
|
|
2870
2874
|
for (const method in pathItem) {
|
|
2871
2875
|
const swaggerApi = pathItem[method];
|
|
2872
2876
|
if (Object.prototype.toString.call(swaggerApi) !== "[object Object]")
|
|
2873
|
-
|
|
2877
|
+
continue;
|
|
2874
2878
|
if (lodash.has(swaggerApi, "tags") && swaggerApi.tags.length > 0) {
|
|
2875
2879
|
this.handleTags(lodash.uniq(swaggerApi.tags), tags);
|
|
2876
2880
|
}
|