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

请问有计划支持解析 gin 的 required tag 吗 #65

Open
joshuap233 opened this issue Jun 30, 2023 · 1 comment
Open

请问有计划支持解析 gin 的 required tag 吗 #65

joshuap233 opened this issue Jun 30, 2023 · 1 comment

Comments

@joshuap233
Copy link

type Foo struct {
	ID      uint   `json:"id" binding:"required"`    
}

支持直接解析这个 tag,就不需要再写 @require 注释了

@link-duan
Copy link
Collaborator

很棒的建议,后续会加入对 gin tag 解析的支持

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

No branches or pull requests

2 participants