Skip to content

Commit 7aca6a8

Browse files
committed
Merge pull request #550 from POSpulse/fix_type_attributes
remove unneeded check which introduces a bug
2 parents b164c37 + 2b70a26 commit 7aca6a8

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

lib/jsonapi/request.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -610,11 +610,6 @@ def parse_update_relationship_operation(verified_params, relationship, parent_ke
610610
def parse_single_replace_operation(data, keys, id_key_presence_check_required: true)
611611
fail JSONAPI::Exceptions::MissingKey.new if data[:id].nil?
612612

613-
type = data[:type]
614-
if type.nil? || type != format_key(@resource_klass._type).to_s
615-
fail JSONAPI::Exceptions::ParameterMissing.new(:type)
616-
end
617-
618613
key = data[:id]
619614
if id_key_presence_check_required && !keys.include?(key)
620615
fail JSONAPI::Exceptions::KeyNotIncludedInURL.new(key)

0 commit comments

Comments
 (0)