jwt: Auth声明的api没有生成Headers的Authorization参数
happyue opened this issue · 4 comments
happyue commented
jwt: Auth声明的api没有生成Headers的Authorization参数
MaxToby commented
方便.api文件格式发一下吗?
tymon42 commented
type meReq {
Authorization string `header:"Authorization"`
}
这样的 header 经过 goctl-swagger 生成文档会成为 query 参数
tymon42 commented
这是如何解决的呢?
happyue commented
这是如何解决的呢?
我自己修改了generate/parser.go的代码,我是为了生成的json导入到YAPI中,所以没有提pr.
代码关键字:
group.Annotation.Properties["jwt"]