lib/cocina/models/admin_policy_administrative.rb in cocina-models-0.66.0 vs lib/cocina/models/admin_policy_administrative.rb in cocina-models-0.67.0
- old
+ new
@@ -1,10 +1,10 @@
# frozen_string_literal: true
module Cocina
module Models
class AdminPolicyAdministrative < Struct
- attribute :defaultAccess, AdminPolicyDefaultAccess.optional.meta(omittable: true)
+ attribute(:defaultAccess, AdminPolicyDefaultAccess.default { AdminPolicyDefaultAccess.new })
attribute :registrationWorkflow, Types::Strict::Array.of(Types::Strict::String).default([].freeze)
# An additional workflow to start for objects managed by this admin policy once the end-accession workflow step is complete
# example: wasCrawlPreassemblyWF
attribute :disseminationWorkflow, Types::Strict::String.meta(omittable: true)
attribute :collectionsForRegistration, Types::Strict::Array.of(Types::Strict::String).default([].freeze)