lib/cocina/models/request_dro.rb in cocina-models-0.32.0 vs lib/cocina/models/request_dro.rb in cocina-models-0.33.0
- old
+ new
@@ -26,10 +26,10 @@
attribute :label, Types::Strict::String
attribute :version, Types::Strict::Integer
attribute :access, DROAccess.optional.meta(omittable: true)
attribute :administrative, Administrative.optional.meta(omittable: true)
attribute :description, Description.optional.meta(omittable: true)
- attribute :identification, Identification.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)
Validator.validate(self, attributes.with_indifferent_access) if validate && name