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 imports
buf.validate.expression_pb2
orbuf.validate.priv.private_pb2
should now only importbuf.validate.validate_pb2
. buf.validate.priv.private_pb2.field
was moved tobuf.validate.validate_pb2.predefined
Note
This release updates protovalidate-python to use Protobuf Python v5+, which is not currently compatible with Protobuf Python v4 gencode. If you can not update to Protobuf Python v5 currently, you should continue to use protovalidate-python v0.3.1 for now.
What's Changed
- Implement predefined field constraints by @jchadwick-buf in #189
Full Changelog: v0.4.0...v0.5.0