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
File "/.../src/combojsonapi/combojsonapi/utils/marshmallow_fields.py", line 56, in deserialize
if value and "links" in value:
TypeError: argument of type 'int' is not iterable
And a valid shorthand for it (which works well) is
[
{
"name": "group.id",
"op": "eq",
"val": 42
}
]
I think that this variant has to be working too, but it makes invalid filtering -- returns objects, that should not be here
Here's a vulnerable place:
combojsonapi/combojsonapi/utils/marshmallow_fields.py
Line 56 in 91dcbf5
For example you have a schema
And try to filter it using invalid filter:
It raises this:
And a valid shorthand for it (which works well) is
I think that this variant has to be working too, but it makes invalid filtering -- returns objects, that should not be here
https://flask-rest-jsonapi.readthedocs.io/en/latest/filtering.html#
I think that we have to add proper checks for
data
and raiseInvalidFilters
The text was updated successfully, but these errors were encountered: