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 toIGNORE_IF_ZERO_VALUE
.
See #397 for details.(buf.validate.message).disabled
is removed.
You can replace it by addingIGNORE_ALWAYS
to every field of the message. See #394 for details.IGNORE_IF_DEFAULT_VALUE
is removed.
In most cases, you can replace it withIGNORE_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
- Add missing space to README by @stefanvanburen in #316
- Move CEL extension documentation to buf.build/docs by @jrinehart-buf in #318
- Update protovalidate CEL functions by @timostamm in #320
- Add tests for IGNORE_ALWAYS by @timostamm in #322
- Fix examples in validate.proto by @timostamm in #323
- Update copyright years by @timostamm in #321
- Return error when processing conformance results by @timostamm in #326
- Temporarily revert updates to the documentation in validate.proto by @timostamm in #327
- Add tests for custom field constraints by @timostamm in #329
- Bump golang.org/x/sync from 0.11.0 to 0.12.0 in /tools by @dependabot[bot] in #330
- Do not output expected failures in conformance runner by @timostamm in #331
- Delete the --json flag of the conformance runner by @timostamm in #332
- Add field path details to the conformance runner output by @timostamm in #333
- Delete the --strict flag of the conformance runner by @timostamm in #334
- Print unexpected success cases in the conformance runner by @timostamm in #335
- Update go protobuf 1.36.6 by @rodaine in #337
- Add additional test cases for IPv6 by @jchadwick-buf in #341
- Fix erroneous IGNORE_ALWAYS in conformance test case by @timostamm in #340
- Add tests for required with IGNORE_ALWAYS by @timostamm in #343
- Prepare GitHub docs for shift to buf.build/docs by @jrinehart-buf in #317
- Bump golang.org/x/sync from 0.12.0 to 0.13.0 in /tools by @dependabot[bot] in #344
- Update tests to adhere to CEL formatting standard by @jchadwick-buf in #345
- Add more tests for isUri and isHostname by @timostamm in #346
- Add more tests for isHostAndPort by @timostamm in #347
- Add tests for isEmail with surrounding newlines by @timostamm in #348
- Add additional tests for map keys by @smaye81 in #349
- Add additional test cases for double colon in IPv6 by @timostamm in #350
- Fix uint test by @smaye81 in #353
- Restore updated documentation in validate.proto by @timostamm in #328
- Use getField CEL function by @jchadwick-buf in #352
- Rename constraints to rules by @nicksnyder in #354
- Update create-release-draft action to need create-release-tag action to finish by @nicksnyder in #356
- Remove unused lint exceptions by @nicksnyder in #355
- Add whitespace change for release bump by @smaye81 in #358
- Add TypeScript / JavaScript to the supported languages in README.md by @timostamm in #359
- Clarify required behavior for map keys/values and repeated items by @rodaine in #360
- Bump golang.org/x/sync from 0.13.0 to 0.14.0 in /tools by @dependabot[bot] in #361
- Removing extra linefeed before TimestampRules.example by @jrinehart-buf in #364
- Upgrade to use v2 for buf.yaml by @smaye81 in #366
- Add conformance tests for testing WKT rules on incorrect types by @smaye81 in #365
- Fix incorrect examples by @smaye81 in #367
- Prep for v1.0.0-rc1 release by @smaye81 in #368
- Update links to the documentation in validate.proto by @timostamm in #370
- Update comments for Violation and Violations by @jrinehart-buf in #372
- Closing backticks for Violation example by @jrinehart-buf in #375
- Add disclaimer about CEL spec by @smaye81 in #376
- Add new
MessageOneof
rule by @smaye81 in #377 - Add more tests for
MessageOneofRule
by @srikrsna-buf in #379 - Update docs by @smaye81 in #378
- Add implicit
IGNORE_IF_UNPOPULATED
forMessageOneofRule
fields by @srikrsna-buf in #382 - Add test case for ignore override in message oneof rule by @srikrsna-buf in #383
- Add test case for too many selected fields with required MessageOneofRule by @timostamm in #384
- Clarify Protovalidate field presence by @timostamm in #385
- Fix WORKSPACE bazel instructions in release message by @wheals in #386
- Update README.md by @bufdev in #387
- Update README.md by @bufdev in #388
- Fix one incorrectly capitalized title in README by @jrinehart-buf in #389
- Bump golang.org/x/sync from 0.14.0 to 0.15.0 in /tools by @dependabot[bot] in #374
- Fix typo by @chrispine in #392
- Bump golang.org/x/sync from 0.15.0 to 0.16.0 in /tools by @dependabot[bot] in #393
- Fix reserved names by @timostamm in #395
- Remove (buf.validate.message).disabled by @timostamm in #394
- Remove IGNORE_IF_DEFAULT_VALUE by @timostamm in #396
- Rename
IGNORE_IF_UNPOPULATED
toIGNORE_IF_ZERO_VALUE
by @srikrsna-buf in #397 - Fixing a comment by @jrinehart-buf in #398
- Bump github.com/spf13/pflag from 1.0.6 to 1.0.7 in /tools by @dependabot[bot] in #401
- Update to new BCR workflow by @jchadwick-buf in #402
New Contributors
- @srikrsna-buf made their first contribution in #379
- @wheals made their first contribution in #386
Full Changelog: v0.10.1...v0.14.2