gems dry-schema 0.2.0

latest releases: 1.14.1, 1.14.0, 1.13.4...
6 years ago

Added

  • New hash macro which prepends hash? type-check and allows nested schema definition (solnic)
  • New array macro which works like each but prepends array? 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 do Dry::Schema.load_extensions(:hints) (solnic)
  • [BREAKING] Hints generation was improved in general, output of Result#messages and Result#hints changed in some cases (solnic)
  • [BREAKING] schema macro no longer prepends hash? check, for this behavior use the new hash macro (see #31) (solnic)
  • [BREAKING] Support for MRI < 2.4 was dropped (solnic)

Compare v0.1.1...v0.2.0

Don't miss a new dry-schema release

NewReleases is sending notifications on new releases.