lib/cocina/models/dro.rb in cocina-models-0.86.0 vs lib/cocina/models/dro.rb in cocina-models-0.87.0
- old
+ new
@@ -24,14 +24,14 @@
'https://cocina.sul.stanford.edu/models/webarchive-binary',
'https://cocina.sul.stanford.edu/models/webarchive-seed'].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)
# The content type of the DRO. Selected from an established set of values.
attribute :type, Types::Strict::String.enum(*DRO::TYPES)
# example: druid:bc123df4567
- attribute :externalIdentifier, Types::Strict::String
+ attribute :externalIdentifier, Druid
# Primary processing label (can be same as title) for a DRO.
attribute :label, Types::Strict::String
# Version for the DRO within SDR.
attribute :version, Types::Strict::Integer
attribute(:access, DROAccess.default { DROAccess.new })