Added
- Pattern matching for
Dry::Schema::Result
objects (@flash-gordon)Try it with monads!schema = Dry::Schema::Params { required(:name).filled } case schema.('name' => 'John') in name: name # => 'John' end
- Shortcut for nested schemas in
value
andmaybe
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)