Skip to content

Releases: go-playground/validator

Release 10.15.0

06 Aug 17:17
5bf55dc
Compare
Choose a tag to compare

What's new?

  • Applying tag validations on structs is now a reality thank to @MysteriousPotato in this PR
  • Added oneof tag to examples in this PR
  • Added Spice DB validations in this PR

What was fixed?

  • Fixed the REAMD logo link in this PR
  • Fixed filepath validation when path is a directory in this PR
  • Correct to docs in this PR

Release 10.14.1

04 Jun 14:40
bd1113d
Compare
Choose a tag to compare

What was fixed?

  • Add allowance to valid JSOn for types convertible to such as json.RawMessage in this PR
  • Fix URL validation with only schema in this PR

Release 10.14.0

21 May 14:35
Compare
Choose a tag to compare

What's new?

  • Added on disk file validation from this PR
  • Enhanced credit card validation test to 100% with this PR

Release 10.13.0

29 Apr 15:16
Compare
Choose a tag to compare

What's new?

  • Added skip_unless validation.

What was fixed?

  • Fixed excluded_if validation not working as documented.
  • Fix state and province codes to meet iso3166_2 standard.
  • Update go-urn library to remove GPLv3 library dependency
  • Many updates to documentation.

Release 10.12.0

20 Mar 00:39
Compare
Choose a tag to compare

What is new?

  • Added eth_addr_checksum validation.
  • Added eg_ignore_case and ne_ignore_case
  • Added http_url validation for http(s) URL's
  • Added cron validation.
  • Added unique validation ability to validate struct fields.
  • Added base64rawurl validation for base64 url without = padding
  • Added mongodb objectID validation
  • Added filepath validation.
  • Added dirpath validation.
  • Added luhn_checksum validation.
  • Added cve validation.
  • Added kosovo to country codes.
  • Added Latvian translations.
  • Added multiple missing language translations.

What was fixed?

  • Fixed multiple documentation grammar issues.
  • Updated all dependencies to address any lingering CVE issues be reported by tools, even if not able to exploit through this package.
  • Fixed excluded_unless validation.
  • Fix unique validation for map with Pointer values.
  • Fixed unique validation for struct field when itis a nil pointer.
  • Fixed multiple language validation.
  • Fixed notblank validation to cover all whitespace characters

What was changed?

  • Tweaked eth_addr validation while adding eth_addr_checksum.
  • Updated Struct Level validation example for enum+ example.
  • Removed unnecessary cast allowing mocking of ValidationErrors

Release 10.11.2

30 Jan 04:46
8f07b03
Compare
Choose a tag to compare

What was fixed

  • Merged some PR and updated deps to address some CVE's in those libraries.

Release 10.11.1

16 Sep 16:04
c7e0172
Compare
Choose a tag to compare

What was fixed?

Corrected/Enhanced is boolean check to take the field type into consideration. Thanks @V-R-Dighe for the PR

Release 10.11.0

01 May 17:11
Compare
Choose a tag to compare

What's new?

  • Add ability to validate structs using map rules. #934
  • A number of hash validations. #875
  • Italian translations. #694 #914
  • Vietnamese translations. #820
  • Arabic translations. #825
  • Added missing Boolean translation. #930
  • Add missing required translation. #884
  • Add missing zh translations. #856
  • Added exclude_if and excluded_unless tags. #847
  • Added Credit Card validation. #924

What was fixed?

  • Fix support for aliased time.Time types. #890
  • Fix multiple group of OR operators. #911
  • Remove underscore from RFC-1123 based regex. #912
  • ja typos. #898
  • Documentation typos. #891

What was enhanced?

  • ValidationCtx now supports nested slice maps. #917
  • RegisterTagNameFunc documentation. RegisterTagNameFunc

Release 10.10.1

08 Mar 01:33
58d5778
Compare
Choose a tag to compare

What was fixed?

Updated a couple of dependencies to resolve some vulnerabilities found within.

Release 10.10.0

02 Jan 01:45
88976f3
Compare
Choose a tag to compare

What's new?

  • Added string support for country_code validation, thanks @uberswe for the PR.
  • Added support for alpha hex colours, thanks @nesty92 for the PR.
  • Added DNS RFC 1035 label format validator, thanks @0n1shi for the PR.
  • Added ULID validation, thanks @uberswe for the PR.
  • Added regex version (Semantic Versioning 2.0.0) validation, thanks @jtseng-godaddy for the PR.