apryor6 / flask_accepts

Easy, opinionated Flask input/output handling mixing Marshmallow with flask-restx
BSD 3-Clause "New" or "Revised" License
169 stars 40 forks source link

Added type-checking for ma.utils._Missing for default values utils._m… #105

Closed Wormfriend closed 3 years ago

Wormfriend commented 3 years ago

First of all, sorry for all the forking... It's my first pull request ever. But I think this should fix issue #103 . I added type checking for ma.utils._Missing. I think marshmallow changed the behaviour in case of missing default values and now also adds ma.utils_Missing if no default value is set (I guess it was None before? ). The json.dumps for the swagger-docs should now work again.

codecov-commenter commented 3 years ago

Codecov Report

Merging #105 (8215ad5) into master (d6ce0bf) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #105   +/-   ##
=======================================
  Coverage   98.35%   98.35%           
=======================================
  Files           7        7           
  Lines        1154     1154           
=======================================
  Hits         1135     1135           
  Misses         19       19           
Impacted Files Coverage Δ
flask_accepts/utils.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 d6ce0bf...8215ad5. Read the comment docs.