lib/dry/validation/message_compiler.rb in dry-validation-0.10.1 vs lib/dry/validation/message_compiler.rb in dry-validation-0.10.2

- old
+ new

@@ -149,9 +149,13 @@ def visit_xor(node, opts = EMPTY_OPTS) left, right = node [visit(left, opts), visit(right, opts)].uniq end + def visit_type(node, opts = EMPTY_OPTS) + visit(node.rule.to_ast, opts) + end + def lookup_options(arg_vals: [], input: nil) default_lookup_options.merge( arg_type: arg_vals.size == 1 && arg_vals[0].class, val_type: input.class )