Skip to content

Commit 647b108

Browse files
committed
Restore comparison using formatted type value
1 parent 24e17ca commit 647b108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/jsonapi/request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def parse_single_replace_operation(data, keys)
400400
end
401401

402402
type = data[:type]
403-
if type.nil? || type != @resource_klass._type.to_s
403+
if type.nil? || type != format_key(@resource_klass._type).to_s
404404
raise JSONAPI::Exceptions::ParameterMissing.new(:type)
405405
end
406406

0 commit comments

Comments
 (0)