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

Question:在使用struct方法验证一个struct A的时候,其中一个成员a是另一个struct B组成的slice,那如何设置a的tag来调用B的validate验证 #232

Open
PetterZhukov opened this issue Aug 28, 2023 · 0 comments
Labels
question Further information is requested

Comments

@PetterZhukov
Copy link

PetterZhukov commented Aug 28, 2023

如题
type A struct {
a []B validate:"required"
}
type B struct {
b xxx validate:"required,validateb"
}
应该如何修改 A.a 的tag来调用b的验证函数validateb呢

@inhere inhere added the question Further information is requested label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants