lib/dry/validation/hint_compiler.rb in dry-validation-0.7.2 vs lib/dry/validation/hint_compiler.rb in dry-validation-0.7.3

- old
+ new

@@ -22,11 +22,11 @@ }.freeze EXCLUDED = [:none?, :filled?, :key?].freeze def self.cache - @cache ||= ThreadSafe::Cache.new + @cache ||= Concurrent::Map.new end def initialize(messages, options = {}) super(messages, { name: nil, input: nil }.merge(options)) @rules = @options.delete(:rules) @@ -110,9 +110,13 @@ DEFAULT_RESULT end def visit_not(node) DEFAULT_RESULT + end + + def visit_type(node) + visit(node.rule.to_ast) end private def merge(result)