Sha256: a6cf0feda93315fba2781fab9e00e254f8491d8fbaeb966c87bf2f56a41de1c6

Contents?: true

Size: 898 Bytes

Versions: 1

Compression:

Stored size: 898 Bytes

Contents

# frozen_string_literal: true

module Cocina
  module Models
    # A Request to create a FileSet object.
    # This is same as a FileSet, but without externalIdentifier (as that wouldn't have been created yet)
    # See http://sul-dlss.github.io/cocina-models/maps/FileSet.json
    class RequestFileSet < Struct
      # Structural sub-schema that contains RequestFile (unlike the FileSet which contains File)
      class Structural < Struct
        attribute :contains, Types::Strict::Array.of(RequestFile).meta(omittable: true)
      end
      attribute :type, Types::String.enum(*FileSet::TYPES)
      attribute :label, Types::Strict::String
      attribute :version, Types::Coercible::Integer
      attribute(:identification, FileSet::Identification.default { FileSet::Identification.new })
      attribute(:structural, FileSet::Structural.default { FileSet::Structural.new })
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cocina-models-0.24.0 lib/cocina/models/request_file_set.rb