You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment unknown keys given to the API are ignored by webargs even though in marshmallow 3 it's possible to choose how to handle unknown fields. We would like to raise validation errors if unknown keys are given.
Problem Definition
At the moment unknown keys given to the API are ignored by webargs even though in marshmallow 3 it's possible to choose how to handle unknown fields. We would like to raise validation errors if unknown keys are given.
But webargs does not seem to support it yet. Check:
marshmallow-code/webargs#435
marshmallow-code/webargs#267
marshmallow-code/webargs#420
Task
Once implemented by webargs use this feature to raise errors also on unknown arguments passed to the API. Write some tests for this.
Most probably a single test for all will do such as this xfailing one:
https://github.com/LefterisJP/rotkehlchen/blob/17d9e868b4a3dc6b9b409938f6686904edf774e5/rotkehlchen/tests/api/test_settings.py#L111-L127
The text was updated successfully, but these errors were encountered: