Skip to content

Commit

Permalink
Rubocop autocorrection
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindew committed Jan 27, 2025
1 parent dfaa22e commit 9bfc8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/openapi3_parser/node/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def requires?(property)
# compare node_context of objects to ensure references aren't treated
# as equal - only direct properties of this object will pass.
properties.to_h
.select { |k, _| required.to_a.include?(k) }
.slice(*required.to_a)
.any? { |_, schema| schema.node_context == property.node_context }
else
required.to_a.include?(property)
Expand Down

0 comments on commit 9bfc8e6

Please sign in to comment.