cocina-models 0.34.0 → 0.34.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 258bc916aaaff62a84cd0bd264f8957e3c916310134ef3372cfdd3eca4c1ff4e
4
- data.tar.gz: c26a6cc519230a25d19b218ddcec52fa552ea7780f647b6d449aee223be35eef
3
+ metadata.gz: 47e0e5c391575050da0d7ec099da98ced48dc06f5d7ba2a2df5f53f3e687e04d
4
+ data.tar.gz: cc63b9adc18d069b325ddedf8c019529fa10655168a34e12aa0114220793d372
5
5
  SHA512:
6
- metadata.gz: cd057f437502f2e54f6b2c689b6aef4c808ac4912c91d87755abfeb13c24100ef3380f262e7ec27f42592ecbd59b16d68669c878a31c55fc2402f069c5142f1e
7
- data.tar.gz: 5a27ebb9108e9838117b02ec015bb025120d82e3f90749b12d23b523f3eea4efe865b6e405f649574f10f88ee0a70811334c339e9d522f5f1186b72f59df9240
6
+ metadata.gz: f2f94eb4be540092d833435fec055b48a43d8c3d8b67ffa746dca94607810b23bce102cb0d20fe6eb6097ba721f83be403b2498c881b2dbf448f2c0f2341a5f4
7
+ data.tar.gz: cbae9dff9f1f89bfc9e7557086f63a3dae4941eb4785ba29e2f006fde18a6bdc51a4d747ea74af7d0211e19e20c1f53f2d949d1b233e9f394b6abb6aaf1fae7f
@@ -17,10 +17,13 @@ module Cocina
17
17
  def generate
18
18
  clean_output
19
19
 
20
- schemas.each_key do |schema_name|
20
+ # rubocop:disable Style/HashEachMethods
21
+ # This is not a Hash
22
+ schemas.keys.each do |schema_name|
21
23
  schema = schema_for(schema_name)
22
24
  generate_for(schema) if schema
23
25
  end
26
+ # rubocop:enable Style/HashEachMethods
24
27
 
25
28
  generate_vocab
26
29
  end
@@ -3,6 +3,8 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class Identification < Struct
6
+ # 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.
7
+
6
8
  # example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
7
9
  attribute :sourceId, Types::Strict::String.meta(omittable: true)
8
10
  attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
@@ -25,7 +25,7 @@ module Cocina
25
25
  attribute :type, Types::Strict::String.enum(*RequestDRO::TYPES)
26
26
  attribute :label, Types::Strict::String
27
27
  attribute :version, Types::Strict::Integer
28
- attribute(:access, DROAccess.default { DROAccess.new })
28
+ attribute :access, DROAccess.optional.meta(omittable: true)
29
29
  attribute(:administrative, Administrative.default { Administrative.new })
30
30
  attribute :description, Description.optional.meta(omittable: true)
31
31
  attribute(:identification, RequestIdentification.default { RequestIdentification.new })
@@ -3,6 +3,8 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class RequestIdentification < Struct
6
+ # 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.
7
+
6
8
  # example: sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026
7
9
  attribute :sourceId, Types::Strict::String
8
10
  attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).meta(omittable: true)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.34.0'
5
+ VERSION = '0.34.1'
6
6
  end
7
7
  end
@@ -716,11 +716,11 @@ components:
716
716
  sourceId:
717
717
  type: string
718
718
  description: >
719
- Unique identifier in some other system. This is because a large proportion of what is deposited in SDR,
720
- historically and currently, are representations of objects that are also represented in other systems.
721
- For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed
722
- in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers
723
- and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to
719
+ Unique identifier in some other system. This is because a large proportion of what is deposited in SDR,
720
+ historically and currently, are representations of objects that are also represented in other systems.
721
+ For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed
722
+ in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers
723
+ and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to
724
724
  look for the original item if you're looking at its SDR representation.
725
725
  example: 'sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026'
726
726
  catalogLinks:
@@ -879,7 +879,6 @@ components:
879
879
  geographic:
880
880
  $ref: '#/components/schemas/Geographic'
881
881
  required:
882
- - access
883
882
  - administrative
884
883
  - identification
885
884
  - label
@@ -978,11 +977,11 @@ components:
978
977
  sourceId:
979
978
  type: string
980
979
  description: >
981
- Unique identifier in some other system. This is because a large proportion of what is deposited in SDR,
982
- historically and currently, are representations of objects that are also represented in other systems.
983
- For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed
984
- in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers
985
- and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to
980
+ Unique identifier in some other system. This is because a large proportion of what is deposited in SDR,
981
+ historically and currently, are representations of objects that are also represented in other systems.
982
+ For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed
983
+ in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers
984
+ and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to
986
985
  look for the original item if you're looking at its SDR representation.
987
986
  example: 'sul:PC0170_s3_Fiesta_Bowl_2012-01-02_210609_2026'
988
987
  catalogLinks:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.0
4
+ version: 0.34.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne