openapi-python-client icon indicating copy to clipboard operation
openapi-python-client copied to clipboard

fix: Support discriminator for deserializing polymorphic types

Open yoavk opened this issue 3 years ago • 1 comments

Partially closes #219.

This fixes deserializing polymorphic types that have the same members, which otherwise would rely on order of types in the union.

yoavk avatar Jan 05 '23 10:01 yoavk

Codecov Report

Attention: Patch coverage is 16.66667% with 10 lines in your changes missing coverage. Please review.

Project coverage is 99.49%. Comparing base (aa324fc) to head (ee75c00). Report is 244 commits behind head on main.

Files with missing lines Patch % Lines
...penapi_python_client/parser/properties/__init__.py 16.66% 10 Missing :warning:
Additional details and impacted files
@@             Coverage Diff             @@
##              main     #717      +/-   ##
===========================================
- Coverage   100.00%   99.49%   -0.51%     
===========================================
  Files           49       49              
  Lines         1970     1982      +12     
===========================================
+ Hits          1970     1972       +2     
- Misses           0       10      +10     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Jan 16 '23 19:01 codecov[bot]