Skip to content

fix(AIP-203): add oneof field behavior exception#1628

Merged
noahdietz merged 1 commit into
masterfrom
aip-203-oneof-exception
Jun 24, 2026
Merged

fix(AIP-203): add oneof field behavior exception#1628
noahdietz merged 1 commit into
masterfrom
aip-203-oneof-exception

Conversation

@noahdietz

Copy link
Copy Markdown
Collaborator

oneof member fields are exempt from various google.api.field_behavior requirements due, like needing to have at least one of optional/required/output_only and consistency checks (googleapis/api-linter#708).

They are technically still allowed to use them, but if they choose not to (and linters will not nudge them towards using them), then they should document any specific behaviors in comments.

Internal issue http://b/527345401

@noahdietz noahdietz requested a review from a team as a code owner June 24, 2026 11:40
@noahdietz noahdietz requested review from jskeet and neomagus00 and removed request for neomagus00 June 24, 2026 11:40
@noahdietz noahdietz enabled auto-merge (squash) June 24, 2026 11:48
@noahdietz noahdietz requested a review from quirogas June 24, 2026 11:50
@noahdietz noahdietz merged commit 9dd7678 into master Jun 24, 2026
8 checks passed
@noahdietz noahdietz deleted the aip-203-oneof-exception branch June 24, 2026 11:51
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