From 02c12dd7ef521f1b0aac2815d9f12ef426c47f08 Mon Sep 17 00:00:00 2001 From: Dean Karn Date: Sun, 1 May 2022 09:58:02 -0700 Subject: [PATCH] update RegisterStructValidationMapRules docs --- validator_instance.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/validator_instance.go b/validator_instance.go index 48e726b..9493da4 100644 --- a/validator_instance.go +++ b/validator_instance.go @@ -284,7 +284,8 @@ func (v *Validate) RegisterStructValidationCtx(fn StructLevelFuncCtx, types ...i } } -// RegisterStructValidationMapRules registers validate map rules +// RegisterStructValidationMapRules registers validate map rules. +// Be aware that map validation rules supersede those defined on a/the struct if present. // // NOTE: this method is not thread-safe it is intended that these all be registered prior to any validation func (v *Validate) RegisterStructValidationMapRules(rules map[string]string, types ...interface{}) {