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

Update fallback strategies for converters #204

Merged
merged 1 commit into from
Oct 17, 2020

Conversation

prkumar
Copy link
Owner

@prkumar prkumar commented Oct 17, 2020

Fixes #183, #180.

@codecov
Copy link

codecov bot commented Oct 17, 2020

Codecov Report

Merging #204 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #204      +/-   ##
==========================================
- Coverage   99.91%   99.91%   -0.01%     
==========================================
  Files          44       44              
  Lines        2398     2390       -8     
  Branches      176      174       -2     
==========================================
- Hits         2396     2388       -8     
  Misses          2        2              
Impacted Files Coverage Δ
uplink/arguments.py 100.00% <100.00%> (ø)
uplink/converters/standard.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 2f4260d...89c43d1. Read the comment docs.

@prkumar prkumar merged commit 6038716 into master Oct 17, 2020
@prkumar prkumar mentioned this pull request Oct 17, 2020
prkumar added a commit that referenced this pull request Feb 7, 2021
In v0.9.3, the `StandardCoverter.create_response_body_converter` was
changed to a pass-through converter: i.e., the method would simply
return the given type as the response converter. This can cause
unintended behavior in the case when the consumer method has a return
annotation that is not handled by any registered converters. In this
case, the converter chain will invoke the standard coverter's behavior,
and try to convert the runtime response by invoking the annotated
type's constructor. This can cause failures that are difficult to debug
for end users, such as talkpython/100daysofcode-with-python-course#53.

This regression was introduced in 89c43d1 (#204).
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.

How to upload binary data files?
1 participant