We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cda530a commit b9c6cf7Copy full SHA for b9c6cf7
1 file changed
lib/jsonapi/request.rb
@@ -309,7 +309,7 @@ def parse_params(params, allowed_fields)
309
if links_object.length == 0
310
checked_has_many_associations[param] = []
311
else
312
- if links_object.length > 1 || !links_object.has_key?(format_key(association.type))
+ if links_object.length > 1 || !links_object.has_key?(unformat_key(association.type).to_s)
313
raise JSONAPI::Exceptions::TypeMismatch.new(links_object[:type])
314
end
315
0 commit comments