gothinkster / flask-realworld-example-app

Exemplary real world JSON API built with Flask (Python)
https://realworld.io/
MIT License
897 stars 308 forks source link

[Bug Fix] [Add compatible code] deal API changes for marshmallow from… #26

Closed Allianzcortex closed 5 years ago

Allianzcortex commented 5 years ago

This could solve the issue : https://github.com/gothinkster/flask-realworld-example-app/issues/25

Based on marshmallow change log

Backwards-incompatible: many is passed as a keyword argument to methods decorated with pre_load, post_load, pre_dump, post_dump, and validates_schema. partial is passed as a keyword argument to methods decorated with pre_load, post_load and validates_schema. **kwargs should be added to all decorated methods.

So there will be no error like : TypeError: dump_user() got an unexpected keyword argument 'many'

realazizk commented 5 years ago

cool