lib/cocina/models/admin_policy.rb in cocina-models-0.22.1 vs lib/cocina/models/admin_policy.rb in cocina-models-0.22.2
- old
+ new
@@ -67,10 +67,10 @@
attribute :version, Types::Coercible::Integer
attribute(:access, Access.default { Access.new })
attribute(:administrative, Administrative.default { 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, Identification.default { Identification.new })
attribute(:structural, Structural.default { Structural.new })
def self.from_dynamic(dyn)
AdminPolicy.new(dyn)