Skip to content

Lint MessageRules.oneof in PROTOVALIDATE check#4540

Merged
jhump merged 4 commits into
mainfrom
jh/lint-for-protovalidate-message-oneof-rule
May 21, 2026
Merged

Lint MessageRules.oneof in PROTOVALIDATE check#4540
jhump merged 4 commits into
mainfrom
jh/lint-for-protovalidate-message-oneof-rule

Conversation

@jhump
Copy link
Copy Markdown
Member

@jhump jhump commented May 12, 2026

Validate that each MessageOneofRule entry names at least one field, contains no duplicate names, references only fields defined in the message, and that no field appears in more than one entry.

Validate that each MessageOneofRule entry names at least one field,
contains no duplicate names, references only fields defined in the
message, and that no field appears in more than one entry.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMay 21, 2026, 8:45 PM

Copy link
Copy Markdown
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 makes sense to me -- I know there's a lint exception that needs to be added for the int32 conversion for field tags, approving in advance of that. Super tiny note: do you mind adding a changelog entry for this?

@jhump
Copy link
Copy Markdown
Member Author

jhump commented May 21, 2026

This makes sense to me -- I know there's a lint exception that needs to be added for the int32 conversion for field tags, approving in advance of that. Super tiny note: do you mind adding a changelog entry for this?

Sorry it took me so long to get back to this. Fixed the lint rule and also added the changelog entry.

@jhump jhump merged commit 88dfb34 into main May 21, 2026
10 checks passed
@jhump jhump deleted the jh/lint-for-protovalidate-message-oneof-rule branch May 21, 2026 20:49
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