Skip to content

v0.18.0

Choose a tag to compare

@strider2038 strider2038 released this 04 Feb 17:12
· 39 commits to main since this release
076e0ab

What's Changed

New

  • UnwrapViolations(err) — Single function to unwrap both a single Violation and ViolationList from an error. Use this instead of UnwrapViolation and UnwrapViolationList.
  • ViolationList.All() — Iterator over violations for range loops: for i, v := range violations.All() { ... }
  • PropertyPath.All() — Iterator over property path elements for range loops

Deprecated

  • UnwrapViolation and UnwrapViolationList — Use UnwrapViolations instead.

Requirements

  • Go 1.24 or later

Full Changelog: v0.17.0...v0.18.0