Skip to content

Releases: dry-rb/dry-schema

v1.9.0

15 Feb 07:28
v1.9.0
Compare
Choose a tag to compare

Added

  • [EXPERIMENTAL] json_schema extension which allows you to convert a schema into a JSON schema (via #369) (@ianks)

Fixed

  • Composing schemas no longer crashes in certain scenarios (issue #342 fixed via #366) (@vsuhachev)
  • Fix info extension for typed arrays (issue #394 fixed via #397) (@CandyFet)

Compare v1.8.0...v1.9.0

v1.8.0

12 Sep 13:11
Compare
Choose a tag to compare

Changed

  • [internal] Upgraded to new setting API provided in dry-configurable 0.13.0 (@timriley in #356)

Compare v1.7.1...v1.8.0

v1.7.1

29 Aug 12:33
Compare
Choose a tag to compare

Changed

  • [internal] Use explicit #to_h conversion of Dry::Configurable::Config, to ensure compatibility with upcoming dry-configurable 0.13.0 release (via #371) (@timriley)

Compare v1.7.0...v1.7.1

v1.7.0

29 Jun 09:43
v1.7.0
Compare
Choose a tag to compare

This release ships with a bunch of internal refactorings that should improve performance but if you see any unexpected behavior please do report issues.

Fixed

  • Handle arrays of hashes where Array constructor coerces non-Hash input (#351 fixed via #354) (@ojab)
  • Run outer schema processor steps before inner ones (issue #350 fixed via #361) (@ojab)
  • Fix key validator false negatives on empty collections (see #363) (@Drenmi)
  • Prevent error message YAML files from being parsed multiple times (issue #352 via #364) (@alassek)
  • Using constructor types should work fine now ie required(:foo).filled(Types::Params::Integer.constructor(&:succ)) (issue #280 fixed via #365) (@solnic)
  • Handle non-Hash to Hash transformation in before(:key_coercer) (issue #350 fixed via #362) (@ojab)

Changed

  • [internal] Dry::Schema::Path clean up and performance improvements (via #358) (@ojab)
  • [internal] simplify and speed up handling of steps in nested schemas (via #360) (@ojab)

Compare v1.6.2...v1.7.0

v1.6.2

15 Apr 13:56
v1.6.2
Compare
Choose a tag to compare

Added

  • A default error message for respond_to? predicate (@rindek)

Fixed

  • Using respond_to? predicate in blocks works now (@rindek)

Compare v1.6.1...v1.6.2

v1.6.1

02 Feb 07:34
v1.6.1
Compare
Choose a tag to compare

Fixed

  • Messages#[] handles meta/no meta cases more gracefully and has better interoperability with the I18n backend. This brings MessageCompiler#visit_unexpected_key up to parity with MessageCompiler#visit_predicate. Uses visit_predicate as basis for visit_unexpected_key. (@robhanlon22)

Compare v1.6.0...v1.6.1

v1.6.0

21 Jan 19:20
v1.6.0
Compare
Choose a tag to compare

Fixed

  • Using sum types with a i18n backend no longer crashes (issue #328 fixes via #331) (@tylerhunt)

Changed

  • Inferring predicates from class names is deprecated. It's very unlikely your code depends on it,
    however, if it does, you'll get an exception with instructions. (@flash-gordon)

    If you see an exception and don't rely on inferring, just disable it with:

    Dry::Schema::PredicateInferrer::Compiler.infer_predicate_by_class_name false

    Otherwise, enable it explicitly:

    Dry::Schema::PredicateInferrer::Compiler.infer_predicate_by_class_name true

    See #335 for rationale.

Compare v1.5.6...v1.6.0

v1.5.6

21 Oct 11:52
v1.5.6
749138f
Compare
Choose a tag to compare

Fixed

  • Fixed stack error which was a regression introduced in 1.5.5 (issue #322 fixed via #323) (@flash-gordon)

Compare v1.5.5...v1.5.6

v1.5.5

08 Oct 09:45
v1.5.5
Compare
Choose a tag to compare

Fixed

  • Key validation works with messages that have meta-data (issue #310 fixed via #313) (@tadeusz-niemiec)
  • Using an external schema along with a key specified as a :hash works as expected (issue #296 fixed via #315) (@tadeusz-niemiec + @solnic)
  • Result#error?(path) works correctly when the path points to an array item (issue #317 fixed via #318) (@solnic)

Compare v1.5.4...v1.5.5

v1.5.4

03 Sep 07:42
v1.5.4
Compare
Choose a tag to compare

Fixed

  • Key validation works correctly with a non-nested maybe hashes (issue #311 fixed via #312) (@svobom57)

Compare v1.5.3...master