Skip to content

Release 9.9.0

Choose a tag to compare

@deankarn deankarn released this 13 Nov 05:00
· 182 commits to v9 since this release
61caf9d

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.