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

TODO (未完成) #2

Open
AKclown opened this issue Feb 18, 2023 · 3 comments
Open

TODO (未完成) #2

AKclown opened this issue Feb 18, 2023 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@AKclown
Copy link
Owner

AKclown commented Feb 18, 2023

期待您的参与(Looking forward to your participation)

@AKclown AKclown changed the title 有不满足的需求、可以给我提issue(If you have unsatisfied needs, you can raise an issue for me) requirements gathering May 26, 2023
@AKclown AKclown changed the title requirements gathering requirements gathering(需求收集) May 26, 2023
@AKclown AKclown added the documentation Improvements or additions to documentation label May 28, 2023
@AKclown
Copy link
Owner Author

AKclown commented Jun 17, 2023

TODO
功能:
高优先级:

  • 支持swagger的schema数据转为TS类型
  • curl命令解析请求(剪切板内容判断即可)
  • 支持单个json schema转换、指定schema文档某个路径转换
  • 判断类型可重用方法优化 (重写)
  • 联合类型兼容问题 v0.7.0
    image

低优先级:

  • 引用自身(self call)

  • 新增严格模式 | 非严格模式配置。针对前面一点 (严格模式已支持)

  • API结果显示面板集成codemirror或者Monaco实现语法高亮

  • 类型之间添加空行

  • 支持多选择区域转换

  • 按照映射来实现

  • 添加测试用例

  • 增加生成类型的顺序

  • 数组对象最外层加个[]

  • 剪切板判断是否为curl请求

  • 联合类型如果其中一个是undefined,那么应该将属性变为可选即可{a: string | undefined }改为{a?: string }

  • 对类型进行字符排序,例如string | numbernumber | string应该是等价的
    image

  • 使用curl展示403错误码
    image

  • Swagger类型,新增具体路径类型导出选项

项目:

  • 添加测试用例
  • 添加CICD自动化
  • 采用webpack进行构建打包优化
  • 拆包

@leedalei
Copy link

左侧的那个api发送的配置感觉过分冗余了,我觉得一个输入框就够了,给用户复制fetch的字符串或者curl命令(谷歌开发者工具右键请求可以直接复制这些信息),我们从这个字符串里提取参数,再请求一次就行了,如果你觉得ok,我可以改一下提个mr

@AKclown
Copy link
Owner Author

AKclown commented Jul 14, 2023

左侧的那个api发送的配置感觉过分冗余了,我觉得一个输入框就够了,给用户复制fetch的字符串或者curl命令(谷歌开发者工具右键请求可以直接复制这些信息),我们从这个字符串里提取参数,再请求一次就行了,如果你觉得ok,我可以改一下提个mr

嗯嗯,合理的,我之前分析了json2tsjson to ts的是有该功能的。如果你有时间可以提个PR(感谢),不过API TO TS面板我希望保留吧(使用起来虽然比较繁琐但比较简单)

  • curl命令解析请求

@AKclown AKclown changed the title requirements gathering(需求收集) TODO (未完成) Jul 18, 2023
@AKclown AKclown self-assigned this Aug 2, 2023
@AKclown AKclown added the enhancement New feature or request label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants