Added
- New
hash
macro which prependshash?
type-check and allows nested schema definition (solnic) - New
array
macro which works likeeach
but prependsarray?
type-check (solnic)
Fixed
- Rule name translation works correctly with I18n (issue #52) (solnic)
- Rule name translation works correctly with namespaced messages (both I18n and plain YAML) (issue #57) (solnic)
- Error messages under namespaces are correctly resolved for overridden names (issue #53) (solnic)
- Namespaced error messages work correctly when schemas are reused within other schemas (issue #49) (solnic)
- Child schema can override inherited rules now (issue #66) (skryukov)
- Hints are correctly generated for disjunction that use type-check predicates (issue #24) (solnic)
- Hints are correctly generated for nested schemas (issue #26) (solnic)
filled
macro respects inferred type-check predicates and puts them in front (solnic)- Value coercion works correctly with re-usable nested schemas (issue #25) (solnic)
Changed
- [BREAKING] Messages are now configured under
dry_schema
namespace by default (issue #38) (solnic) - [BREAKING] Hints are now an optional feature provided by
:hints
extension, to load it doDry::Schema.load_extensions(:hints)
(solnic) - [BREAKING] Hints generation was improved in general, output of
Result#messages
andResult#hints
changed in some cases (solnic) - [BREAKING]
schema
macro no longer prependshash?
check, for this behavior use the newhash
macro (see #31) (solnic) - [BREAKING] Support for MRI < 2.4 was dropped (solnic)