cocina-models 0.63.0 → 0.63.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cocina/generator/schema_array.rb +1 -1
  3. data/lib/cocina/models/access_role.rb +1 -1
  4. data/lib/cocina/models/admin_policy_administrative.rb +3 -3
  5. data/lib/cocina/models/administrative.rb +1 -1
  6. data/lib/cocina/models/applies_to.rb +1 -1
  7. data/lib/cocina/models/collection_identification.rb +1 -1
  8. data/lib/cocina/models/contributor.rb +5 -5
  9. data/lib/cocina/models/description.rb +11 -11
  10. data/lib/cocina/models/descriptive_access_metadata.rb +6 -6
  11. data/lib/cocina/models/descriptive_admin_metadata.rb +6 -6
  12. data/lib/cocina/models/descriptive_basic_value.rb +5 -5
  13. data/lib/cocina/models/descriptive_geographic_metadata.rb +2 -2
  14. data/lib/cocina/models/descriptive_grouped_value.rb +1 -1
  15. data/lib/cocina/models/descriptive_parallel_contributor.rb +4 -4
  16. data/lib/cocina/models/descriptive_parallel_event.rb +6 -6
  17. data/lib/cocina/models/descriptive_parallel_value.rb +1 -1
  18. data/lib/cocina/models/descriptive_structured_value.rb +1 -1
  19. data/lib/cocina/models/descriptive_value.rb +6 -6
  20. data/lib/cocina/models/descriptive_value_language.rb +1 -1
  21. data/lib/cocina/models/dro_structural.rb +3 -3
  22. data/lib/cocina/models/event.rb +7 -7
  23. data/lib/cocina/models/file.rb +1 -1
  24. data/lib/cocina/models/file_set_structural.rb +1 -1
  25. data/lib/cocina/models/identification.rb +1 -1
  26. data/lib/cocina/models/language.rb +5 -5
  27. data/lib/cocina/models/related_resource.rb +9 -9
  28. data/lib/cocina/models/request_dro_structural.rb +3 -3
  29. data/lib/cocina/models/request_file.rb +1 -1
  30. data/lib/cocina/models/request_file_set_structural.rb +1 -1
  31. data/lib/cocina/models/request_identification.rb +1 -1
  32. data/lib/cocina/models/sequence.rb +1 -1
  33. data/lib/cocina/models/source.rb +1 -1
  34. data/lib/cocina/models/standard.rb +1 -1
  35. data/lib/cocina/models/title.rb +6 -6
  36. data/lib/cocina/models/version.rb +1 -1
  37. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 147f3cdbe82ab61d39648503137c0a59bae31349064e891d7deaf096622a0d47
4
- data.tar.gz: 763af02786783bf5066bb8c33c0cd4680e6049ff8a48977782cac1d74c84e27f
3
+ metadata.gz: a6d9b7c11061f4e03dc5d8f8b7ed61dce99e05467f229fb9678792abdd7ae00e
4
+ data.tar.gz: de835512797d500cda81ca8c17155fd7a518ba47629c0be9519488ae86d6ed34
5
5
  SHA512:
6
- metadata.gz: e6b8e5144e42624206ab642bde2960ca1eaaf1a91f0ea064934091bce6f729167c971f73387fa184e5c9a817babcfef359421317ce283d46922c043f2865b0e0
7
- data.tar.gz: 8dfc5f0a06e81bdf4c27e4f1bd67a3ef3bd9380da4394976aea891df75e1be8c65147abb9921e3029100d7682b85ed54facae8362b61f77088af037022af74c0
6
+ metadata.gz: 6db0d195fc2f8a610b0ed9f2f94b7fe7473f49c00e7a6f92ccef010dc6ee428e614a276d98ba80ad673f5720299d7b7a6ac0d4dedabce165035d3a8c6bc1614b
7
+ data.tar.gz: b43aa74787005ed59b5aec644f582cb2412cc1b4cc2ebb6422f28faba4939e86751d108716a40928872bb76f1c72c78aa5368ca66f338ec5c59cc22830808366
@@ -5,7 +5,7 @@ module Cocina
5
5
  # Class for generating from an openapi array
6
6
  class SchemaArray < SchemaBase
7
7
  def generate
8
- "attribute :#{name.camelize(:lower)}, Types::Strict::Array.of(#{array_of_type}).default([])"
8
+ "attribute :#{name.camelize(:lower)}, Types::Strict::Array.of(#{array_of_type}).default([].freeze)"
9
9
  end
10
10
 
11
11
  def array_of_type
@@ -5,7 +5,7 @@ module Cocina
5
5
  class AccessRole < Struct
6
6
  # Name of role
7
7
  attribute :name, Types::Strict::String.enum('dor-apo-creator', 'dor-apo-depositor', 'dor-apo-manager', 'dor-apo-metadata', 'dor-apo-reviewer', 'dor-apo-viewer', 'sdr-administrator', 'sdr-viewer', 'hydrus-collection-creator', 'hydrus-collection-manager', 'hydrus-collection-depositor', 'hydrus-collection-item-depositor', 'hydrus-collection-reviewer', 'hydrus-collection-viewer')
8
- attribute :members, Types::Strict::Array.of(AccessRoleMember).default([])
8
+ attribute :members, Types::Strict::Array.of(AccessRoleMember).default([].freeze)
9
9
  end
10
10
  end
11
11
  end
@@ -6,16 +6,16 @@ module Cocina
6
6
  # This is an XML expression of the default access (see defaultAccess)
7
7
  attribute :defaultObjectRights, Types::Strict::String.default('<?xml version="1.0" encoding="UTF-8"?><rightsMetadata><access type="discover"><machine><world/></machine></access><access type="read"><machine><world/></machine></access><use><human type="useAndReproduction"/><human type="creativeCommons"/><machine type="creativeCommons" uri=""/><human type="openDataCommons"/><machine type="openDataCommons" uri=""/></use><copyright><human/></copyright></rightsMetadata>').meta(omittable: true)
8
8
  attribute :defaultAccess, AdminPolicyDefaultAccess.optional.meta(omittable: true)
9
- attribute :registrationWorkflow, Types::Strict::Array.of(Types::Strict::String).default([])
9
+ attribute :registrationWorkflow, Types::Strict::Array.of(Types::Strict::String).default([].freeze)
10
10
  # An additional workflow to start for objects managed by this admin policy once the end-accession workflow step is complete
11
11
  # example: wasCrawlPreassemblyWF
12
12
  attribute :disseminationWorkflow, Types::Strict::String.meta(omittable: true)
13
- attribute :collectionsForRegistration, Types::Strict::Array.of(Types::Strict::String).default([])
13
+ attribute :collectionsForRegistration, Types::Strict::Array.of(Types::Strict::String).default([].freeze)
14
14
  # example: druid:bc123df4567
15
15
  attribute :hasAdminPolicy, Types::Strict::String
16
16
  # example: druid:bc123df4567
17
17
  attribute :referencesAgreement, Types::Strict::String.meta(omittable: true)
18
- attribute :roles, Types::Strict::Array.of(AccessRole).default([])
18
+ attribute :roles, Types::Strict::Array.of(AccessRole).default([].freeze)
19
19
  end
20
20
  end
21
21
  end
@@ -5,7 +5,7 @@ module Cocina
5
5
  class Administrative < Struct
6
6
  # example: druid:bc123df4567
7
7
  attribute :hasAdminPolicy, Types::Strict::String
8
- attribute :releaseTags, Types::Strict::Array.of(ReleaseTag).default([])
8
+ attribute :releaseTags, Types::Strict::Array.of(ReleaseTag).default([].freeze)
9
9
  # Administrative or Internal project this resource is a part of
10
10
  # example: Google Books
11
11
  attribute :partOfProject, Types::Strict::String.meta(omittable: true)
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class AppliesTo < Struct
6
- attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([])
6
+ attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([].freeze)
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class CollectionIdentification < Struct
6
- attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).default([])
6
+ attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).default([].freeze)
7
7
  # Unique identifier in some other system. This is because a large proportion of what is deposited in SDR, historically and currently, are representations of objects that are also represented in other systems. For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to look for the original item if you're looking at its SDR representation. The format is: "namespace:identifier"
8
8
 
9
9
  # example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
@@ -3,17 +3,17 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class Contributor < Struct
6
- attribute :name, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :name, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
7
  # Entity type of the contributor (person, organization, etc.).
8
8
  attribute :type, Types::Strict::String.meta(omittable: true)
9
9
  # Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors).
10
10
  attribute :status, Types::Strict::String.meta(omittable: true)
11
- attribute :role, Types::Strict::Array.of(DescriptiveValue).default([])
12
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
13
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
11
+ attribute :role, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
12
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
13
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
14
14
  # URL or other pointer to the location of the contributor information.
15
15
  attribute :valueAt, Types::Strict::String.meta(omittable: true)
16
- attribute :parallelContributor, Types::Strict::Array.of(DescriptiveParallelContributor).default([])
16
+ attribute :parallelContributor, Types::Strict::Array.of(DescriptiveParallelContributor).default([].freeze)
17
17
  end
18
18
  end
19
19
  end
@@ -3,20 +3,20 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class Description < Struct
6
- attribute :title, Types::Strict::Array.of(Title).default([])
7
- attribute :contributor, Types::Strict::Array.of(Contributor).default([])
8
- attribute :event, Types::Strict::Array.of(Event).default([])
9
- attribute :form, Types::Strict::Array.of(DescriptiveValue).default([])
10
- attribute :geographic, Types::Strict::Array.of(DescriptiveGeographicMetadata).default([])
11
- attribute :language, Types::Strict::Array.of(Language).default([])
12
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
13
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
14
- attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :title, Types::Strict::Array.of(Title).default([].freeze)
7
+ attribute :contributor, Types::Strict::Array.of(Contributor).default([].freeze)
8
+ attribute :event, Types::Strict::Array.of(Event).default([].freeze)
9
+ attribute :form, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
10
+ attribute :geographic, Types::Strict::Array.of(DescriptiveGeographicMetadata).default([].freeze)
11
+ attribute :language, Types::Strict::Array.of(Language).default([].freeze)
12
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
13
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
14
+ attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
15
15
  # Stanford persistent URL associated with the related resource. Note this is http, not https.
16
16
  attribute :purl, Types::Strict::String.meta(omittable: true)
17
17
  attribute :access, DescriptiveAccessMetadata.optional.meta(omittable: true)
18
- attribute :relatedResource, Types::Strict::Array.of(RelatedResource).default([])
19
- attribute :marcEncodedData, Types::Strict::Array.of(DescriptiveValue).default([])
18
+ attribute :relatedResource, Types::Strict::Array.of(RelatedResource).default([].freeze)
19
+ attribute :marcEncodedData, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
20
20
  attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
21
21
  # URL or other pointer to the location of the resource description.
22
22
  attribute :valueAt, Types::Strict::String.meta(omittable: true)
@@ -3,12 +3,12 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveAccessMetadata < Struct
6
- attribute :url, Types::Strict::Array.of(DescriptiveValue).default([])
7
- attribute :physicalLocation, Types::Strict::Array.of(DescriptiveValue).default([])
8
- attribute :digitalLocation, Types::Strict::Array.of(DescriptiveValue).default([])
9
- attribute :accessContact, Types::Strict::Array.of(DescriptiveValue).default([])
10
- attribute :digitalRepository, Types::Strict::Array.of(DescriptiveValue).default([])
11
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :url, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
+ attribute :physicalLocation, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
8
+ attribute :digitalLocation, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
9
+ attribute :accessContact, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
10
+ attribute :digitalRepository, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
11
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
12
12
  end
13
13
  end
14
14
  end
@@ -3,12 +3,12 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveAdminMetadata < Struct
6
- attribute :contributor, Types::Strict::Array.of(Contributor).default([])
7
- attribute :event, Types::Strict::Array.of(Event).default([])
8
- attribute :language, Types::Strict::Array.of(Language).default([])
9
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
10
- attribute :metadataStandard, Types::Strict::Array.of(Standard).default([])
11
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :contributor, Types::Strict::Array.of(Contributor).default([].freeze)
7
+ attribute :event, Types::Strict::Array.of(Event).default([].freeze)
8
+ attribute :language, Types::Strict::Array.of(Language).default([].freeze)
9
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
10
+ attribute :metadataStandard, Types::Strict::Array.of(Standard).default([].freeze)
11
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
12
12
  end
13
13
  end
14
14
  end
@@ -3,9 +3,9 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveBasicValue < Struct
6
- attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([])
7
- attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([])
8
- attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
+ attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
8
+ attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
9
9
  # String or integer value of the descriptive element.
10
10
  attribute :value, Types::Nominal::Any.meta(omittable: true)
11
11
  # Type of value provided by the descriptive element.
@@ -18,13 +18,13 @@ module Cocina
18
18
  attribute :uri, Types::Strict::String.meta(omittable: true)
19
19
  attribute :standard, Standard.optional.meta(omittable: true)
20
20
  attribute :encoding, Standard.optional.meta(omittable: true)
21
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
21
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
22
22
  attribute :source, Source.optional.meta(omittable: true)
23
23
  # The preferred display label to use for the descriptive element in access systems.
24
24
  attribute :displayLabel, Types::Strict::String.meta(omittable: true)
25
25
  # A term providing information about the circumstances of the statement (e.g., approximate dates).
26
26
  attribute :qualifier, Types::Strict::String.meta(omittable: true)
27
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
27
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
28
28
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
29
29
  # URL or other pointer to the location of the value of the descriptive element.
30
30
  attribute :valueAt, Types::Strict::String.meta(omittable: true)
@@ -3,8 +3,8 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveGeographicMetadata < Struct
6
- attribute :form, Types::Strict::Array.of(DescriptiveValue).default([])
7
- attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :form, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
+ attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
8
8
  end
9
9
  end
10
10
  end
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveGroupedValue < Struct
6
- attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
7
  end
8
8
  end
9
9
  end
@@ -3,14 +3,14 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveParallelContributor < Struct
6
- attribute :name, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :name, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
7
  # Entity type of the contributor (person, organization, etc.).
8
8
  attribute :type, Types::Strict::String.meta(omittable: true)
9
9
  # Status of the contributor relative to other parallel contributors (e.g. the primary author among a group of contributors).
10
10
  attribute :status, Types::Strict::String.meta(omittable: true)
11
- attribute :role, Types::Strict::Array.of(DescriptiveValue).default([])
12
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
13
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
11
+ attribute :role, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
12
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
13
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
14
14
  # URL or other pointer to the location of the contributor information.
15
15
  attribute :valueAt, Types::Strict::String.meta(omittable: true)
16
16
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
@@ -3,16 +3,16 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveParallelEvent < Struct
6
- attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
7
  # Description of the event (creation, publication, etc.).
8
8
  attribute :type, Types::Strict::String.meta(omittable: true)
9
9
  # The preferred display label to use for the event in access systems.
10
10
  attribute :displayLabel, Types::Strict::String.meta(omittable: true)
11
- attribute :date, Types::Strict::Array.of(DescriptiveValue).default([])
12
- attribute :contributor, Types::Strict::Array.of(Contributor).default([])
13
- attribute :location, Types::Strict::Array.of(DescriptiveValue).default([])
14
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
15
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
11
+ attribute :date, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
12
+ attribute :contributor, Types::Strict::Array.of(Contributor).default([].freeze)
13
+ attribute :location, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
14
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
15
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
16
16
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
17
17
  end
18
18
  end
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveParallelValue < Struct
6
- attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
7
  end
8
8
  end
9
9
  end
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveStructuredValue < Struct
6
- attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
7
  end
8
8
  end
9
9
  end
@@ -3,9 +3,9 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveValue < Struct
6
- attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([])
7
- attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([])
8
- attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
+ attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
8
+ attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
9
9
  # String or integer value of the descriptive element.
10
10
  attribute :value, Types::Nominal::Any.meta(omittable: true)
11
11
  # Type of value provided by the descriptive element.
@@ -18,17 +18,17 @@ module Cocina
18
18
  attribute :uri, Types::Strict::String.meta(omittable: true)
19
19
  attribute :standard, Standard.optional.meta(omittable: true)
20
20
  attribute :encoding, Standard.optional.meta(omittable: true)
21
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
21
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
22
22
  attribute :source, Source.optional.meta(omittable: true)
23
23
  # The preferred display label to use for the descriptive element in access systems.
24
24
  attribute :displayLabel, Types::Strict::String.meta(omittable: true)
25
25
  # A term providing information about the circumstances of the statement (e.g., approximate dates).
26
26
  attribute :qualifier, Types::Strict::String.meta(omittable: true)
27
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
27
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
28
28
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
29
29
  # URL or other pointer to the location of the value of the descriptive element.
30
30
  attribute :valueAt, Types::Strict::String.meta(omittable: true)
31
- attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([])
31
+ attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([].freeze)
32
32
  end
33
33
  end
34
34
  end
@@ -9,7 +9,7 @@ module Cocina
9
9
  attribute :uri, Types::Strict::String.meta(omittable: true)
10
10
  # String describing the standard or encoding.
11
11
  attribute :value, Types::Strict::String.meta(omittable: true)
12
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
12
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
13
13
  # The version of the standard or encoding.
14
14
  attribute :version, Types::Strict::String.meta(omittable: true)
15
15
  attribute :source, Source.optional.meta(omittable: true)
@@ -3,9 +3,9 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DROStructural < Struct
6
- attribute :contains, Types::Strict::Array.of(FileSet).default([])
7
- attribute :hasMemberOrders, Types::Strict::Array.of(Sequence).default([])
8
- attribute :isMemberOf, Types::Strict::Array.of(Druid).default([])
6
+ attribute :contains, Types::Strict::Array.of(FileSet).default([].freeze)
7
+ attribute :hasMemberOrders, Types::Strict::Array.of(Sequence).default([].freeze)
8
+ attribute :isMemberOf, Types::Strict::Array.of(Druid).default([].freeze)
9
9
  # Agreement that covers the deposit of the DRO into SDR.
10
10
  attribute :hasAgreement, Types::Strict::String.meta(omittable: true)
11
11
  end
@@ -3,18 +3,18 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class Event < Struct
6
- attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
7
  # Description of the event (creation, publication, etc.).
8
8
  attribute :type, Types::Strict::String.meta(omittable: true)
9
9
  # The preferred display label to use for the event in access systems.
10
10
  attribute :displayLabel, Types::Strict::String.meta(omittable: true)
11
- attribute :date, Types::Strict::Array.of(DescriptiveValue).default([])
12
- attribute :contributor, Types::Strict::Array.of(Contributor).default([])
13
- attribute :location, Types::Strict::Array.of(DescriptiveValue).default([])
14
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
15
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
11
+ attribute :date, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
12
+ attribute :contributor, Types::Strict::Array.of(Contributor).default([].freeze)
13
+ attribute :location, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
14
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
15
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
16
16
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
17
- attribute :parallelEvent, Types::Strict::Array.of(DescriptiveParallelEvent).default([])
17
+ attribute :parallelEvent, Types::Strict::Array.of(DescriptiveParallelEvent).default([].freeze)
18
18
  end
19
19
  end
20
20
  end
@@ -23,7 +23,7 @@ module Cocina
23
23
  attribute :hasMimeType, Types::Strict::String.meta(omittable: true)
24
24
  # Use for the File.
25
25
  attribute :use, Types::Strict::String.meta(omittable: true)
26
- attribute :hasMessageDigests, Types::Strict::Array.of(MessageDigest).default([])
26
+ attribute :hasMessageDigests, Types::Strict::Array.of(MessageDigest).default([].freeze)
27
27
  attribute(:access, FileAccess.default { FileAccess.new })
28
28
  attribute(:administrative, FileAdministrative.default { FileAdministrative.new })
29
29
  attribute :presentation, Presentation.optional.meta(omittable: true)
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class FileSetStructural < Struct
6
- attribute :contains, Types::Strict::Array.of(File).default([])
6
+ attribute :contains, Types::Strict::Array.of(File).default([].freeze)
7
7
  end
8
8
  end
9
9
  end
@@ -5,7 +5,7 @@ module Cocina
5
5
  class Identification < Struct
6
6
  # A barcode
7
7
  attribute :barcode, Types::Nominal::Any.meta(omittable: true)
8
- attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).default([])
8
+ attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).default([].freeze)
9
9
  # Digital Object Identifier (https://www.doi.org)
10
10
  # example: 10.25740/bc123df4567
11
11
  attribute :doi, Types::Strict::String.meta(omittable: true)
@@ -3,15 +3,15 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class Language < Struct
6
- attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([])
6
+ attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([].freeze)
7
7
  # Code value of the descriptive element.
8
8
  attribute :code, Types::Strict::String.meta(omittable: true)
9
9
  # The preferred display label to use for the descriptive element in access systems.
10
10
  attribute :displayLabel, Types::Strict::String.meta(omittable: true)
11
11
  attribute :encoding, Standard.optional.meta(omittable: true)
12
- attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([])
13
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
14
- attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([])
12
+ attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
13
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
14
+ attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
15
15
  # present for mapping to additional schemas in the future and for consistency but not otherwise used
16
16
  attribute :qualifier, Types::Strict::String.meta(omittable: true)
17
17
  attribute :script, DescriptiveValue.optional.meta(omittable: true)
@@ -19,7 +19,7 @@ module Cocina
19
19
  # Status of the language relative to other parallel language elements (e.g. the primary language)
20
20
  attribute :status, Types::Strict::String.enum('primary').meta(omittable: true)
21
21
  attribute :standard, Standard.optional.meta(omittable: true)
22
- attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([])
22
+ attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
23
23
  # URI value of the descriptive element.
24
24
  attribute :uri, Types::Strict::String.meta(omittable: true)
25
25
  # Value of the descriptive element.
@@ -9,19 +9,19 @@ module Cocina
9
9
  attribute :status, Types::Strict::String.meta(omittable: true)
10
10
  # The preferred display label to use for the related resource in access systems.
11
11
  attribute :displayLabel, Types::Strict::String.meta(omittable: true)
12
- attribute :title, Types::Strict::Array.of(DescriptiveValue).default([])
13
- attribute :contributor, Types::Strict::Array.of(Contributor).default([])
14
- attribute :event, Types::Strict::Array.of(Event).default([])
15
- attribute :form, Types::Strict::Array.of(DescriptiveValue).default([])
16
- attribute :language, Types::Strict::Array.of(Language).default([])
17
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
18
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
12
+ attribute :title, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
13
+ attribute :contributor, Types::Strict::Array.of(Contributor).default([].freeze)
14
+ attribute :event, Types::Strict::Array.of(Event).default([].freeze)
15
+ attribute :form, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
16
+ attribute :language, Types::Strict::Array.of(Language).default([].freeze)
17
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
18
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
19
19
  attribute :standard, Standard.optional.meta(omittable: true)
20
- attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([])
20
+ attribute :subject, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
21
21
  # Stanford persistent URL associated with the related resource. Note this is http, not https.
22
22
  attribute :purl, Types::Strict::String.meta(omittable: true)
23
23
  attribute :access, DescriptiveAccessMetadata.optional.meta(omittable: true)
24
- attribute :relatedResource, Types::Strict::Array.of(RelatedResource).default([])
24
+ attribute :relatedResource, Types::Strict::Array.of(RelatedResource).default([].freeze)
25
25
  attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
26
26
  # The version of the related resource.
27
27
  attribute :version, Types::Strict::String.meta(omittable: true)
@@ -3,9 +3,9 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class RequestDROStructural < Struct
6
- attribute :contains, Types::Strict::Array.of(RequestFileSet).default([])
7
- attribute :hasMemberOrders, Types::Strict::Array.of(Sequence).default([])
8
- attribute :isMemberOf, Types::Strict::Array.of(Druid).default([])
6
+ attribute :contains, Types::Strict::Array.of(RequestFileSet).default([].freeze)
7
+ attribute :hasMemberOrders, Types::Strict::Array.of(Sequence).default([].freeze)
8
+ attribute :isMemberOf, Types::Strict::Array.of(Druid).default([].freeze)
9
9
  attribute :hasAgreement, Types::Strict::String.meta(omittable: true)
10
10
  end
11
11
  end
@@ -15,7 +15,7 @@ module Cocina
15
15
  attribute :hasMimeType, Types::Strict::String.meta(omittable: true)
16
16
  attribute :externalIdentifier, Types::Strict::String.meta(omittable: true)
17
17
  attribute :use, Types::Strict::String.meta(omittable: true)
18
- attribute :hasMessageDigests, Types::Strict::Array.of(MessageDigest).default([])
18
+ attribute :hasMessageDigests, Types::Strict::Array.of(MessageDigest).default([].freeze)
19
19
  attribute(:access, FileAccess.default { FileAccess.new })
20
20
  attribute(:administrative, FileAdministrative.default { FileAdministrative.new })
21
21
  attribute :presentation, Presentation.optional.meta(omittable: true)
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class RequestFileSetStructural < Struct
6
- attribute :contains, Types::Strict::Array.of(RequestFile).default([])
6
+ attribute :contains, Types::Strict::Array.of(RequestFile).default([].freeze)
7
7
  end
8
8
  end
9
9
  end
@@ -5,7 +5,7 @@ module Cocina
5
5
  class RequestIdentification < Struct
6
6
  # A barcode
7
7
  attribute :barcode, Types::Nominal::Any.meta(omittable: true)
8
- attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).default([])
8
+ attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).default([].freeze)
9
9
  # Unique identifier in some other system. This is because a large proportion of what is deposited in SDR, historically and currently, are representations of objects that are also represented in other systems. For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to look for the original item if you're looking at its SDR representation. The format is: "namespace:identifier"
10
10
 
11
11
  # example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
@@ -3,7 +3,7 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class Sequence < Struct
6
- attribute :members, Types::Strict::Array.of(Types::Strict::String).default([])
6
+ attribute :members, Types::Strict::Array.of(Types::Strict::String).default([].freeze)
7
7
  # The direction that a sequence of canvases should be displayed to the user
8
8
  attribute :viewingDirection, Types::Strict::String.enum('right-to-left', 'left-to-right').meta(omittable: true)
9
9
  end
@@ -9,7 +9,7 @@ module Cocina
9
9
  attribute :uri, Types::Strict::String.meta(omittable: true)
10
10
  # String describing the value source.
11
11
  attribute :value, Types::Strict::String.meta(omittable: true)
12
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
12
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
13
13
  # The version of the value source.
14
14
  attribute :version, Types::Strict::String.meta(omittable: true)
15
15
  end
@@ -9,7 +9,7 @@ module Cocina
9
9
  attribute :uri, Types::Strict::String.meta(omittable: true)
10
10
  # String describing the standard or encoding.
11
11
  attribute :value, Types::Strict::String.meta(omittable: true)
12
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
12
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
13
13
  # The version of the standard or encoding.
14
14
  attribute :version, Types::Strict::String.meta(omittable: true)
15
15
  attribute :source, Source.optional.meta(omittable: true)
@@ -3,9 +3,9 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class Title < Struct
6
- attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([])
7
- attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([])
8
- attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([])
6
+ attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
7
+ attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
8
+ attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
9
9
  # String or integer value of the descriptive element.
10
10
  attribute :value, Types::Nominal::Any.meta(omittable: true)
11
11
  # Type of value provided by the descriptive element.
@@ -18,17 +18,17 @@ module Cocina
18
18
  attribute :uri, Types::Strict::String.meta(omittable: true)
19
19
  attribute :standard, Standard.optional.meta(omittable: true)
20
20
  attribute :encoding, Standard.optional.meta(omittable: true)
21
- attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([])
21
+ attribute :identifier, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
22
22
  attribute :source, Source.optional.meta(omittable: true)
23
23
  # The preferred display label to use for the descriptive element in access systems.
24
24
  attribute :displayLabel, Types::Strict::String.meta(omittable: true)
25
25
  # A term providing information about the circumstances of the statement (e.g., approximate dates).
26
26
  attribute :qualifier, Types::Strict::String.meta(omittable: true)
27
- attribute :note, Types::Strict::Array.of(DescriptiveValue).default([])
27
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).default([].freeze)
28
28
  attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
29
29
  # URL or other pointer to the location of the value of the descriptive element.
30
30
  attribute :valueAt, Types::Strict::String.meta(omittable: true)
31
- attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([])
31
+ attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).default([].freeze)
32
32
  end
33
33
  end
34
34
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.63.0'
5
+ VERSION = '0.63.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.63.0
4
+ version: 0.63.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-19 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport