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

protoc-gen-openapiv2: Fix message recursion detection (v2) #1439

Merged
merged 2 commits into from
Jun 4, 2020
Merged

Conversation

doyleish
Copy link
Contributor

@doyleish doyleish commented Jun 4, 2020

Cherry-picked + merged from #1437

  • Fixes a bug introduced during 9e25b2b which introduced recursion
    detection within messages. Briefly, the nature of the bug was that
    references to messages not in the current recursion traversal were
    remaining in the map used to track those occurrences.
  • Includes a test case outlining the edge case that prompted this fix.

References to other Issues or PRs

Have you read the Contributing Guidelines?

Brief description of what is fixed or changed

Other comments

- Fixes a bug introduced during 9e25b2b which introduced recursion
  detection within messages. Briefly, the nature of the bug was that
  references to messages not in the current recursion traversal were
  remaining in the map used to track those occurrences.
- Includes a test case outlining the edge case that prompted this fix.
@doyleish doyleish changed the title protoc-gen-swagger: Fix message recursion detection (v2) protoc-gen-openapiv2: Fix message recursion detection (v2) Jun 4, 2020
@codecov-commenter
Copy link

Codecov Report

Merging #1439 into v2 will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##               v2    #1439      +/-   ##
==========================================
+ Coverage   58.97%   59.00%   +0.03%     
==========================================
  Files          32       32              
  Lines        3895     3898       +3     
==========================================
+ Hits         2297     2300       +3     
  Misses       1344     1344              
  Partials      254      254              
Impacted Files Coverage Δ
...otoc-gen-openapiv2/internal/genopenapi/template.go 57.86% <100.00%> (+0.10%) ⬆️

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 c269088...233ad9e. Read the comment docs.

@johanbrandhorst johanbrandhorst merged commit 95527d4 into grpc-ecosystem:v2 Jun 4, 2020
@johanbrandhorst
Copy link
Collaborator

Thanks for your contribution!

@doyleish doyleish deleted the v2 branch June 4, 2020 22:24
@doyleish doyleish restored the v2 branch June 4, 2020 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants