cocina-models 0.125.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/cocina/models/admin_policy.rb +1 -1
- data/lib/cocina/models/admin_policy_lite.rb +1 -1
- data/lib/cocina/models/admin_policy_with_metadata.rb +1 -1
- data/lib/cocina/models/collection.rb +1 -1
- data/lib/cocina/models/collection_lite.rb +1 -1
- data/lib/cocina/models/collection_with_metadata.rb +1 -1
- data/lib/cocina/models/dro.rb +1 -1
- data/lib/cocina/models/dro_lite.rb +1 -1
- data/lib/cocina/models/dro_with_metadata.rb +1 -1
- data/lib/cocina/models/version.rb +1 -1
- data/schema.json +12 -9
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86e0c8618a41069ccb15d7cb7bd487ec9aa82647995f4205cf330bb1c0c93a62
|
|
4
|
+
data.tar.gz: 7cd09674422b6ab23887c68f2a2afd896eaf6afb110ec86f42c62b0bf7721847
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8eda1b3b135d24d1722baa84a4a7bb39858c77eb34c1d456327a9c6c03289d3fa423f8c0b6be19082b538443558e584cb0b851a22eac5dd2d16eb9370fdb5b3a
|
|
7
|
+
data.tar.gz: f5826802cde02885851223dc8988bf3300e3149fdb573672fc88db49416151ad895dcbe02bd25b80a643d41b36ee571a5a63e9ab4f07a46a630f1039c8eddc2b
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
cocina-models (0.
|
|
4
|
+
cocina-models (0.126.0)
|
|
5
5
|
activesupport
|
|
6
6
|
cocina_display
|
|
7
7
|
deprecation
|
|
@@ -232,7 +232,7 @@ CHECKSUMS
|
|
|
232
232
|
bigdecimal (4.1.2) sha256=53d217666027eab4280346fba98e7d5b66baaae1b9c3c1c0ffe89d48188a3fbd
|
|
233
233
|
builder (3.3.0) sha256=497918d2f9dca528fdca4b88d84e4ef4387256d984b8154e9d5d3fe5a9c8835f
|
|
234
234
|
bundler (4.0.15) sha256=a4ceb882fe94a0e0ac63cd0813932bbfd631a14e5ac0b7975189b19a4d28d9e7
|
|
235
|
-
cocina-models (0.
|
|
235
|
+
cocina-models (0.126.0)
|
|
236
236
|
cocina_display (2.8.0) sha256=89722e8e204c07cfa38f3deacbd66d42f3db9c7b29fdc034973d847cf93c4995
|
|
237
237
|
concurrent-ruby (1.3.7) sha256=4412caec3a5ea2e5fdc52076724c071a81f2c0593d83b2ac8cbb8ca63b3151b0
|
|
238
238
|
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
|
@@ -15,7 +15,7 @@ module Cocina
|
|
|
15
15
|
attribute :type, Types::Strict::String.enum(*AdminPolicy::TYPES)
|
|
16
16
|
# example: druid:bc123df4567
|
|
17
17
|
attribute :externalIdentifier, Druid
|
|
18
|
-
attribute :label, Types::Strict::String
|
|
18
|
+
attribute? :label, Types::Strict::String.default('')
|
|
19
19
|
attribute :version, Types::Strict::Integer
|
|
20
20
|
# Administrative properties for an AdminPolicy
|
|
21
21
|
attribute(:administrative, AdminPolicyAdministrative.default { AdminPolicyAdministrative.new })
|
|
@@ -13,7 +13,7 @@ module Cocina
|
|
|
13
13
|
attribute :type, Types::Strict::String.enum(*AdminPolicyLite::TYPES)
|
|
14
14
|
# example: druid:bc123df4567
|
|
15
15
|
attribute :externalIdentifier, Druid
|
|
16
|
-
attribute :label, Types::Strict::String
|
|
16
|
+
attribute? :label, Types::Strict::String.default('')
|
|
17
17
|
attribute :version, Types::Strict::Integer
|
|
18
18
|
# Administrative properties for an AdminPolicy
|
|
19
19
|
# Validation of this property is relaxed. See the schema.json for full validation.
|
|
@@ -16,7 +16,7 @@ module Cocina
|
|
|
16
16
|
attribute :type, Types::Strict::String.enum(*AdminPolicyWithMetadata::TYPES)
|
|
17
17
|
# example: druid:bc123df4567
|
|
18
18
|
attribute :externalIdentifier, Druid
|
|
19
|
-
attribute :label, Types::Strict::String
|
|
19
|
+
attribute? :label, Types::Strict::String.default('')
|
|
20
20
|
attribute :version, Types::Strict::Integer
|
|
21
21
|
# Administrative properties for an AdminPolicy
|
|
22
22
|
attribute(:administrative, AdminPolicyAdministrative.default { AdminPolicyAdministrative.new })
|
|
@@ -23,7 +23,7 @@ module Cocina
|
|
|
23
23
|
# example: druid:bc123df4567
|
|
24
24
|
attribute :externalIdentifier, Druid
|
|
25
25
|
# Primary processing label (can be same as title) for a Collection.
|
|
26
|
-
attribute :label, Types::Strict::String
|
|
26
|
+
attribute? :label, Types::Strict::String.default('')
|
|
27
27
|
# Version for the Collection within SDR.
|
|
28
28
|
attribute :version, Types::Strict::Integer
|
|
29
29
|
# Access metadata for collections
|
|
@@ -21,7 +21,7 @@ module Cocina
|
|
|
21
21
|
# example: druid:bc123df4567
|
|
22
22
|
attribute :externalIdentifier, Druid
|
|
23
23
|
# Primary processing label (can be same as title) for a Collection.
|
|
24
|
-
attribute :label, Types::Strict::String
|
|
24
|
+
attribute? :label, Types::Strict::String.default('')
|
|
25
25
|
# Version for the Collection within SDR.
|
|
26
26
|
attribute :version, Types::Strict::Integer
|
|
27
27
|
# Access metadata for collections
|
|
@@ -22,7 +22,7 @@ module Cocina
|
|
|
22
22
|
# example: druid:bc123df4567
|
|
23
23
|
attribute :externalIdentifier, Druid
|
|
24
24
|
# Primary processing label (can be same as title) for a Collection.
|
|
25
|
-
attribute :label, Types::Strict::String
|
|
25
|
+
attribute? :label, Types::Strict::String.default('')
|
|
26
26
|
# Version for the Collection within SDR.
|
|
27
27
|
attribute :version, Types::Strict::Integer
|
|
28
28
|
# Access metadata for collections
|
data/lib/cocina/models/dro.rb
CHANGED
|
@@ -33,7 +33,7 @@ module Cocina
|
|
|
33
33
|
# example: druid:bc123df4567
|
|
34
34
|
attribute :externalIdentifier, Druid
|
|
35
35
|
# Primary processing label (can be same as title) for a DRO.
|
|
36
|
-
attribute :label, Types::Strict::String
|
|
36
|
+
attribute? :label, Types::Strict::String.default('')
|
|
37
37
|
# Version for the DRO within SDR.
|
|
38
38
|
attribute :version, Types::Strict::Integer
|
|
39
39
|
attribute(:access, DROAccess.default { DROAccess.new })
|
|
@@ -31,7 +31,7 @@ module Cocina
|
|
|
31
31
|
# example: druid:bc123df4567
|
|
32
32
|
attribute :externalIdentifier, Druid
|
|
33
33
|
# Primary processing label (can be same as title) for a DRO.
|
|
34
|
-
attribute :label, Types::Strict::String
|
|
34
|
+
attribute? :label, Types::Strict::String.default('')
|
|
35
35
|
# Version for the DRO within SDR.
|
|
36
36
|
attribute :version, Types::Strict::Integer
|
|
37
37
|
# Validation of this property is relaxed. See the schema.json for full validation.
|
|
@@ -32,7 +32,7 @@ module Cocina
|
|
|
32
32
|
# example: druid:bc123df4567
|
|
33
33
|
attribute :externalIdentifier, Druid
|
|
34
34
|
# Primary processing label (can be same as title) for a DRO.
|
|
35
|
-
attribute :label, Types::Strict::String
|
|
35
|
+
attribute? :label, Types::Strict::String.default('')
|
|
36
36
|
# Version for the DRO within SDR.
|
|
37
37
|
attribute :version, Types::Strict::Integer
|
|
38
38
|
attribute(:access, DROAccess.default { DROAccess.new })
|
data/schema.json
CHANGED
|
@@ -107,7 +107,8 @@
|
|
|
107
107
|
"$ref": "#/$defs/Druid"
|
|
108
108
|
},
|
|
109
109
|
"label": {
|
|
110
|
-
"type": "string"
|
|
110
|
+
"type": "string",
|
|
111
|
+
"default": ""
|
|
111
112
|
},
|
|
112
113
|
"version": {
|
|
113
114
|
"type": "integer"
|
|
@@ -123,7 +124,6 @@
|
|
|
123
124
|
"cocinaVersion",
|
|
124
125
|
"administrative",
|
|
125
126
|
"externalIdentifier",
|
|
126
|
-
"label",
|
|
127
127
|
"type",
|
|
128
128
|
"version"
|
|
129
129
|
]
|
|
@@ -361,7 +361,8 @@
|
|
|
361
361
|
},
|
|
362
362
|
"label": {
|
|
363
363
|
"description": "Primary processing label (can be same as title) for a Collection.",
|
|
364
|
-
"type": "string"
|
|
364
|
+
"type": "string",
|
|
365
|
+
"default": ""
|
|
365
366
|
},
|
|
366
367
|
"version": {
|
|
367
368
|
"description": "Version for the Collection within SDR.",
|
|
@@ -384,7 +385,6 @@
|
|
|
384
385
|
"cocinaVersion",
|
|
385
386
|
"description",
|
|
386
387
|
"externalIdentifier",
|
|
387
|
-
"label",
|
|
388
388
|
"type",
|
|
389
389
|
"version",
|
|
390
390
|
"access",
|
|
@@ -634,7 +634,8 @@
|
|
|
634
634
|
"externalIdentifier": { "$ref": "#/$defs/Druid" },
|
|
635
635
|
"label": {
|
|
636
636
|
"description": "Primary processing label (can be same as title) for a DRO.",
|
|
637
|
-
"type": "string"
|
|
637
|
+
"type": "string",
|
|
638
|
+
"default": ""
|
|
638
639
|
},
|
|
639
640
|
"version": {
|
|
640
641
|
"description": "Version for the DRO within SDR.",
|
|
@@ -653,7 +654,6 @@
|
|
|
653
654
|
"administrative",
|
|
654
655
|
"description",
|
|
655
656
|
"externalIdentifier",
|
|
656
|
-
"label",
|
|
657
657
|
"type",
|
|
658
658
|
"version",
|
|
659
659
|
"identification",
|
|
@@ -2656,7 +2656,8 @@
|
|
|
2656
2656
|
]
|
|
2657
2657
|
},
|
|
2658
2658
|
"label": {
|
|
2659
|
-
"type": "string"
|
|
2659
|
+
"type": "string",
|
|
2660
|
+
"default": ""
|
|
2660
2661
|
},
|
|
2661
2662
|
"version": {
|
|
2662
2663
|
"type": "integer",
|
|
@@ -2716,7 +2717,8 @@
|
|
|
2716
2717
|
]
|
|
2717
2718
|
},
|
|
2718
2719
|
"label": {
|
|
2719
|
-
"type": "string"
|
|
2720
|
+
"type": "string",
|
|
2721
|
+
"default": ""
|
|
2720
2722
|
},
|
|
2721
2723
|
"version": {
|
|
2722
2724
|
"type": "integer",
|
|
@@ -2776,7 +2778,8 @@
|
|
|
2776
2778
|
]
|
|
2777
2779
|
},
|
|
2778
2780
|
"label": {
|
|
2779
|
-
"type": "string"
|
|
2781
|
+
"type": "string",
|
|
2782
|
+
"default": ""
|
|
2780
2783
|
},
|
|
2781
2784
|
"version": {
|
|
2782
2785
|
"type": "integer",
|
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.
|
|
4
|
+
version: 0.126.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Coyne
|
|
@@ -536,7 +536,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
536
536
|
- !ruby/object:Gem::Version
|
|
537
537
|
version: '0'
|
|
538
538
|
requirements: []
|
|
539
|
-
rubygems_version:
|
|
539
|
+
rubygems_version: 3.6.9
|
|
540
540
|
specification_version: 4
|
|
541
541
|
summary: Data models for the SDR
|
|
542
542
|
test_files: []
|