Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strict conformance fixes #212

Merged
merged 2 commits into from
Nov 26, 2024
Merged

Conversation

jchadwick-buf
Copy link
Member

@jchadwick-buf jchadwick-buf commented Nov 26, 2024

As it turns out, not specifying --strict to the conformance test runner will cause --strict_message and --strict_error to do nothing. The conformance runner will just silently treat any validation errors as matching. Yikes.

Thankfully, protovalidate-java only had a few issues hidden by this footgun, and they are easily rectified after a bit of debugging.

Most of these issues are really quite minor and mainly just have to do with consistency across languages, but notably we were not marking validation errors from map keys properly, so that will be worth rolling into a release as soon as possible.

build.gradle.kts Outdated Show resolved Hide resolved
@jchadwick-buf jchadwick-buf merged commit 54ba1f7 into main Nov 26, 2024
4 checks passed
@jchadwick-buf jchadwick-buf deleted the jchadwick/strict-conformance-fixes branch November 26, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants