Skip to content

Commit 9627dfc

Browse files
committed
Do not verify_filters in the RequestParser
A prior change to allow filters to be passed to related resources was incompletely backported from `master` to the `release-0-9` branch (see: 3a691b2). This completes the backport, which moves the `verify_filters` from the `RequestParser` down to the `Processor`. When `verify_filters` happens in both places, we end up running `verify_filter` twice for each filter, which can result in the filter values being wrapped in nested Arrays. fixes #1110
1 parent 4b8f55d commit 9627dfc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonapi/request_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def add_show_related_resources_operation(relationship_type)
353353
relationship_type: relationship_type,
354354
source_klass: @source_klass,
355355
source_id: @source_id,
356-
filters: @source_klass.verify_filters(@filters, @context),
356+
filters: @filters,
357357
sort_criteria: @sort_criteria,
358358
paginator: @paginator,
359359
fields: @fields,

0 commit comments

Comments
 (0)