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

feat:根据 openApi 生成代码 #15

Open
wll8 opened this issue Dec 11, 2021 · 0 comments
Open

feat:根据 openApi 生成代码 #15

wll8 opened this issue Dec 11, 2021 · 0 comments

Comments

@wll8
Copy link
Owner

wll8 commented Dec 11, 2021

  • 参考 swagger-typescript-api, 但它有一些问题:
    • 生成的方法名可能在下次重新生成时不可用, 由于 api 路径变更方法名也变更.
      • 如果不能避免, 不如直接把 url 转换为函数名以减少同名情况
    • 没有显示 url 上的入参描述, 但是 openApi 中存在
    • 生成的 axios 代码调用方法与原始的 axios 本身不一致, 导致迁移成本
    • 需要支持文件下载模式, 自动解析文件名
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant