We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be12bf7 commit eb1055aCopy full SHA for eb1055a
lib/openapi3_parser/node/schema.rb
@@ -115,7 +115,7 @@ def requires?(property)
115
# compare node_context of objects to ensure references aren't treated
116
# as equal - only direct properties of this object will pass.
117
properties.to_h
118
- .select { |k, _| required.to_a.include?(k) }
+ .slice(*required.to_a)
119
.any? { |_, schema| schema.node_context == property.node_context }
120
else
121
required.to_a.include?(property)
0 commit comments