v1.4.0
Added
-
Support for passing multiple parent schemas. They are inherited from left to right (@ianwhite)
Dry::Schema.define(parent: [parent_a, parent_b, parent_c]) do ... end
-
Improved error messages about missing translations (@skryukov)
-
[experimental] before/after callbacks for schema steps (@skryukov)
Dry::Schema.Params do required(:name).value(:string) optional(:age).value(:integer) before(:value_coercer) do |result| result.to_h.compact end end
Fixed
- Added/fixed support for custom optional types (@flash-gordon)