echoapi-converter 0.0.66 → 0.0.67
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 +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2414,6 +2414,10 @@ class SwaggerToApipost {
|
|
|
2414
2414
|
const swaggerApi = pathItem[method];
|
|
2415
2415
|
if (Object.prototype.toString.call(swaggerApi) !== "[object Object]")
|
|
2416
2416
|
return;
|
|
2417
|
+
// 先过滤其他协议
|
|
2418
|
+
if (lodash.has(swaggerApi, "x-protocol") && swaggerApi['x-protocol'] !== 'http') {
|
|
2419
|
+
return;
|
|
2420
|
+
}
|
|
2417
2421
|
if (lodash.has(swaggerApi, "tags") && swaggerApi.tags.length > 0) {
|
|
2418
2422
|
this.handleTags(lodash.uniq(swaggerApi.tags), tags);
|
|
2419
2423
|
}
|