lib/cocina/models/request_dro.rb in cocina-models-0.63.1 vs lib/cocina/models/request_dro.rb in cocina-models-0.64.0
- old
+ new
@@ -19,15 +19,18 @@
'http://cocina.sul.stanford.edu/models/media.jsonld',
'http://cocina.sul.stanford.edu/models/track.jsonld',
'http://cocina.sul.stanford.edu/models/webarchive-binary.jsonld',
'http://cocina.sul.stanford.edu/models/webarchive-seed.jsonld'].freeze
+ # The version of Cocina with which this object conforms.
+ # example: 1.2.3
+ attribute :cocinaVersion, Types::Strict::String.default(Cocina::Models::VERSION)
attribute :type, Types::Strict::String.enum(*RequestDRO::TYPES)
attribute :label, Types::Strict::String
attribute :version, Types::Strict::Integer
attribute :access, DROAccess.optional.meta(omittable: true)
attribute(:administrative, Administrative.default { Administrative.new })
- attribute :description, Description.optional.meta(omittable: true)
+ attribute :description, RequestDescription.optional.meta(omittable: true)
attribute(:identification, RequestIdentification.default { RequestIdentification.new })
attribute :structural, RequestDROStructural.optional.meta(omittable: true)
attribute :geographic, Geographic.optional.meta(omittable: true)
def self.new(attributes = default_attributes, safe = false, validate = true, &block)