Skip to content

Lint MessageRules.oneof in PROTOVALIDATE check#4540

Open
jhump wants to merge 1 commit into
mainfrom
jh/lint-for-protovalidate-message-oneof-rule
Open

Lint MessageRules.oneof in PROTOVALIDATE check#4540
jhump wants to merge 1 commit 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

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMay 12, 2026, 7:11 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?

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