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

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

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