lib/cocina/models/file_access.rb in cocina-models-0.58.0 vs lib/cocina/models/file_access.rb in cocina-models-0.58.1
- old
+ new
@@ -2,15 +2,15 @@
module Cocina
module Models
class FileAccess < Struct
# Access level
- attribute :access, Types::Strict::String.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').optional.meta(omittable: true)
+ attribute :access, Types::Strict::String.optional.default('dark').enum('world', 'stanford', 'location-based', 'citation-only', 'dark').meta(omittable: true)
# Available for controlled digital lending.
attribute :controlledDigitalLending, Types::Strict::Bool.optional.meta(omittable: true)
# Download access level for a file
- attribute :download, Types::Strict::String.default('none').enum('world', 'stanford', 'location-based', 'none').optional.meta(omittable: true)
+ attribute :download, Types::Strict::String.optional.default('none').enum('world', 'stanford', 'location-based', 'none').meta(omittable: true)
# If access is "location-based", which location should have access.
- attribute :readLocation, Types::Strict::String.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').optional.meta(omittable: true)
+ attribute :readLocation, Types::Strict::String.optional.enum('spec', 'music', 'ars', 'art', 'hoover', 'm&m').meta(omittable: true)
end
end
end