Skip to content

Commit e91ca3c

Browse files
committed
Removed reflect from validation errors and updated tests.
1 parent 440f0df commit e91ca3c

File tree

7 files changed

+273
-230
lines changed

7 files changed

+273
-230
lines changed

Gopkg.lock

+100-25
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
name = "github.com/grpc-ecosystem/grpc-gateway"
1919
version = "1.4.1"
2020

21-
[[constraint]]
21+
[[override]]
2222
name = "github.com/lyft/protoc-gen-validate"
23-
version = "0.0.5"
23+
version = "0.0.7"
2424

2525
[[constraint]]
2626
name = "github.com/sirupsen/logrus"

errors/mappers/validationerrors/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Example Usage:
8787
),
8888
errors.MapFunc(func(ctx context.Context, err error) (error, bool) {
8989
vErr, _ := err.(validationerrors.ValidationError)
90-
return errors.NewContainer(codes.InvalidArgument, "Custom error message for field: %v reason: %v", vErr.Field, vErr.Reason), true
90+
return errors.NewContainer(codes.InvalidArgument, "Custom error message for field: %v reason: %v", vErr.Field(), vErr.Reason()), true
9191
}),
9292
),
9393
}

0 commit comments

Comments
 (0)