lib/cocina/models/request_file.rb in cocina-models-0.27.0 vs lib/cocina/models/request_file.rb in cocina-models-0.28.0
- old
+ new
@@ -5,8 +5,11 @@
# a request to create a File object.
# This is the same as a File, but without externalIdentifier (as that wouldn't have been created yet)
# See http://sul-dlss.github.io/cocina-models/maps/File.json
class RequestFile < Struct
include FileAttributes
+ # externalIdentifier is used when submitting files to the SDR API to identify the file so that the
+ # uploaded files can be associated with the DRO.
+ attribute :externalIdentifier, Types::Strict::String.meta(omittable: true)
end
end
end