go-grpc-middleware
go-grpc-middleware copied to clipboard
[validator] Let me customize the error code
return nil, grpc.Errorf(codes.InvalidArgument, err.Error())
I want to not use codes.InvalidArgument =3, so give me a opt to let me choose what errcode to return
Happy to accept a PR that introduces an option to it.
This is pretty old and we know have v2 code with different structure. Let us know if this is still important, we can reopen.