Pre-release v4.0.0-rc3 #167
Closed
System-Glitch
started this conversation in
Announcement
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
*validation.Context
in validation message placeholders. Thevalidation.Placeholder
signatures becomesfunc(fieldName string, language string, ctx *validation.Context) string
. This is a breaking change.Extra
(map[string]interface{}
) to*validation.Context
. This allows placeholders to use additional information given by the validator function.validation.StructList
. This acts as a better alternative syntax for validation. The previous alternative syntax (*validation.Rules
) should not be used for validation rules definition anymore but still works.This discussion was created from the release Pre-release v4.0.0-rc3.
Beta Was this translation helpful? Give feedback.
All reactions