Skip to content
Snippets Groups Projects
Commit 17b52956 authored by Fabian Seidl's avatar Fabian Seidl
Browse files

change comparison from fieldPathElem to jsut name of the specific elem

parent 8f37606e
No related branches found
No related tags found
1 merge request!1131[renovate] Update module github.com/bufbuild/protovalidate-go to v0.8.2
This commit is part of merge request !1131. Comments created here will be created in the context of that merge request.
...@@ -23,7 +23,8 @@ func isEqualFieldPaths(violationFieldPath, errFieldPath *validate.FieldPath) boo ...@@ -23,7 +23,8 @@ func isEqualFieldPaths(violationFieldPath, errFieldPath *validate.FieldPath) boo
} }
for i, elem := range violationFieldPath.GetElements() { for i, elem := range violationFieldPath.GetElements() {
if elem != errFieldPath.GetElements()[i] { errElem := errFieldPath.GetElements()[i]
if *elem.FieldName != *errElem.FieldName {
return false return false
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment