Skip to content

Commit

Permalink
update RegisterStructValidationMapRules docs
Browse files Browse the repository at this point in the history
  • Loading branch information
deankarn committed May 1, 2022
1 parent d0d0c35 commit 02c12dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion validator_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}) {
Expand Down

0 comments on commit 02c12dd

Please sign in to comment.