lib/dry/schema/config.rb in dry-schema-1.1.0 vs lib/dry/schema/config.rb in dry-schema-1.2.0
- old
+ new
@@ -3,10 +3,11 @@
require 'dry/equalizer'
require 'dry/configurable'
require 'dry/schema/constants'
require 'dry/schema/predicate_registry'
+require 'dry/schema/type_container'
module Dry
module Schema
# Schema definition configuration class
#
@@ -23,9 +24,18 @@
#
# @return [Schema::PredicateRegistry]
#
# @api public
setting(:predicates, Schema::PredicateRegistry.new)
+
+ # @!method types
+ #
+ # Return configured container with extra types
+ #
+ # @return [Hash]
+ #
+ # @api public
+ setting(:types, Dry::Types)
# @!method messages
#
# Return configuration for message backend
#