gems dry-schema 1.4.3

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

Added

  • Pattern matching for Dry::Schema::Result objects (@flash-gordon)
    schema = Dry::Schema::Params { required(:name).filled }
    case schema.('name' => 'John')
    in name:
      name # => 'John'
    end
    Try it with monads!
  • Shortcut for nested schemas in value and maybe macros (@waiting-for-dev)
    Dry::Schema.Params do
      required(:address).value(:hash) do
        required(:city).filled     
      end
    end

Fixed

  • Some keyword warnings that slipped into the previous release (@flash-gordon)

Compare v1.4.2...v1.4.3

Don't miss a new dry-schema release

NewReleases is sending notifications on new releases.