v1.3.0
Added
-
Automatic predicate inferring for constrained types! (@flash-gordon)
Types::Name = Types::String.constrained(min_size: 1) schema = Dry::Schema.define do required(:name).value(Types::Name) end schema.(name: '').errors.to_h # => { name: ["size cannot be less than 1"] }
-
Support for redefining re-used schemas (issue #43) (@skryukov)
Fixed
- Type container is passed down to nested schemas (@flash-gordon)