Adds support for custom predefined field constraints. See the protovalidate documentation for more information.
Updates protovalidate to v0.8.1. Note that this is a breaking change. You may need to make some adjustments to your code:
- Code that includes the headers
buf/validate/expression.pb.h
orbuf/validate/priv/private.pb.h
now only needs to includebuf/validate/validate.pb.h
. buf::validate::priv::field
was moved tobuf::validate::predefined
and is no longer considered an internal implementation detail.
Note
This release requires Protobuf v27+. Depending on your WORKSPACE
configuration, you may not have a new enough Protobuf version to support Protobuf Editions. For correct functionality, ensure that you set up a repository rule to import a newer version of Protobuf, as well as setting the --proto_compiler
and --proto_toolchain_for_*
Bazel build flags as necessary (see here for an example.)
What's Changed
- Implement predefined field constraints by @jchadwick-buf in #61
Full Changelog: v0.2.0...v0.3.0