Skip to content

v0.14.2

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 21 Jul 20:25
d723304

Breaking changes

We want validation rules to be easy to understand for authors and consumers. To simplify Protovalidate, as of v0.14.0, we are renaming an option and remove two others. This is a breaking change, and you will have to update your Protobuf files if they use the relevant options :

  • IGNORE_IF_UNPOPULATED is renamed to IGNORE_IF_ZERO_VALUE.
    See #397 for details.
  • (buf.validate.message).disabled is removed.
    You can replace it by adding IGNORE_ALWAYS to every field of the message. See #394 for details.
  • IGNORE_IF_DEFAULT_VALUE is removed.
    In most cases, you can replace it with IGNORE_IF_ZERO_VALUE. See #396 for details.

MODULE.bazel Usage

bazel_dep(name = "protovalidate", version = "0.14.2")

WORKSPACE Usage

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "com_github_bufbuild_protovalidate",
    sha256 = "16b6f99df8bf9c712ffb4f41bfb309e16774f193da191124d11ded5fdf44009d",
    strip_prefix = "protovalidate-0.14.2",
    urls = [
        "https://github.com/bufbuild/protovalidate/releases/download/v0.14.2/protovalidate-0.14.2.tar.gz",
    ],
)

What's Changed

New Contributors

Full Changelog: v0.10.1...v0.14.2