Skip to content

Commit 02c12dd

Browse files
author
Dean Karn
committed
update RegisterStructValidationMapRules docs
1 parent d0d0c35 commit 02c12dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

validator_instance.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ func (v *Validate) RegisterStructValidationCtx(fn StructLevelFuncCtx, types ...i
284284
}
285285
}
286286

287-
// RegisterStructValidationMapRules registers validate map rules
287+
// RegisterStructValidationMapRules registers validate map rules.
288+
// Be aware that map validation rules supersede those defined on a/the struct if present.
288289
//
289290
// NOTE: this method is not thread-safe it is intended that these all be registered prior to any validation
290291
func (v *Validate) RegisterStructValidationMapRules(rules map[string]string, types ...interface{}) {

0 commit comments

Comments
 (0)