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: include non-required resource fields in helpers #635

Merged
merged 2 commits into from
May 31, 2023

Conversation

noahdietz
Copy link
Collaborator

Previously, the algorithm for identifying resources in scope of helper generation only traversed fields of type message that were annotated as required (and of course, represented a resource). This resulted in some such fields being excluded from helper generation, when they are in fact part of the request message tree.

This just removes that check on isRequired field, bringing such references in scope.

Updates #453

@noahdietz noahdietz requested review from a team as code owners May 31, 2023 19:49
@snippet-bot
Copy link

snippet-bot bot commented May 31, 2023

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@noahdietz noahdietz requested a review from bshaffer May 31, 2023 19:49
Copy link
Contributor

@bshaffer bshaffer left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

2 participants