bee
bee copied to clipboard
add json tag like `json:"xxx,string"` support
当结构体定义为
type XX struct {
Id int64 `json:"id,string"`
}
时, 生成的 swagger 文件, 解析得到的 类型为 int64, 但是按照 json 规则, 应该为 string 类型 这次pr, 解决了这个问题
I think it's a more universal implementation https://github.com/beego/bee/pull/715