Skip to content

v2.0.3

Choose a tag to compare

@github-actions github-actions released this 06 Nov 10:33
· 9 commits to master since this release

Change Log

Refactor

  • refactor(validate): guard a negative slice index in the Set path walk 69d960e

Feature

  • feat(validate): support a slice value in the in/not_in rules 32a88ba

Fixed

  • fix(validate): resolve an acronym-style field name ignoring case aa75fd2
  • fix(validate): check an integral JSON number and a map element in in/not_in 3e5c265
  • fix(validate): format the notIn enum list with %v 6c63bb5
  • fix(validate): run the file rules on a struct or map source 5b39590
  • fix(validate): reject nil containment inputs (#356) ed93745
  • fix(validate): enforce the RFC 4122 variant in the UUID3 pattern c1da2ba

Other

  • Validate unsigned integer strings across the uint64 range (#346) bcb68f7
  • chore(deps): bump github.com/gookit/goutil from 0.8.0 to 0.8.4 (#350) 48c3f99
  • Preserve typed map keys in nested struct validation (#351) a49252e
  • chore(deps): bump github.com/gookit/goutil to v0.8.6 9c7be9a
  • chore(deps): drop the stale go.sum entries of the old goutil version 75857bb
  • Treat out-of-range slice indexes in struct paths as missing (#352) 111eb23
  • Unwrap interface elements in enum validation (#353) d19d4b6
  • Require values when required_unless dependency is missing (#354) c359374
  • docs(validate): note the in/not_in and required_unless behaviour changes b148b17
  • Compare required_if dependencies by scalar value (#355) ced5f33
  • docs(validate): note the required_if defined scalar type fix (#355) 910d4ff
  • Close multipart file handles after inspection (#358) 2946d4e
  • Reject float strings with a digitless mantissa (#359) a0fd9df