cocina-models 0.42.1 → 0.43.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocina/models/contributor.rb +2 -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 +4 -0
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +14 -5
- 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: 6a7fb04bce15550d80d32758dea67de26bbf3e0e7f0476249d24404deaab6c5b
|
4
|
+
data.tar.gz: b719c0868f50c0c374d9a2ccec6c6bd7b83099c6cde53b8950f821cfc83eb464
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be9ec459083968e1321fd24d65420afa5e5c83ce7c445b8752e8873a3e42ed45d351768f9697984b6ba9d9046de1cb103b8489843916659c0297e001daa8bef5
|
7
|
+
data.tar.gz: 5769465759f52137fb7f0fff10752b099fe5c4dd514895341c720bc6fd6fcdb43cbb4a2e897ae2b822565b916306686c64079116968a5890543f578aad79ff2b
|
@@ -11,6 +11,8 @@ module Cocina
|
|
11
11
|
attribute :role, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
12
12
|
attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
13
13
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
14
|
+
# Place of contributor in order of authorship for resource.
|
15
|
+
attribute :order, Types::Strict::Integer.meta(omittable: true)
|
14
16
|
end
|
15
17
|
end
|
16
18
|
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,8 +21,12 @@ 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)
|
28
|
+
# The order of the related resource in a series of related resources.
|
29
|
+
attribute :order, Types::Strict::Integer.meta(omittable: true)
|
26
30
|
end
|
27
31
|
end
|
28
32
|
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 (uncomment when issue #154 resolved)
|
265
264
|
role:
|
266
265
|
description: Relationships of the contributor to the resource or to an event
|
267
266
|
in its history.
|
@@ -278,6 +277,9 @@ components:
|
|
278
277
|
type: array
|
279
278
|
items:
|
280
279
|
$ref: "#/components/schemas/DescriptiveValue"
|
280
|
+
order:
|
281
|
+
description: Place of contributor in order of authorship for resource.
|
282
|
+
type: integer
|
281
283
|
Description:
|
282
284
|
type: object
|
283
285
|
additionalProperties: false
|
@@ -441,7 +443,6 @@ components:
|
|
441
443
|
description: Status of the descriptive element value relative to other instances
|
442
444
|
of the element.
|
443
445
|
type: string
|
444
|
-
# type: integer (uncomment when issue #154 is resolved)
|
445
446
|
code:
|
446
447
|
description: Code value of the descriptive element.
|
447
448
|
type: string
|
@@ -934,7 +935,6 @@ components:
|
|
934
935
|
$ref: "#/components/schemas/Source"
|
935
936
|
status:
|
936
937
|
description: Status of the language relative to other parallel language elements (e.g. the primary language)
|
937
|
-
(e.g. the primary author among a group of contributors).
|
938
938
|
type: string
|
939
939
|
enum:
|
940
940
|
- primary
|
@@ -968,7 +968,7 @@ components:
|
|
968
968
|
- md5
|
969
969
|
- sha1
|
970
970
|
digest:
|
971
|
-
description: The digest value
|
971
|
+
description: The digest value hexidecimal encoded
|
972
972
|
type: string
|
973
973
|
required:
|
974
974
|
- type
|
@@ -995,7 +995,6 @@ components:
|
|
995
995
|
status:
|
996
996
|
description: Status of the related resource relative to other related resources.
|
997
997
|
type: string
|
998
|
-
# type: integer (uncomment when issue #154 resolved)
|
999
998
|
displayLabel:
|
1000
999
|
description: The preferred display label to use for the related resource in access systems.
|
1001
1000
|
type: string
|
@@ -1051,9 +1050,19 @@ components:
|
|
1051
1050
|
format: uri
|
1052
1051
|
access:
|
1053
1052
|
$ref: "#/components/schemas/DescriptiveAccessMetadata"
|
1053
|
+
relatedResource:
|
1054
|
+
description: Other resources associated with the related resource.
|
1055
|
+
type: array
|
1056
|
+
items:
|
1057
|
+
$ref: "#/components/schemas/RelatedResource"
|
1058
|
+
adminMetadata:
|
1059
|
+
$ref: "#/components/schemas/DescriptiveAdminMetadata"
|
1054
1060
|
version:
|
1055
1061
|
description: The version of the related resource.
|
1056
1062
|
type: string
|
1063
|
+
order:
|
1064
|
+
description: The order of the related resource in a series of related resources.
|
1065
|
+
type: integer
|
1057
1066
|
ReleaseTag:
|
1058
1067
|
description: A tag that indicates the item or collection should be released.
|
1059
1068
|
type: object
|
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.43.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: 2020-
|
11
|
+
date: 2020-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|