Skip to content

Commit b6e9cd4

Browse files
committed
protovalidate: document type matching logic
Signed-off-by: Akshay Shah <[email protected]>
1 parent f7ae2ce commit b6e9cd4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

interceptors/protovalidate/options.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ func evaluateOpts(opts []Option) *options {
2626
return optCopy
2727
}
2828

29-
// WithIgnoreMessages sets the messages that should be ignored by the validator. Use with
30-
// caution and ensure validation is performed elsewhere.
29+
// WithIgnoreMessages sets the messages that should be ignored by the
30+
// validator. Message types are matched using their fully-qualified Protobuf
31+
// names.
32+
//
33+
// Use with caution and ensure validation is performed elsewhere.
3134
func WithIgnoreMessages(msgs ...protoreflect.MessageType) Option {
3235
names := make([]protoreflect.FullName, 0, len(msgs))
3336
for _, msg := range msgs {

0 commit comments

Comments
 (0)