echoapi-converter 0.0.9 → 0.0.10
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 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1459,7 +1459,7 @@ class SwaggerToApipost {
|
|
|
1459
1459
|
this.handleTags(swaggerApi.tags, tags);
|
|
1460
1460
|
}
|
|
1461
1461
|
const api = {
|
|
1462
|
-
name: (swaggerApi === null || swaggerApi === void 0 ? void 0 : swaggerApi.summary) || (swaggerApi === null || swaggerApi === void 0 ? void 0 : swaggerApi.operationId) || 'New HTTP',
|
|
1462
|
+
name: (swaggerApi === null || swaggerApi === void 0 ? void 0 : swaggerApi.summary) || (swaggerApi === null || swaggerApi === void 0 ? void 0 : swaggerApi.__originalOperationId) || (swaggerApi === null || swaggerApi === void 0 ? void 0 : swaggerApi.operationId) || 'New HTTP',
|
|
1463
1463
|
target_type: 'api',
|
|
1464
1464
|
tags: [],
|
|
1465
1465
|
url: url || '',
|
|
@@ -1885,7 +1885,8 @@ class SwaggerToApipost {
|
|
|
1885
1885
|
this.handleTags(swaggerApi.tags, tags);
|
|
1886
1886
|
}
|
|
1887
1887
|
let api = {
|
|
1888
|
-
|
|
1888
|
+
// __originalOperationId swagger-client转换完后编码不支持中文
|
|
1889
|
+
name: (swaggerApi === null || swaggerApi === void 0 ? void 0 : swaggerApi.summary) || (swaggerApi === null || swaggerApi === void 0 ? void 0 : swaggerApi.__originalOperationId) || (swaggerApi === null || swaggerApi === void 0 ? void 0 : swaggerApi.operationId) || 'New HTTP',
|
|
1889
1890
|
tags: [],
|
|
1890
1891
|
target_type: 'api',
|
|
1891
1892
|
url: url || '',
|