Skip to content

v1.4.3

Compare
Choose a tag to compare
@flash-gordon flash-gordon released this 08 Jan 14:20
v1.4.3
95c2cfa

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