Closed Roanmh closed 2 weeks ago
It came to my attention that JSON:API doesn't allow the <filter>=<value>
syntax at all. This is not a bug then, since the error message is correct: "filter_query" is an invalid query parameter
according to JSON:API spec.
Description of the Bug Report
We have a model with a field
filter_query
and we want to support filtering by this field. The query paramfilter_query=foo
always fails with the message "invalid query parameter: filter_query". However the query parameter of the other syntax works:filter[filter_query]=foo
.The error is thrown from here.
Traceback
I think the regex is matching this field as an instance of the
filter[param]
syntax erroneously.Checklist