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
raiseInvalidInclude("You can't use include through more than {} relationships"
.format(current_app.config['MAX_INCLUDE_DEPTH']))
If MAX_INCLUDE_DEPTH is not None and querystring is not empty, it'll loop through the individual characters of the querystring and not different parts of include string separated by commas
The text was updated successfully, but these errors were encountered:
Let's take a look at this code
flask-rest-jsonapi/flask_rest_jsonapi/querystring.py
Lines 193 to 201 in b44bc08
flask-rest-jsonapi/flask_rest_jsonapi/querystring.py
Line 193 in b44bc08
This expects
self.querystring['include']
to be a list, whereas we know that it is a string by looking at last lineflask-rest-jsonapi/flask_rest_jsonapi/querystring.py
Line 201 in b44bc08
Hence, this block of code is wrong.
flask-rest-jsonapi/flask_rest_jsonapi/querystring.py
Lines 195 to 199 in b44bc08
If
MAX_INCLUDE_DEPTH
is not None and querystring is not empty, it'll loop through the individual characters of the querystring and not different parts of include string separated by commasThe text was updated successfully, but these errors were encountered: