lib/cocina/models/dro.rb in cocina-models-0.21.0 vs lib/cocina/models/dro.rb in cocina-models-0.22.0

- old
+ new

@@ -24,10 +24,17 @@ Vocab.webarchive_seed ].freeze # Subschema for access concerns class Access < Struct - attribute :embargoReleaseDate, Types::Params::DateTime.meta(omittable: true) + # Subschema for embargo concerns + class Embargo < Struct + attribute :releaseDate, Types::Params::DateTime + attribute :access, Types::String.default('dark') + .enum('world', 'stanford', 'location-based', 'citation-only', 'dark') + end + + attribute :embargo, Embargo.optional.default(nil) end # Subschema for administrative concerns class Administrative < Struct attribute :releaseTags, Types::Strict::Array.of(ReleaseTag).meta(omittable: true).default([].freeze)