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

Sanitize __type metadata out of response parsing for tagged unions #3035

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

SamRemis
Copy link
Contributor

@SamRemis SamRemis commented Oct 6, 2023

Some AWS services will return the __type metadata in a response alongside a tagged union. Since this isn't modeled as a response member, it's never shown to SDK users, but needs to be ignored in the response parser to allow prevent an error from being thrown.

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (f6cc297) 93.39% compared to head (dccfc8d) 93.39%.
Report is 3 commits behind head on develop.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3035   +/-   ##
========================================
  Coverage    93.39%   93.39%           
========================================
  Files           66       66           
  Lines        13963    13965    +2     
========================================
+ Hits         13041    13043    +2     
  Misses         922      922           
Files Coverage Δ
botocore/parsers.py 98.61% <100.00%> (+<0.01%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @SamRemis!

@SamRemis SamRemis merged commit 9513529 into boto:develop Oct 10, 2023
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.

3 participants