lib/cocina/models/file.rb in cocina-models-0.58.1 vs lib/cocina/models/file.rb in cocina-models-0.58.2

- old
+ new

@@ -14,16 +14,16 @@ # Primary processing label (can be same as title) for a File. attribute :label, Types::Strict::String # Filename for a file. Can be same as label. attribute :filename, Types::Strict::String # Size of the File (binary) in bytes. - attribute :size, Types::Strict::Integer.optional.meta(omittable: true) + attribute :size, Types::Strict::Integer.meta(omittable: true) # Version for the File within SDR. attribute :version, Types::Strict::Integer # MIME Type of the File. - attribute :hasMimeType, Types::Strict::String.optional.meta(omittable: true) + attribute :hasMimeType, Types::Strict::String.meta(omittable: true) # Use for the File. - attribute :use, Types::Strict::String.optional.meta(omittable: true) + attribute :use, Types::Strict::String.meta(omittable: true) attribute :hasMessageDigests, Types::Strict::Array.of(MessageDigest).default([].freeze) attribute(:access, FileAccess.default { FileAccess.new }) attribute(:administrative, FileAdministrative.default { FileAdministrative.new }) attribute :presentation, Presentation.optional.meta(omittable: true) end