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: unknown resources do not cause a generator crash #675

Merged
merged 2 commits into from Oct 20, 2020

Conversation

software-dov
Copy link
Contributor

Some resource references do not map to actual known resource types,
e.g. from the Logging API
string destination = 3 [
(google.api.resource_reference) = {
type: "*"
}
];

It's easiest to just ignore invalid resource types.

Some resource references do not map to actual known resource types,
e.g. from the Logging API
string destination = 3 [
    (google.api.resource_reference) = {
        type: "*"
    }
];

It's easiest to just ignore invalid resource types.
@software-dov software-dov requested a review from a team as a code owner October 20, 2020 22:12
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 20, 2020
@software-dov software-dov added the automerge Merge the pull request once unit tests and other checks pass. label Oct 20, 2020
@codecov
Copy link

codecov bot commented Oct 20, 2020

Codecov Report

Merging #675 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #675   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           26        26           
  Lines         1560      1561    +1     
  Branches       315       315           
=========================================
+ Hits          1560      1561    +1     
Impacted Files Coverage Δ
gapic/schema/wrappers.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d80f56c...1c752da. Read the comment docs.

@gcf-merge-on-green gcf-merge-on-green bot merged commit 2d23d7d into googleapis:master Oct 20, 2020
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Oct 20, 2020
@software-dov software-dov deleted the resource-for-real branch October 20, 2020 22:21
gcf-merge-on-green bot pushed a commit that referenced this pull request Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants