chore(deps): update dependency build.buf:protovalidate to v1 #31
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.2.1->1.1.0Release Notes
bufbuild/protovalidate-java (build.buf:protovalidate)
v1.1.0This release is compatible with the v1.1.0 release of Protovalidate.
What's Changed
Full Changelog: bufbuild/protovalidate-java@v1.0.1...v1.1.0
v1.0.1What's Changed
New Contributors
Full Changelog: bufbuild/protovalidate-java@v1.0.0...v1.0.1
v1.0.0Protovalidate is now v1.0
After two years of development, Protovalidate has reached v1.0, marking our commitment to stability and production readiness.
Read more in our blog post. Get started at https://protovalidate.com.
What's Changed
There are no functional changes compared to the previous release.
Full Changelog: bufbuild/protovalidate-java@v0.14.0...v1.0.0
v0.14.0What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.13.0...v0.14.0
v0.13.0This release is compatible with the v0.14.0 release of Protovalidate.
Breaking changes
We want validation rules to be easy to understand for authors and consumers. To simplify Protovalidate, 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_UNPOPULATEDis renamed toIGNORE_IF_ZERO_VALUE.See bufbuild/protovalidate#397 for details.
(buf.validate.message).disabledis removed.You can replace it by adding
IGNORE_ALWAYSto every field of the message. See bufbuild/protovalidate#394 for details.IGNORE_IF_DEFAULT_VALUEis removed.In most cases, you can replace it with
IGNORE_IF_ZERO_VALUE. See bufbuild/protovalidate#396 for details.Full Changelog: bufbuild/protovalidate-java@v0.12.0...v0.13.0
v0.12.0This release is compatible with the v0.13.3 release of Protovalidate.
What's Changed
MessageOneofRuleby @srikrsna-buf in #311IGNORE_IF_UNPOPULATEDforMessageOneofRulefields by @srikrsna-buf in #312Full Changelog: bufbuild/protovalidate-java@v0.11.0...v0.12.0
v0.11.0This release is compatible with the v0.13.0 release of Protovalidate.
What's Changed
MessageOneofRuleby @srikrsna-buf in #308Full Changelog: bufbuild/protovalidate-java@v0.10.0...v0.11.0
v0.10.0What's Changed
The underlying CEL implementation used by protovalidate-java has been changed to Google's cel-java. There are no breaking changes as a result and all modifications should be internal to this library.
bytes_to_stringby @srikrsna-buf in #304dev.cel:celby @srikrsna-buf in #303Full Changelog: bufbuild/protovalidate-java@v0.9.1...v0.10.0
v0.9.1What's Changed
This is a maintenance update that includes an important bug fix: in some situations, the CEL environment does not correctly get populated with its dependencies; specifically, when an expression refers to a submessage whose dependency is in a non-public import, it will not be added to the CEL environment.
Full Changelog: bufbuild/protovalidate-java@0.9.0...v0.9.1
v0.9.0Breaking Changes
String formatting is now conformant with the CEL spec.
As a result, some formatting output may differ from previous versions. See #293, #294, and #295 for details on formatting changes.
What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.8.0...v0.9.0
v0.8.0Breaking Changes
New API for creating a validator.
Validators are now created via
ValidatorFactoryusing a builder pattern. To migrate, users should make the following changes:With no config
With config
Also note that the returned type is an interface (still named
Validator) and no longer a concrete class.In addition to the above change, users can now seed the validator with descriptors for warming up the cache. To do so, use the
buildWithDescriptorsmethod on the builder. The signature is:An example creating a validator with seed descriptors:
For more context on the changes, see PR #283.
ValidationResult.toStringoutput changedThe
toStringmethod ofValidationResultwill now printValidation OKif there are no violations. Previously, this text was alwaysValidation error:regardless of whether there were any actual violations.Protovalidate Compatibility
This release is compatible with Protovalidate v0.11.1.
What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.7.2...v0.8.0
v0.7.2What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.7.1...v0.7.2
v0.7.1What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.7.0...v0.7.1
v0.7.0Breaking Changes
The most notable change is that the validation for IP addresses and prefixes (both v4 and v6), email addresses, and URIs has been significantly enhanced to adhere to the relevant RFCs for each. Note that these tighter validations result in breaking changes as some previously-passing values may now be failures. Additionally, with regards to
string.email/isEmailvalidation, we no longer follow RFC 5322 and instead use the HTML standard's definition for valid email addresses.For more context on the validation changes and conformance tests added, see the corresponding PR in Protovalidate: bufbuild/protovalidate#320.
For full details of the validation changes as they apply to protovalidate-java, see #258.
In addition, all references to the usage of
constrainthave been changed torule. Previously, these were used interchangeably which led to some confusion. The v0.11.0 release of Protovalidate contains this full rename, which necessitated the change in protovalidate-java and was implemented in #273. As a result, any reference toconstraintin code will need to be changed torule.What's Changed
This release is compatible with Protovalidate v0.11.0.
thisvariable by @smaye81 in #278thisvariable by @smaye81 in #276Full Changelog: bufbuild/protovalidate-java@v0.6.0...v0.7.0
v0.6.0Breaking Changes
The
internalpackage has been removed. The APIs exposed ininternalwere never considered to be public, but were nonetheless possible for external packages to import. This is no longer possible. If you were relying on an API that was exposed viainternal, please file an issue.What's Changed
New Contributors
Full Changelog: bufbuild/protovalidate-java@v0.5.0...v0.6.0
v0.5.0Breaking Changes
The
build.buf.protovalidate.ValidationResult.getViolations()method no longer returns a list of protobufbuild.buf.validate.Violationsmessages, but a list of a new wrapper class,build.buf.protovalidate.Violation. In most cases, changing the import forViolationand calling thetoProto()method of the violation is all that needs to be done:// Note that the import should also change from `build.buf.validate.Violation` // to `build.buf.protovalidate.Violation`. for (Violation violation : validator.validate(msg).getViolations()) { - System.out.println(violation.getConstraintId()); + System.out.println(violation.toProto().getConstraintId()); }ValidationResultalso has atoProto()method that returns the protobufbuild.buf.validate.Violationsmessage equivalent. This can be used to get a list of protobufbuild.buf.validate.Violationmessages, using thegetViolationsList()getter of said message, as before.The new
build.buf.protovalidate.Violationclass provides additional getters for in-memory information about the violation which cannot be serialized to the wire:getFieldValue(): Returns the value of the field failing validation, if there is a field corresponding to the violation.getRuleValue(): Returns the value of the rule failing validation, if there is a rule corresponding to the violation.Take, for example, the following protobuf message schema:
If you try to validate the message
User.newBuilder().setEmail("invalid").build(),getFieldValue().getValue()will return"invalid"andgetRuleValue().getValue()will returntrue.Some violations do not correspond directly to a field, such as a message constraint failure; in these cases, the return value of
getFieldValue()will be null.What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.4.2...v0.5.0
v0.4.2What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.4.1...v0.4.2
v0.4.1What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.4.0...v0.4.1
v0.4.0Adds 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:
build.buf.validate.ExpressionProtoorbuild.buf.validate.priv.PrivateProtoshould now only importbuild.buf.validate.ValidateProto.build.buf.validate.priv.PrivateProto.fieldwas moved tobuild.buf.validate.ValidateProto.predefinedWhat's Changed
Full Changelog: bufbuild/protovalidate-java@v0.3.2...v0.4.0
v0.3.2What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.3.1...v0.3.2
v0.3.1What's Changed
New Contributors
Full Changelog: bufbuild/protovalidate-java@v0.3.0...v0.3.1
v0.3.0What's Changed
Full Changelog: bufbuild/protovalidate-java@v0.2.1...v0.3.0
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. Specmatic specific configuration is managed here.