lib/dry/schema/extensions/info/schema_compiler.rb in dry-schema-1.5.2 vs lib/dry/schema/extensions/info/schema_compiler.rb in dry-schema-1.5.3
- old
+ new
@@ -48,10 +48,10 @@
# @api private
def visit_set(node, opts = EMPTY_HASH)
target = (key = opts[:key]) ? self.class.new : self
- node.map { |child| target.visit(child, opts) }
+ node.each { |child| target.visit(child, opts) }
return unless key
target_info = opts[:member] ? {member: target.to_h} : target.to_h
type = opts[:member] ? "array" : "hash"