lib/cocina/models/request_admin_policy.rb in cocina-models-0.60.0 vs lib/cocina/models/request_admin_policy.rb in cocina-models-0.61.0
- old
+ new
@@ -5,10 +5,9 @@
class RequestAdminPolicy < Struct
include Checkable
TYPES = ['http://cocina.sul.stanford.edu/models/admin_policy.jsonld'].freeze
- # example: item
attribute :type, Types::Strict::String.enum(*RequestAdminPolicy::TYPES)
attribute :label, Types::Strict::String
attribute :version, Types::Strict::Integer
attribute(:administrative, AdminPolicyAdministrative.default { AdminPolicyAdministrative.new })
attribute :description, Description.optional.meta(omittable: true)