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

fix(AIP-4232): correct repeated field check #1337

Merged

Conversation

noahdietz
Copy link
Collaborator

@noahdietz noahdietz commented Feb 16, 2024

We misinterpreted the requirement in AIP-4232 around where repeated fields can be in a google.api.method_signature entry.

Previously, we thought repeated fields could only be the last field in the entry altogether. It is actually only allowed to be a the last field in a dot-notation chain accessing a field. That is to say, we must ensure that in a entry's field reference using dot-notation, only the last field in that chain can be repeated.

Also fixes a bug in FindFieldDotNotation where if the last field in the dot-notation chain is a message, it attempts to keep going and returns nil when it should really just return the field.

Internal bug b/317794116

@noahdietz noahdietz requested a review from a team as a code owner February 16, 2024 17:27
@andrei-scripniciuc andrei-scripniciuc merged commit b383639 into googleapis:main Feb 16, 2024
6 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.

2 participants