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