easy-yapi icon indicating copy to clipboard operation
easy-yapi copied to clipboard

每次导出都会清除我本地的postman变更

Open fatcatmaster opened this issue 2 years ago • 2 comments

postman中的本地变更,譬如我调试时设置了一些参数等,都会在我下一次接口导出时清空,即使我导出的是全新的接口,也会将我其他所有旧接口的本地修改全部清空,偶尔还会出现导出一次生成两份一模一样接口的情况,包括把非本次导出的接口一并生成两份

下面是版本号: easyYapi version: 2.6.0.212.0 jetbrains version: IntelliJ IDEA 2023.2 (Ultimate Edition)

我idea的配置: image

fatcatmaster avatar Jul 28 '23 03:07 fatcatmaster

Postman更新的问题还没有很好的解决方案,主要是很难判断从postman读取到的最新数据是之前导入的还是用户修改过的,也就没法做diff。

偶尔还会出现导出一次生成两份一模一样接口的情况

这个有可能是没读取到最新的数据,也有另一种可能,path为/{xx}这种,如果手动在postman里调试的时候改过了,比如/123, 那用插件更新的时候没能识别出来/123这个接口就是/{xx}


总的来说,目前建议勾选Preferences(Settings) > Other Settings > EasyApi > Intelligent > export current method only,只用插件上传新的接口。尽量少用插件去更新已有的接口。 当然,如果你有更好的想法,可以提出来。 : )

tangcent avatar Jul 28 '23 10:07 tangcent

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 17 '23 11:09 stale[bot]