Releases: bufbuild/protovalidate
v0.4.2
What's Changed
- Upgrade protovalidate-testing module by @elliotmjackson in #82
Full Changelog: v0.4.1...v0.4.2
v0.4.1
v0.4.0
v0.3.1
What's Changed
- Update protovalidate-testing module dependencies by @elliotmjackson in #78
Full Changelog: v0.3.0...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 #76
Full Changelog: v0.2.8...v0.3.0
v0.2.8
What's Changed
- Update protovalidate-testing lock file by @pkwarren in #60
- Update readme with protovalidate-java by @marekbuild in #61
- Add java options to protos by @buildbreaker in #63
- Fix format error by @buildbreaker in #64
New Contributors
- @buildbreaker made their first contribution in #63
Full Changelog: v0.2.7...v0.2.8