We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
type HelloReq struct { g.Meta `path:"/hello" tags:"Hello" method:"get" summary:"我的哈喽api"` Name string Pwd string `p:"pw" v:"required|length:6,30#请输入密码|密码长度不够"` }
例如这个 生成的api文档参数 用的是pwd 而实际参数应该是 pw才对
The text was updated successfully, but these errors were encountered:
swagger生成不根据p标签,p标签主要用于请求转Req,具体请看文档,swagger主要还是依赖json标签
GoFrame的struct tag(标签) 有哪些?
Sorry, something went wrong.
我感觉根据目前实际情况既然api的 req里面允许使用p标签,并且程序实际也是接收p标签的参数来转化到字段,swagger应该生成的是p标签里面的参数.
@xushushun 按理说p标签应该也是支持的,莫方,我瞅瞅。
p
fix issue #1914
35fff80
fix issue 1914 (#2075)
26e3c7a
* CI updates * fix issue #1914
No branches or pull requests
例如这个 生成的api文档参数 用的是pwd 而实际参数应该是 pw才对
The text was updated successfully, but these errors were encountered: