1.1.0 2019-07-02
Added
- New builder method
Interfaceconstructs a type which accepts objects that respond to the given methods (waiting-for-dev)Types = Dry.Types() Types::Callable = Types.Interface(:call) Types::Callable.valid?(Object.new) # => false Types::Callable.valid?(proc {}) # => true
- New types:
coercible.symbol,params.symbol, andjson.symbol, all use.to_symfor coercion (waiting-for-dev)
Fixed
- Converting schema keys to maybe types (flash-gordon)
- Using
Schema#keyandArray#memberon constuctors (flash-gordon) - Using
meta(omittable: true)withintransform_typesworks again but produces a warning, please migrate to.omittableor.required(false)(flash-gordon) - Bug with a constructor defined on top of enum (flash-gordon)