lib/cocina/models/contributor.rb in cocina-models-0.79.0 vs lib/cocina/models/contributor.rb in cocina-models-0.80.0
- old
+ new
@@ -1,8 +1,9 @@
# frozen_string_literal: true
module Cocina
module Models
+ # Property model for describing agents contributing in some way to the creation and history of the resource.
class Contributor < Struct
attribute :name, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
# Entity type of the contributor (person, organization, etc.). See https://github.com/sul-dlss/cocina-models/blob/main/docs/description_types.md for valid types.
attribute? :type, Types::Strict::String
# Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors).