Skip to content

Releases: bufbuild/protovalidate-go

v0.3.2

14 Sep 19:38
5b864a1
Compare
Choose a tag to compare

What's Changed

  • Build validator copy cache on write by @emcfarlane in #31
  • Bump github.com/google/cel-go from 0.17.4 to 0.17.6 by @dependabot in #39
  • Bump github.com/google/cel-go from 0.17.6 to 0.18.0 by @dependabot in #42
  • Bump buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go from 1.31.0-20230824200731-b9b8148056b9.1 to 1.31.0-20230830185350-7a34d6557349.1 by @dependabot in #41
  • Bypass deprecation lint warning by @akshayjshah in #45
  • Bump actions/checkout from 3 to 4 by @dependabot in #46
  • Cleanup: replace deprecated OptCheckStringFormat by @rodaine in #48
  • Conformance: support for multiple uniques by @rodaine in #49

New Contributors

Full Changelog: v0.3.1...v0.3.2

v0.3.1

25 Aug 20:41
2b7bc84
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.3.0...v0.3.1

v0.3.0

23 Aug 21:17
b7c1481
Compare
Choose a tag to compare

Breaking Change: Refactoring of Schema-Level Constraint Enforcement

Summary:

In the recent changes to buf/validate/validate.proto, we've refactored message definitions, targeting the organization and enforcement of rules within number-centric messages like FloatRules, DoubleRules, Int32Rules, and others.

Specific Changes:

Fields such as gt, gte, lt, and lte have been structured within a oneof to ensure exclusivity:
- Fields associated with lt and lte now reside within the less_than oneof.
- Fields linked to gt and gte have transitioned to the greater_than oneof.

Additionally, timestamp and duration fields related to lt_now and gt_now have been assimilated into their respective less_than and greater_than oneof categories.

Action Required:

To ensure seamless compatibility and functionality, users must update their protobuf dependencies and package concurrently with this release. If your protos were designed with mutually exclusive rules initially, the impact of this change should be minimal.

Rationale:

The restructure aims to make the rule application process more intuitive, thereby eliminating ambiguities and overlaps present in the earlier configuration. This approach ensures that rules are naturally exclusive, reinforcing better design practices.

What's Changed

New Contributors

Full Changelog: v0.2.1...v0.3.0

v0.2.1

21 Jul 16:08
246ff6a
Compare
Choose a tag to compare

What's Changed

  • Use a stable api version for gen and conformance by @Alfus in #21
  • Add 'for_key' support by @Alfus in #22

Full Changelog: v0.2.0...v0.2.1

v0.2.0

18 Jul 16:56
eb52d52
Compare
Choose a tag to compare

What's Changed

  • Bump buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go from 1.30.0-20230530223247-ca37dc8895db.1 to 1.30.0-20230609233005-3757a25ff0b9.1 by @dependabot in #7
  • Disable depguard lint by @rodaine in #8
  • Update README.md by @elliotmjackson in #6
  • Update conformance tests to check the message by @Alfus in #9
  • Bump google.golang.org/protobuf from 1.30.0 to 1.31.0 by @dependabot in #11
  • Update generated code with plugin changes by @rodaine in #12
  • Bump github.com/envoyproxy/protoc-gen-validate from 1.0.1 to 1.0.2 by @dependabot in #13
  • Fix field path for uint-type map key by @rodaine in #15
  • Bump buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go from 1.30.0-20230609233005-3757a25ff0b9.1 to 1.31.0-20230609233005-3757a25ff0b9.1 by @dependabot in #14
  • Update readme with protovalidate-python by @marekbuild in #18
  • Support extensions using indexes reserved for internal organization by @elliotmjackson in #17

New Contributors

Full Changelog: v0.1.1...v0.2.0

v0.1.1

01 Jun 18:39
b4ab103
Compare
Choose a tag to compare

What's Changed

  • Fix map field paths that contain Go format tokens by @rodaine in #5

Full Changelog: v0.1.0...v0.1.1

v0.1.0

31 May 19:23
f43ff97
Compare
Choose a tag to compare

What's Changed

  • Bump github.com/stretchr/testify from 1.8.3 to 1.8.4 by @dependabot in #1
  • Update documentation by @rodaine in #2
  • Update now to be a variable by @rodaine in #3
  • Add LICENSE & "protovalidate project" section to README by @rodaine in #4

New Contributors

Full Changelog: https://github.com/bufbuild/protovalidate-go/commits/v0.1.0