lib/cocina/models/admin_policy.rb in cocina-models-0.86.0 vs lib/cocina/models/admin_policy.rb in cocina-models-0.87.0
- old
+ new
@@ -9,13 +9,13 @@
TYPES = ['https://cocina.sul.stanford.edu/models/admin_policy'].freeze
# The version of Cocina with which this object conforms.
# example: 1.2.3
- attribute :cocinaVersion, Types::Strict::String.default(Cocina::Models::VERSION)
+ attribute :cocinaVersion, CocinaVersion.default(VERSION)
attribute :type, Types::Strict::String.enum(*AdminPolicy::TYPES)
# example: druid:bc123df4567
- attribute :externalIdentifier, Types::Strict::String
+ attribute :externalIdentifier, Druid
attribute :label, Types::Strict::String
attribute :version, Types::Strict::Integer
attribute(:administrative, AdminPolicyAdministrative.default { AdminPolicyAdministrative.new })
attribute? :description, Description.optional
end