Skip to content

add json tag like json:"xxx,string" support#705

Open
acrossOcean wants to merge 1 commit intobeego:developfrom
acrossOcean:feature/add_json_support
Open

add json tag like json:"xxx,string" support#705
acrossOcean wants to merge 1 commit intobeego:developfrom
acrossOcean:feature/add_json_support

Conversation

@acrossOcean
Copy link

当结构体定义为

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

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

@jackywu
Copy link

jackywu commented Aug 12, 2020

I think it's a more universal implementation #715

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants