Skip to content

Releases: go-playground/validator

Release 9.7.0

07 Sep 03:48

Choose a tag to compare

Whats New?

Added new isdefault tag, essentially it's the opposite of required and only intended for specific use cases. See #299 for more details.

What was fixed?

Corrected error in fqdn when value is blank, see #306 for more details.

Release 9.6.0

07 Aug 04:33

Choose a tag to compare

What's new?

Added hostname and fqdn validations thanks to @senuphtyz and PR #298

Release 9.5.0

30 Jul 03:54

Choose a tag to compare

What new?

Added contextual validation support via context.Context: thanks to @thaonx @NUXIER and PR #292

  • RegisterValidationCtx(...)
  • RegisterStructValidationCtx(...)
  • StructCtx(...)
  • StructFilteredCtx(...)
  • StructPartialCtx(...)
  • StructExceptCtx(...)
  • VarCtx(...)
  • VarWithValueCtx(...)

NOTE: in v10 release all old methods will be removed and only new Context methods will remain.

Release 8.18.2

30 Jul 05:03

Choose a tag to compare

What was fixed?

Backported some test fixes to solve false positives

Release 9.4.0

12 Jun 05:30

Choose a tag to compare

What's new?

  • Add Access to Field Name from FieldLevel interface via FieldLevel.FieldName() and FieldLevel.StructFieldName()
  • Renamed examples directory to _examples to avoid any potential dependencies in examples being pulled in by go tools.

Release 9.3.6

05 Apr 11:14

Choose a tag to compare

What was fixed?

  • Some more typos in the documentation.
  • Updated README to fix rendering issue with GitHub's new markdown parser.

Release 9.3.5

24 Feb 17:51

Choose a tag to compare

What was fixed?

  • Corrected some typos in README which Fixes #273
  • updated lint issue in one of the tests
  • Updated Benchmarks for Go 1.8

Release 9.3.4

14 Feb 07:26

Choose a tag to compare

What was fixed?

no issues with validator, just updating test.

  • Updated failing test for new translation error message.
  • Updated benchmarks with my new dev machine at the same time.

Release 9.3.3

01 Feb 23:56

Choose a tag to compare

What was fixed?

Release 9.3.2

23 Dec 02:51

Choose a tag to compare

What was fixed?

Corrected Namespace issue when a field within an array or map of structs causes an error, see #266

Thanks @cbandy for reporting!