Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
constructor_type :schema
now to allow an attribute key to be missing by default?
transform_types { |t| t.meta(omittable: true) }
ticketee
project. It has a failing test like this:
Dry::Struct::Error:
[Projects::Project.new] :id is missing in Hash input```
transform_types
setting is not recognised by subclasses. I am calling transform_types
within a class called ApplicationModel
, but then relying on it in a class called Project
that inherits from ApplicationModel
. Is this the intended behaviour?
klass
within the inherited block. That'll do it.