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

Struct validation is skipped for fields containing slices of pointers to struct #414

Open
boyvinall opened this issue Jan 15, 2021 · 2 comments

Comments

@boyvinall
Copy link

Bug Report

Q A
Version(s) master/v11

Summary

Given the following type, the fields in Address are not validated:

type SlicePtrAddress struct {
	Addresses []*Address
}

This type of struct is common in GRPC.

@dex80526
Copy link

Ran into the exact problem. After spending hours to narrow it down (before see this issue). The fix looks correct. Could we merge the fix in?

dex80526 pushed a commit to dex80526/govalidator that referenced this issue Jul 14, 2021
@sergeyglazyrindev
Copy link

Hello guys!
I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back
Link to my repo: create issue there and we'll discuss it.

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

3 participants