v0.2.0
Pre-release
Pre-release
Added
- New
hashmacro which prependshash?type-check and allows nested schema definition (solnic) - New
arraymacro which works likeeachbut 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)
filledmacro 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_schemanamespace by default (issue #38) (solnic) - [BREAKING] Hints are now an optional feature provided by
:hintsextension, to load it doDry::Schema.load_extensions(:hints)(solnic) - [BREAKING] Hints generation was improved in general, output of
Result#messagesandResult#hintschanged in some cases (solnic) - [BREAKING]
schemamacro no longer prependshash?check, for this behavior use the newhashmacro (see #31) (solnic) - [BREAKING] Support for MRI < 2.4 was dropped (solnic)