inveniosoftware / invenio-files-rest

REST API for uploading/downloading files for Invenio.
https://invenio-files-rest.readthedocs.io
MIT License
9 stars 68 forks source link

webargs >= 5.0.0 breaking changes #184

Closed ntarocco closed 5 years ago

ntarocco commented 5 years ago

With the release of version 5.0.0 of webargs, the behaviour of @use_kwargs and marshmallow.missing has change. For full explanation, see the changelog here.

Backwards-incompatible: Missing arguments will no longer be filled in when using @use_kwargs (#342, #307, #252). Use **kwargs to account for non-required fields.

This means that all conditions checking for is missing or is not missing needs to be re-checked and fixed, probably by adding the missing field with a value to the use_kwargs dict. Example of one to be checked.

The dependency has been pinned to lower of 5.