lib/dry/schema/macros/value.rb in dry-schema-1.0.3 vs lib/dry/schema/macros/value.rb in dry-schema-1.1.0

- old
+ new

@@ -31,9 +31,12 @@ if trace.captures.empty? raise ArgumentError, 'wrong number of arguments (given 0, expected at least 1)' end + type_spec = opts[:type_spec] + each(type_spec.type.member) if type_spec.respond_to?(:member) + self end # @api private def respond_to_missing?(meth, include_private = false)