v0.18.0
What's Changed
New
UnwrapViolations(err)— Single function to unwrap both a singleViolationandViolationListfrom an error. Use this instead ofUnwrapViolationandUnwrapViolationList.ViolationList.All()— Iterator over violations forrangeloops:for i, v := range violations.All() { ... }PropertyPath.All()— Iterator over property path elements forrangeloops
Deprecated
UnwrapViolationandUnwrapViolationList— UseUnwrapViolationsinstead.
Requirements
- Go 1.24 or later
Full Changelog: v0.17.0...v0.18.0