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

[New Featrue] 支持自定义 Header 字段生成参数可选 #18

Closed
haitaodesign opened this issue Feb 14, 2020 · 8 comments
Closed

[New Featrue] 支持自定义 Header 字段生成参数可选 #18

haitaodesign opened this issue Feb 14, 2020 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@haitaodesign
Copy link

haitaodesign commented Feb 14, 2020

  1. 看到之前版本是有源代码公开的
  2. 现在不公开是为什么?
@gogoyqj
Copy link
Owner

gogoyqj commented Feb 14, 2020

@haitaodesign 现在代码是从另外一个仓库同步来的

https://github.com/gogoyqj/tkit/tree/master/packages/service/src

@haitaodesign
Copy link
Author

@haitaodesign 现在代码是从另外一个仓库同步来的

https://github.com/gogoyqj/tkit/tree/master/packages/service/src

收到,谢谢!

@haitaodesign
Copy link
Author

@gogoyqj 请教你一个问题,我们的前端自定义的响应头(headers) Authorization ,在代码自动生成的时候请求参数就必须有这个参数,为了不在参数里面生成这个参数(不需要),我做了如下操作:

haitaodesign@8607d43

这样处理并不是很好的解决办法,当时也没有找到合适的方式,不知道有什么便捷的方式解决这个问题

@gogoyqj
Copy link
Owner

gogoyqj commented Feb 14, 2020

建议先把 yapi json 下载到本地,移除auth字段,再传递给工具生成代码

@haitaodesign
Copy link
Author

haitaodesign commented Feb 14, 2020

建议先把 yapi json 下载到本地,移除auth字段,再传递给工具生成代码

  1. 这就需要我单独写工具自动化这块的功能,有木有好的办法在工具层面解决掉这个问题
  2. 能不能暴露一个对 yapi-json 数据拦截功能,对数据进行修改

@haitaodesign haitaodesign changed the title 为什么不开放源码了? [New Featrue] 支持自定义 Headers 字段生成参数可选 Feb 14, 2020
@haitaodesign haitaodesign changed the title [New Featrue] 支持自定义 Headers 字段生成参数可选 [New Featrue] 支持自定义 Header 字段生成参数可选 Feb 14, 2020
@gogoyqj
Copy link
Owner

gogoyqj commented Feb 19, 2020

@haitaodesign 我在 yapiconfig 里加一个钩子吧

@gogoyqj gogoyqj self-assigned this Feb 19, 2020
@gogoyqj gogoyqj added the enhancement New feature or request label Feb 19, 2020
@gogoyqj
Copy link
Owner

gogoyqj commented Feb 19, 2020

@haitaodesign
Copy link
Author

@gogoyqj gogoyqj closed this as completed Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants