Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 24, 2025

Bumps build.buf:protovalidate from 0.2.1 to 0.6.0.

Release notes

Sourced from build.buf:protovalidate's releases.

v0.6.0

Breaking Changes

The internal package has been removed. The APIs exposed in internal were 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 via internal, please file an issue.

What's Changed

New Contributors

Full Changelog: bufbuild/protovalidate-java@v0.5.0...v0.6.0

v0.5.0

Breaking Changes

The build.buf.protovalidate.ValidationResult.getViolations() method no longer returns a list of protobuf build.buf.validate.Violations messages, but a list of a new wrapper class, build.buf.protovalidate.Violation. In most cases, changing the import for Violation and calling the toProto() 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());
     }

ValidationResult also has a toProto() method that returns the protobuf build.buf.validate.Violations message equivalent. This can be used to get a list of protobuf build.buf.validate.Violation messages, using the getViolationsList() getter of said message, as before.

+    List<build.buf.validate.Violation> violations = validator.validate(msg).getViolations();
-    List<build.buf.validate.Violation> violations = validator.validate(msg).toProto().getViolationsList();

... (truncated)

Commits
  • 5f31126 Update to protovalidate 0.10.3 (#247)
  • e8c77d1 Bump org.junit:junit-bom from 5.12.0 to 5.12.1 (#244)
  • fac49b4 Jrinehart/tcn 2782 protovalidate java custom rules cannot use repeated nested...
  • 78c55f0 Bump build.buf:buf from 1.50.0 to 1.50.1 (#245)
  • 37a7ac3 Bump com.google.protobuf:protobuf-java from 4.29.3 to 4.30.1 (#243)
  • b3cd731 Bump maven-publish from 0.30.0 to 0.31.0 (#242)
  • 5e379eb Bump com.uber.nullaway:nullaway from 0.12.3 to 0.12.4 (#239)
  • 9d82453 Bump org.junit:junit-bom from 5.11.4 to 5.12.0 (#237)
  • 9fb2d8c Remove support for deprecated options (#235)
  • 07f1637 Add URN validation to URI rule (#236)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [build.buf:protovalidate](https://github.com/bufbuild/protovalidate-java) from 0.2.1 to 0.6.0.
- [Release notes](https://github.com/bufbuild/protovalidate-java/releases)
- [Commits](bufbuild/protovalidate-java@v0.2.1...v0.6.0)

---
updated-dependencies:
- dependency-name: build.buf:protovalidate
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Mar 24, 2025
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 2, 2025

Superseded by #52.

@dependabot dependabot bot closed this May 2, 2025
@dependabot dependabot bot deleted the dependabot/maven/build.buf-protovalidate-0.6.0 branch May 2, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants