wyfo / apischema

JSON (de)serialization, GraphQL and JSON schema generation using Python typing.
https://wyfo.github.io/apischema/
MIT License
227 stars 18 forks source link

fix: fix discriminator bug in recursive type #596

Closed wyfo closed 1 year ago

wyfo commented 1 year ago

Fixes #567 By the way, discriminator feature will be reworked in next version, and the current API will be deprecated

codecov-commenter commented 1 year ago

Codecov Report

Merging #596 (b431d22) into master (e4652c8) will decrease coverage by 0.07%. Report is 2 commits behind head on master. The diff coverage is 66.66%.

@@            Coverage Diff             @@
##           master     #596      +/-   ##
==========================================
- Coverage   88.00%   87.93%   -0.07%     
==========================================
  Files          62       62              
  Lines        5677     5687      +10     
  Branches     1240     1244       +4     
==========================================
+ Hits         4996     5001       +5     
- Misses        470      472       +2     
- Partials      211      214       +3     
Files Coverage Δ
apischema/deserialization/__init__.py 99.64% <100.00%> (-0.02%) :arrow_down:
apischema/deserialization/methods.py 85.02% <64.28%> (-0.29%) :arrow_down: