lib/cocina/models/request_admin_policy.rb in cocina-models-0.22.1 vs lib/cocina/models/request_admin_policy.rb in cocina-models-0.22.2
- old
+ new
@@ -10,10 +10,10 @@
attribute :version, Types::Coercible::Integer
attribute(:access, AdminPolicy::Access.default { AdminPolicy::Access.new })
attribute(:administrative, AdminPolicy::Administrative.default { AdminPolicy::Administrative.new })
# Allowing description to be omittable for now (until rolled out to consumers),
# but I think it's actually required for every DRO
- attribute :description, Description.optional.default(nil)
+ attribute :description, Description.optional.meta(omittable: true)
attribute(:identification, AdminPolicy::Identification.default { AdminPolicy::Identification.new })
attribute(:structural, AdminPolicy::Structural.default { AdminPolicy::Structural.new })
def self.from_dynamic(dyn)
RequestAdminPolicy.new(dyn)