cocina-models 0.41.0 → 0.45.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +2 -3
- data/.rubocop.yml +80 -102
- data/README.md +8 -1
- data/cocina-models.gemspec +3 -3
- data/docs/index.html +1 -1
- data/lib/cocina/models/description.rb +1 -0
- data/lib/cocina/models/descriptive_access_metadata.rb +1 -0
- data/lib/cocina/models/descriptive_admin_metadata.rb +1 -1
- data/lib/cocina/models/descriptive_geographic_metadata.rb +10 -0
- data/lib/cocina/models/language.rb +1 -1
- data/lib/cocina/models/message_digest.rb +1 -1
- data/lib/cocina/models/related_resource.rb +2 -0
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +38 -9
- metadata +10 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5009424cf5bd827da8766eb5e0ecee739931123bad8f233342280908b4dac436
|
4
|
+
data.tar.gz: '084f2ed351b54e1c792df48116bb55e51fd3e9d27921167aa80f1768b595f9ac'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3097db674f1c8da72a88296cda09ca06fc8c1dc1cfecdfa5fcd0d94e4585f017433e77a3f8e38495371dfb4c3c1dec6955f5380de3e7e81b9318abe16a326972
|
7
|
+
data.tar.gz: 571a4ca0471f75fe22d7f943f9c79f9db19a324f0aeef402d237aa8d5c00899ba4ff1407efe465b2470c3d9c382084058cb69d4093b3233470105fad2a1b530c
|
data/.rubocop.yml
CHANGED
@@ -7,170 +7,148 @@ require:
|
|
7
7
|
AllCops:
|
8
8
|
TargetRubyVersion: 2.5
|
9
9
|
|
10
|
+
# ----- Layout ------
|
11
|
+
|
10
12
|
Layout/LineLength:
|
11
13
|
Max: 114
|
12
14
|
Exclude:
|
13
15
|
- lib/cocina/models/*
|
14
16
|
|
15
|
-
|
16
|
-
|
17
|
-
- cocina-models.gemspec
|
18
|
-
- spec/cocina/**/*
|
19
|
-
|
20
|
-
Metrics/MethodLength:
|
21
|
-
Max: 14
|
22
|
-
|
23
|
-
RSpec/MultipleExpectations:
|
24
|
-
Enabled: false
|
25
|
-
|
26
|
-
RSpec/ExampleLength:
|
27
|
-
Max: 18
|
28
|
-
Exclude:
|
29
|
-
- spec/cocina/models/description_spec.rb
|
30
|
-
- spec/cocina/models/dro_shared_examples.rb
|
31
|
-
|
32
|
-
Style/Documentation:
|
33
|
-
Exclude:
|
34
|
-
- lib/cocina/models/*
|
35
|
-
|
17
|
+
Layout/BeginEndAlignment: # (new in 0.91)
|
18
|
+
Enabled: true
|
36
19
|
Layout/EmptyLinesAroundAttributeAccessor:
|
37
20
|
Enabled: true
|
38
|
-
|
39
21
|
Layout/SpaceAroundMethodCallOperator:
|
40
22
|
Enabled: true
|
41
23
|
|
42
|
-
Lint
|
43
|
-
Enabled: true
|
24
|
+
# ----- Lint ------
|
44
25
|
|
45
|
-
Lint/
|
26
|
+
Lint/BinaryOperatorWithIdenticalOperands:
|
46
27
|
Enabled: true
|
47
|
-
|
48
|
-
Lint/RaiseException:
|
28
|
+
Lint/ConstantDefinitionInBlock: # (new in 0.91)
|
49
29
|
Enabled: true
|
50
|
-
|
51
|
-
Lint/StructNewOverride:
|
30
|
+
Lint/DeprecatedOpenSSLConstant:
|
52
31
|
Enabled: true
|
53
|
-
|
54
|
-
Style/AccessorGrouping:
|
32
|
+
Lint/DuplicateElsifCondition:
|
55
33
|
Enabled: true
|
56
|
-
|
57
|
-
Style/BisectedAttrAccessor:
|
34
|
+
Lint/DuplicateRequire: # (new in 0.90)
|
58
35
|
Enabled: true
|
59
|
-
|
60
|
-
Style/ExponentialNotation:
|
36
|
+
Lint/DuplicateRescueException:
|
61
37
|
Enabled: true
|
62
|
-
|
63
|
-
Style/HashEachMethods:
|
38
|
+
Lint/EmptyConditionalBody:
|
64
39
|
Enabled: true
|
65
|
-
|
66
|
-
Style/HashTransformKeys:
|
40
|
+
Lint/EmptyFile: # (new in 0.90)
|
67
41
|
Enabled: true
|
68
|
-
|
69
|
-
Style/HashTransformValues:
|
42
|
+
Lint/FloatComparison:
|
70
43
|
Enabled: true
|
71
|
-
|
72
|
-
Style/RedundantAssignment:
|
44
|
+
Lint/HashCompareByIdentity: # (new in 0.93)
|
73
45
|
Enabled: true
|
74
|
-
|
75
|
-
Style/RedundantFetchBlock:
|
46
|
+
Lint/IdentityComparison: # (new in 0.91)
|
76
47
|
Enabled: true
|
77
|
-
|
78
|
-
Style/RedundantRegexpCharacterClass:
|
48
|
+
Lint/MissingSuper:
|
79
49
|
Enabled: true
|
80
|
-
|
81
|
-
Style/RedundantRegexpEscape:
|
50
|
+
Lint/MixedRegexpCaptureTypes:
|
82
51
|
Enabled: true
|
83
|
-
|
84
|
-
Style/SlicingWithRange:
|
52
|
+
Lint/OutOfRangeRegexpRef:
|
85
53
|
Enabled: true
|
86
|
-
|
87
|
-
Lint/BinaryOperatorWithIdenticalOperands:
|
54
|
+
Lint/RaiseException:
|
88
55
|
Enabled: true
|
89
|
-
|
90
|
-
Lint/DuplicateElsifCondition:
|
56
|
+
Lint/RedundantSafeNavigation: # (new in 0.93)
|
91
57
|
Enabled: true
|
92
|
-
|
93
|
-
Lint/DuplicateRescueException:
|
58
|
+
Lint/SelfAssignment:
|
94
59
|
Enabled: true
|
95
|
-
|
96
|
-
Lint/EmptyConditionalBody:
|
60
|
+
Lint/StructNewOverride:
|
97
61
|
Enabled: true
|
98
|
-
|
99
|
-
Lint/FloatComparison:
|
62
|
+
Lint/TopLevelReturnWithArgument:
|
100
63
|
Enabled: true
|
101
|
-
|
102
|
-
Lint/MissingSuper:
|
64
|
+
Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
|
103
65
|
Enabled: true
|
104
|
-
|
105
|
-
Lint/OutOfRangeRegexpRef:
|
66
|
+
Lint/UnreachableLoop:
|
106
67
|
Enabled: true
|
107
|
-
|
108
|
-
Lint/SelfAssignment:
|
68
|
+
Lint/UselessMethodDefinition: # (new in 0.90)
|
109
69
|
Enabled: true
|
110
|
-
|
111
|
-
Lint/TopLevelReturnWithArgument:
|
70
|
+
Lint/UselessTimes: # (new in 0.91)
|
112
71
|
Enabled: true
|
113
72
|
|
114
|
-
|
115
|
-
Enabled: true
|
73
|
+
# ----- Metrics ------
|
116
74
|
|
117
|
-
|
118
|
-
|
75
|
+
Metrics/BlockLength:
|
76
|
+
Exclude:
|
77
|
+
- cocina-models.gemspec
|
78
|
+
- spec/cocina/**/*
|
119
79
|
|
120
|
-
|
121
|
-
|
80
|
+
Metrics/MethodLength:
|
81
|
+
Max: 14
|
122
82
|
|
123
|
-
|
124
|
-
Enabled: true
|
83
|
+
# ----- RSpec ------
|
125
84
|
|
126
|
-
|
127
|
-
|
85
|
+
RSpec/ExampleLength:
|
86
|
+
Max: 18
|
87
|
+
Exclude:
|
88
|
+
- spec/cocina/models/description_spec.rb
|
89
|
+
- spec/cocina/models/dro_shared_examples.rb
|
128
90
|
|
129
|
-
|
130
|
-
Enabled:
|
91
|
+
RSpec/MultipleExpectations:
|
92
|
+
Enabled: false
|
131
93
|
|
132
|
-
|
94
|
+
RSpec/StubbedMock: # (new in 1.44)
|
133
95
|
Enabled: true
|
134
96
|
|
135
|
-
Style
|
136
|
-
Enabled: false
|
97
|
+
# ----- Style ------
|
137
98
|
|
138
|
-
Style/
|
139
|
-
|
99
|
+
Style/Documentation:
|
100
|
+
Exclude:
|
101
|
+
- lib/cocina/models/*
|
140
102
|
|
141
|
-
Style/
|
103
|
+
Style/AccessorGrouping:
|
142
104
|
Enabled: true
|
143
|
-
|
144
|
-
Style/StringConcatenation:
|
105
|
+
Style/ArrayCoercion:
|
145
106
|
Enabled: true
|
146
|
-
|
147
|
-
Layout/BeginEndAlignment: # (new in 0.91)
|
107
|
+
Style/BisectedAttrAccessor:
|
148
108
|
Enabled: true
|
149
|
-
|
109
|
+
Style/CaseLikeIf:
|
150
110
|
Enabled: true
|
151
|
-
|
111
|
+
Style/ClassEqualityComparison: # (new in 0.93)
|
152
112
|
Enabled: true
|
153
|
-
|
113
|
+
Style/CombinableLoops: # (new in 0.90)
|
154
114
|
Enabled: true
|
155
|
-
|
115
|
+
Style/ExplicitBlockArgument:
|
156
116
|
Enabled: true
|
157
|
-
|
117
|
+
Style/ExponentialNotation:
|
158
118
|
Enabled: true
|
159
|
-
|
119
|
+
Style/GlobalStdStream:
|
160
120
|
Enabled: true
|
161
|
-
|
121
|
+
Style/HashAsLastArrayItem:
|
162
122
|
Enabled: true
|
163
|
-
|
123
|
+
Style/HashEachMethods:
|
164
124
|
Enabled: true
|
165
|
-
|
125
|
+
Style/HashLikeCase:
|
166
126
|
Enabled: true
|
167
|
-
Style/
|
127
|
+
Style/HashTransformKeys:
|
168
128
|
Enabled: true
|
169
|
-
Style/
|
129
|
+
Style/HashTransformValues:
|
170
130
|
Enabled: true
|
171
131
|
Style/KeywordParametersOrder: # (new in 0.90)
|
172
132
|
Enabled: true
|
133
|
+
Style/OptionalBooleanParameter:
|
134
|
+
Enabled: false
|
135
|
+
Style/RedundantAssignment:
|
136
|
+
Enabled: true
|
137
|
+
Style/RedundantFetchBlock:
|
138
|
+
Enabled: true
|
139
|
+
Style/RedundantFileExtensionInRequire:
|
140
|
+
Enabled: true
|
141
|
+
Style/RedundantRegexpCharacterClass:
|
142
|
+
Enabled: true
|
143
|
+
Style/RedundantRegexpEscape:
|
144
|
+
Enabled: true
|
173
145
|
Style/RedundantSelfAssignment: # (new in 0.90)
|
174
146
|
Enabled: true
|
147
|
+
Style/SingleArgumentDig:
|
148
|
+
Enabled: true
|
149
|
+
Style/SlicingWithRange:
|
150
|
+
Enabled: true
|
175
151
|
Style/SoleNestedConditional: # (new in 0.89)
|
176
152
|
Enabled: true
|
153
|
+
Style/StringConcatenation:
|
154
|
+
Enabled: true
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/472273351516ac01dce1/test_coverage)](https://codeclimate.com/github/sul-dlss/cocina-models/test_coverage)
|
3
3
|
[![Maintainability](https://api.codeclimate.com/v1/badges/472273351516ac01dce1/maintainability)](https://codeclimate.com/github/sul-dlss/cocina-models/maintainability)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/cocina-models.svg)](https://badge.fury.io/rb/cocina-models)
|
5
|
-
[![OpenAPI Validator](http://validator.swagger.io/validator?url=https://raw.githubusercontent.com/sul-dlss/cocina-models/
|
5
|
+
[![OpenAPI Validator](http://validator.swagger.io/validator?url=https://raw.githubusercontent.com/sul-dlss/cocina-models/main/openapi.yml)](http://validator.swagger.io/validator/debug?url=https://raw.githubusercontent.com/sul-dlss/cocina-models/main/openapi.yml)
|
6
6
|
|
7
7
|
# Cocina::Models
|
8
8
|
|
@@ -42,6 +42,10 @@ which pushes the gem to rubygems.org. Next write up the release notes: https://
|
|
42
42
|
|
43
43
|
Finally, you must release versions of [sdr-client](https://github.com/sul-dlss/sdr-client) and [dor-services-client](https://github.com/sul-dlss/dor-services-client/) pinned to this version because [Argo](https://github.com/sul-dlss/argo) depends on both of those. When [dor-services-app](https://github.com/sul-dlss/dor-services-app) is updated to use the new models (via the auto-update script), the clients must be updated at the same time or there is risk of models produced by dor-services-app not being acceptable to the clients.
|
44
44
|
|
45
|
+
### Communicate
|
46
|
+
|
47
|
+
Send a note to `#dlss-infra-chg-mgmt` on Slack to let people know what is changing and when.
|
48
|
+
|
45
49
|
### Dependent Services
|
46
50
|
|
47
51
|
Once the above listed gems are updated all the following services that use cocina-models should be updated and released at the same time:
|
@@ -52,6 +56,9 @@ Once the above listed gems are updated all the following services that use cocin
|
|
52
56
|
* sul-dlss/common-accessioning
|
53
57
|
* sul-dlss/argo
|
54
58
|
* sul-dlss/pre-assembly
|
59
|
+
* sul-dlss/hydrus
|
60
|
+
* sul-dlss/happy-heron
|
61
|
+
* sul-dlss/infrastructure-integration-test
|
55
62
|
|
56
63
|
## Using this gem
|
57
64
|
|
data/cocina-models.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.bindir = 'exe'
|
23
23
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
24
|
spec.require_paths = ['lib']
|
25
|
-
spec.required_ruby_version = '
|
25
|
+
spec.required_ruby_version = '>= 2.5'
|
26
26
|
|
27
27
|
spec.add_dependency 'activesupport'
|
28
28
|
spec.add_dependency 'dry-struct', '~> 1.0'
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_development_dependency 'committee'
|
37
37
|
spec.add_development_dependency 'rake', '~> 13.0'
|
38
38
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
39
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
40
|
-
spec.add_development_dependency 'rubocop-rspec'
|
39
|
+
spec.add_development_dependency 'rubocop', '~> 0.93'
|
40
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 1.44'
|
41
41
|
spec.add_development_dependency 'simplecov', '~> 0.17.0'
|
42
42
|
end
|
data/docs/index.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
</style>
|
15
15
|
</head>
|
16
16
|
<body>
|
17
|
-
<redoc spec-url='https://raw.githubusercontent.com/sul-dlss/cocina-models/
|
17
|
+
<redoc spec-url='https://raw.githubusercontent.com/sul-dlss/cocina-models/main/openapi.yml'></redoc>
|
18
18
|
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
|
19
19
|
</body>
|
20
20
|
</html>
|
@@ -7,6 +7,7 @@ module Cocina
|
|
7
7
|
attribute :contributor, Types::Strict::Array.of(Contributor).meta(omittable: true)
|
8
8
|
attribute :event, Types::Strict::Array.of(Event).meta(omittable: true)
|
9
9
|
attribute :form, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
10
|
+
attribute :geographic, Types::Strict::Array.of(DescriptiveGeographicMetadata).meta(omittable: true)
|
10
11
|
attribute :language, Types::Strict::Array.of(Language).meta(omittable: true)
|
11
12
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
12
13
|
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
@@ -5,6 +5,7 @@ module Cocina
|
|
5
5
|
class DescriptiveAccessMetadata < Struct
|
6
6
|
attribute :url, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
7
7
|
attribute :physicalLocation, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
|
+
attribute :digitalLocation, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
9
|
attribute :accessContact, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
9
10
|
attribute :digitalRepository, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
10
11
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
@@ -7,7 +7,7 @@ module Cocina
|
|
7
7
|
attribute :event, Types::Strict::Array.of(Event).meta(omittable: true)
|
8
8
|
attribute :language, Types::Strict::Array.of(Language).meta(omittable: true)
|
9
9
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
10
|
-
attribute :
|
10
|
+
attribute :metadataStandard, Types::Strict::Array.of(Standard).meta(omittable: true)
|
11
11
|
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
12
12
|
end
|
13
13
|
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Cocina
|
4
|
+
module Models
|
5
|
+
class DescriptiveGeographicMetadata < Struct
|
6
|
+
attribute :form, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
7
|
+
attribute :subject, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -15,7 +15,7 @@ module Cocina
|
|
15
15
|
attribute :qualifier, Types::Strict::String.meta(omittable: true)
|
16
16
|
attribute :script, DescriptiveValue.optional.meta(omittable: true)
|
17
17
|
attribute :source, Source.optional.meta(omittable: true)
|
18
|
-
# Status of the
|
18
|
+
# Status of the language relative to other parallel language elements (e.g. the primary language)
|
19
19
|
attribute :status, Types::Strict::String.enum('primary').meta(omittable: true)
|
20
20
|
attribute :standard, Standard.optional.meta(omittable: true)
|
21
21
|
attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
@@ -21,6 +21,8 @@ module Cocina
|
|
21
21
|
# Stanford persistent URL associated with the related resource.
|
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).meta(omittable: true)
|
25
|
+
attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
|
24
26
|
# The version of the related resource.
|
25
27
|
attribute :version, Types::Strict::String.meta(omittable: true)
|
26
28
|
end
|
data/openapi.yml
CHANGED
@@ -261,7 +261,6 @@ components:
|
|
261
261
|
description: Status of the contributor relative to other parallel contributors
|
262
262
|
(e.g. the primary author among a group of contributors).
|
263
263
|
type: string
|
264
|
-
# type: integer
|
265
264
|
role:
|
266
265
|
description: Relationships of the contributor to the resource or to an event
|
267
266
|
in its history.
|
@@ -305,6 +304,11 @@ components:
|
|
305
304
|
type: array
|
306
305
|
items:
|
307
306
|
$ref: "#/components/schemas/DescriptiveValue"
|
307
|
+
geographic:
|
308
|
+
description: Geographic description for items with coordinates or bounding boxes.
|
309
|
+
type: array
|
310
|
+
items:
|
311
|
+
$ref: "#/components/schemas/DescriptiveGeographicMetadata"
|
308
312
|
language:
|
309
313
|
description: Languages, scripts, symbolic systems, and notations used in all or
|
310
314
|
part of a resource.
|
@@ -361,6 +365,11 @@ components:
|
|
361
365
|
type: array
|
362
366
|
items:
|
363
367
|
$ref: "#/components/schemas/DescriptiveValue"
|
368
|
+
digitalLocation:
|
369
|
+
description: Location of a digital version of the resource, such as a file path for a born digital resource.
|
370
|
+
type: array
|
371
|
+
items:
|
372
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
364
373
|
accessContact:
|
365
374
|
description: The library, organization, or person responsible for access to the resource.
|
366
375
|
type: array
|
@@ -402,9 +411,11 @@ components:
|
|
402
411
|
type: array
|
403
412
|
items:
|
404
413
|
$ref: "#/components/schemas/DescriptiveValue"
|
405
|
-
|
406
|
-
|
407
|
-
|
414
|
+
metadataStandard:
|
415
|
+
description: Descriptive or content standard(s) to which this resource description conforms.
|
416
|
+
type: array
|
417
|
+
items:
|
418
|
+
$ref: "#/components/schemas/Standard"
|
408
419
|
identifier:
|
409
420
|
description: Identifiers associated with this resource description.
|
410
421
|
type: array
|
@@ -436,7 +447,6 @@ components:
|
|
436
447
|
description: Status of the descriptive element value relative to other instances
|
437
448
|
of the element.
|
438
449
|
type: string
|
439
|
-
# type: integer (uncomment when issue #154 is resolved)
|
440
450
|
code:
|
441
451
|
description: Code value of the descriptive element.
|
442
452
|
type: string
|
@@ -470,6 +480,20 @@ components:
|
|
470
480
|
$ref: "#/components/schemas/DescriptiveValue"
|
471
481
|
valueLanguage:
|
472
482
|
$ref: "#/components/schemas/DescriptiveValueLanguage"
|
483
|
+
DescriptiveGeographicMetadata:
|
484
|
+
description: Value model for mods geographic extension metadata
|
485
|
+
type: object
|
486
|
+
additionalProperties: false
|
487
|
+
properties:
|
488
|
+
form:
|
489
|
+
type: array
|
490
|
+
items:
|
491
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
492
|
+
subject:
|
493
|
+
description: Terms associated with the intellectual content of the related resource.
|
494
|
+
type: array
|
495
|
+
items:
|
496
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
473
497
|
DescriptiveParallelValue:
|
474
498
|
description: Value model for multiple representations of the same information (e.g. in different languages).
|
475
499
|
type: object
|
@@ -914,8 +938,7 @@ components:
|
|
914
938
|
source:
|
915
939
|
$ref: "#/components/schemas/Source"
|
916
940
|
status:
|
917
|
-
description: Status of the
|
918
|
-
(e.g. the primary author among a group of contributors).
|
941
|
+
description: Status of the language relative to other parallel language elements (e.g. the primary language)
|
919
942
|
type: string
|
920
943
|
enum:
|
921
944
|
- primary
|
@@ -949,7 +972,7 @@ components:
|
|
949
972
|
- md5
|
950
973
|
- sha1
|
951
974
|
digest:
|
952
|
-
description: The digest value
|
975
|
+
description: The digest value hexidecimal encoded
|
953
976
|
type: string
|
954
977
|
required:
|
955
978
|
- type
|
@@ -976,7 +999,6 @@ components:
|
|
976
999
|
status:
|
977
1000
|
description: Status of the related resource relative to other related resources.
|
978
1001
|
type: string
|
979
|
-
# type: integer
|
980
1002
|
displayLabel:
|
981
1003
|
description: The preferred display label to use for the related resource in access systems.
|
982
1004
|
type: string
|
@@ -1032,6 +1054,13 @@ components:
|
|
1032
1054
|
format: uri
|
1033
1055
|
access:
|
1034
1056
|
$ref: "#/components/schemas/DescriptiveAccessMetadata"
|
1057
|
+
relatedResource:
|
1058
|
+
description: Other resources associated with the related resource.
|
1059
|
+
type: array
|
1060
|
+
items:
|
1061
|
+
$ref: "#/components/schemas/RelatedResource"
|
1062
|
+
adminMetadata:
|
1063
|
+
$ref: "#/components/schemas/DescriptiveAdminMetadata"
|
1035
1064
|
version:
|
1036
1065
|
description: The version of the related resource.
|
1037
1066
|
type: string
|
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.
|
4
|
+
version: 0.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -170,28 +170,28 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '0.
|
173
|
+
version: '0.93'
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0.
|
180
|
+
version: '0.93'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rubocop-rspec
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
184
184
|
requirements:
|
185
|
-
- - "
|
185
|
+
- - "~>"
|
186
186
|
- !ruby/object:Gem::Version
|
187
|
-
version: '
|
187
|
+
version: '1.44'
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
191
191
|
requirements:
|
192
|
-
- - "
|
192
|
+
- - "~>"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '1.44'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
196
|
name: simplecov
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -267,6 +267,7 @@ files:
|
|
267
267
|
- lib/cocina/models/descriptive_access_metadata.rb
|
268
268
|
- lib/cocina/models/descriptive_admin_metadata.rb
|
269
269
|
- lib/cocina/models/descriptive_basic_value.rb
|
270
|
+
- lib/cocina/models/descriptive_geographic_metadata.rb
|
270
271
|
- lib/cocina/models/descriptive_parallel_value.rb
|
271
272
|
- lib/cocina/models/descriptive_structured_value.rb
|
272
273
|
- lib/cocina/models/descriptive_value.rb
|
@@ -315,7 +316,7 @@ require_paths:
|
|
315
316
|
- lib
|
316
317
|
required_ruby_version: !ruby/object:Gem::Requirement
|
317
318
|
requirements:
|
318
|
-
- - "
|
319
|
+
- - ">="
|
319
320
|
- !ruby/object:Gem::Version
|
320
321
|
version: '2.5'
|
321
322
|
required_rubygems_version: !ruby/object:Gem::Requirement
|