lib/cocina/models/contributor.rb in cocina-models-0.63.0 vs lib/cocina/models/contributor.rb in cocina-models-0.63.1

- old
+ new

@@ -1,19 +1,19 @@ # frozen_string_literal: true module Cocina module Models class Contributor < Struct - attribute :name, Types::Strict::Array.of(DescriptiveValue).default([]) + attribute :name, Types::Strict::Array.of(DescriptiveValue).default([].freeze) # Entity type of the contributor (person, organization, etc.). attribute :type, Types::Strict::String.meta(omittable: true) # Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors). attribute :status, Types::Strict::String.meta(omittable: true) - attribute :role, Types::Strict::Array.of(DescriptiveValue).default([]) - attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([]) - attribute :note, Types::Strict::Array.of(DescriptiveValue).default([]) + attribute :role, Types::Strict::Array.of(DescriptiveValue).default([].freeze) + attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze) + attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze) # URL or other pointer to the location of the contributor information. attribute :valueAt, Types::Strict::String.meta(omittable: true) - attribute :parallelContributor, Types::Strict::Array.of(DescriptiveParallelContributor).default([]) + attribute :parallelContributor, Types::Strict::Array.of(DescriptiveParallelContributor).default([].freeze) end end end