github go-playground/validator v9.9.0
Release 9.9.0

latest releases: v10.23.0, v10.22.1, v10.22.0...
7 years ago

What's new?

Added map key validation support with new keys and endkeys eg.

type Test struct {
  Map map[string]string `validate:"dive,keys,trim,endkeys,trim"`
}

keys must be directly after the dive tag; this was done for efficiency to allow map keys and values to be be handled within the same range.

see docs for more details.

Don't miss a new validator release

NewReleases is sending notifications on new releases.