bee icon indicating copy to clipboard operation
bee copied to clipboard

add json tag like `json:"xxx,string"` support

Open acrossOcean opened this issue 5 years ago • 1 comments

当结构体定义为

type XX struct {
  Id int64 `json:"id,string"`
}

时, 生成的 swagger 文件, 解析得到的 类型为 int64, 但是按照 json 规则, 应该为 string 类型 这次pr, 解决了这个问题

acrossOcean avatar Jul 29 '20 08:07 acrossOcean

I think it's a more universal implementation https://github.com/beego/bee/pull/715

jackywu avatar Aug 12 '20 02:08 jackywu