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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echoapi-converter",
3
- "version": "0.0.66",
3
+ "version": "0.0.67",
4
4
  "description": "echoapi to swagger",
5
5
  "main": "dist/index.js",
6
6
  "files": [