Releases: bufbuild/protovalidate-go
v0.3.2
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
- @emcfarlane made their first contribution in #31
- @akshayjshah made their first contribution in #45
Full Changelog: v0.3.1...v0.3.2
v0.3.1
v0.3.0
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
- Refactor LT/GT into a oneof by @elliotmjackson in #33
- Replace protoc-gen-validate reference with protovalidate by @derekperkins in #28
- Add isNan and isInf by @Alfus in #35
- Update to protovalidate v0.4.0 by @Alfus in #36
New Contributors
- @derekperkins made their first contribution in #28
Full Changelog: v0.2.1...v0.3.0
v0.2.1
v0.2.0
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
- @elliotmjackson made their first contribution in #6
- @Alfus made their first contribution in #9
- @marekbuild made their first contribution in #18
Full Changelog: v0.1.1...v0.2.0
v0.1.1
v0.1.0
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
- @dependabot made their first contribution in #1
- @rodaine made their first contribution in #2
Full Changelog: https://github.com/bufbuild/protovalidate-go/commits/v0.1.0