Skip to content

Forward the input image resolver to protovalidate so it can support predefined rule#4357

Merged
doriable merged 1 commit intobufbuild:mainfrom
jeremie-stripe:validate-with-input-resolver
Feb 25, 2026
Merged

Forward the input image resolver to protovalidate so it can support predefined rule#4357
doriable merged 1 commit intobufbuild:mainfrom
jeremie-stripe:validate-with-input-resolver

Conversation

@jeremie-stripe
Copy link
Contributor

This simple change allow the --validate option of buf convert to locate custom rules (as documented in https://protovalidate.com/schemas/predefined-rules/) as long as they are included in the input (e.g. via a protoset).

@CLAassistant
Copy link

CLAassistant commented Feb 25, 2026

CLA assistant check
All committers have signed the CLA.

@jeremie-stripe jeremie-stripe changed the title Pass the input image resolver to protovalidate to it can support predefined rules Pass the input image resolver to protovalidate so it can support predefined rules Feb 25, 2026
@stefanvanburen
Copy link
Member

hey @jeremie-stripe, looks good to me — could you just change your PR title's first word to not end in "s", please? (Sorry, it's a silly regex but it helps us keep in the imperative tone.)

@jeremie-stripe jeremie-stripe changed the title Pass the input image resolver to protovalidate so it can support predefined rules Pass the input image resolver to protovalidate so it can support predefined rule Feb 25, 2026
@jeremie-stripe jeremie-stripe changed the title Pass the input image resolver to protovalidate so it can support predefined rule Forward the input image resolver to protovalidate so it can support predefined rule Feb 25, 2026
@jeremie-stripe
Copy link
Contributor Author

@stefanvanburen did "Pass" --> "Forward", hopefully that does the trick!

Copy link
Member

@doriable doriable left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks very reasonable to me, thank you! It will be available on the next release.

@doriable doriable merged commit 09cc071 into bufbuild:main Feb 25, 2026
11 of 14 checks passed
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.

4 participants