Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path.multi=ALL场景下 怎么根据uri来生成不同的接口名称 #839

Closed
tangchen-blip opened this issue Sep 27, 2022 · 2 comments · Fixed by #842
Closed

path.multi=ALL场景下 怎么根据uri来生成不同的接口名称 #839

tangchen-blip opened this issue Sep 27, 2022 · 2 comments · Fixed by #842
Labels
type: question&discussion Further information is requested

Comments

@tangchen-blip
Copy link

tangchen-blip commented Sep 27, 2022

image

使用export.after回掉 没办法根据uri来自定义接口名称
@tangchen-blip tangchen-blip added the type: question&discussion Further information is requested label Sep 27, 2022
@tangcent
Copy link
Owner

tangcent commented Sep 27, 2022

使用export.after回掉 没办法根据uri来自定义接口名称

是的


java source code───> api① ─②─> yapi item ─③─> yapi
                                                          └─②─> postman item ──> postman
                                                          └──> markwodn item ──> markwodn

  • 目前export.after发生在api解析完毕之后①,它对导出任何渠道都生效
  • path.multi发生在解析为能导入yapi的结构之时②, 目前只有postmanyapi应用了这个规则.
  • 我试试在导入yapi之前③再增加一个回调来处理导入yapi的每个解析处理都完成了的yapi item.

@tangchen-blip
Copy link
Author

目前我结合export.after回调和自定义扩展导出(PostmanFormatter,YapiFormatter)实现这个功能了 比较复杂 希望下个版本能够支持相关回调

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question&discussion Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants