cocina-models 0.45.0 → 0.46.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/cocina/models/contributor.rb +2 -0
- data/lib/cocina/models/description.rb +2 -0
- data/lib/cocina/models/descriptive_basic_value.rb +2 -0
- data/lib/cocina/models/descriptive_value.rb +2 -0
- data/lib/cocina/models/language.rb +2 -0
- data/lib/cocina/models/related_resource.rb +2 -0
- data/lib/cocina/models/title.rb +2 -0
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +15 -0
- 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: 8389369c0fe410193de14e970c41f8caf0897529d9f137f12b402c69ae0dfe73
|
4
|
+
data.tar.gz: e1f670a2f769c2220d7c6e40afe5757fd269649594ed9e1743c715ccb501b24e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5e3eb27b903fd4050db36645f74427087a58dbfdaca9827400872977025fecb80797144a430b2b05ec06d426614fa7c81f9cc9bd4b17709bfb941f71b9ca403
|
7
|
+
data.tar.gz: a1b4edb10305328ee9dd232fd76ce2276f3a265b483be5e754f99f8723a15118c5da56ae25b10b5afa6672875ec25aaf2e54e078b037db8f1509c68006f162d2
|
data/README.md
CHANGED
@@ -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
|
+
# URL or other pointer to the location of the contributor information.
|
15
|
+
attribute :valueAt, Types::Strict::String.meta(omittable: true)
|
14
16
|
end
|
15
17
|
end
|
16
18
|
end
|
@@ -18,6 +18,8 @@ module Cocina
|
|
18
18
|
attribute :relatedResource, Types::Strict::Array.of(RelatedResource).meta(omittable: true)
|
19
19
|
attribute :marcEncodedData, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
20
20
|
attribute :adminMetadata, DescriptiveAdminMetadata.optional.meta(omittable: true)
|
21
|
+
# URL or other pointer to the location of the resource description.
|
22
|
+
attribute :valueAt, Types::Strict::String.meta(omittable: true)
|
21
23
|
|
22
24
|
def self.new(attributes = default_attributes, safe = false, validate = true, &block)
|
23
25
|
Validator.validate(self, attributes.with_indifferent_access) if validate && name
|
@@ -25,6 +25,8 @@ module Cocina
|
|
25
25
|
attribute :qualifier, Types::Strict::String.meta(omittable: true)
|
26
26
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
27
27
|
attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
|
28
|
+
# URL or other pointer to the location of the value of the descriptive element.
|
29
|
+
attribute :valueAt, Types::Strict::String.meta(omittable: true)
|
28
30
|
end
|
29
31
|
end
|
30
32
|
end
|
@@ -25,6 +25,8 @@ module Cocina
|
|
25
25
|
attribute :qualifier, Types::Strict::String.meta(omittable: true)
|
26
26
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
27
27
|
attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
|
28
|
+
# URL or other pointer to the location of the value of the descriptive element.
|
29
|
+
attribute :valueAt, Types::Strict::String.meta(omittable: true)
|
28
30
|
attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).meta(omittable: true)
|
29
31
|
end
|
30
32
|
end
|
@@ -23,6 +23,8 @@ module Cocina
|
|
23
23
|
attribute :uri, Types::Strict::String.meta(omittable: true)
|
24
24
|
# Value of the descriptive element.
|
25
25
|
attribute :value, Types::Strict::String.meta(omittable: true)
|
26
|
+
# URL or other pointer to the location of the language information.
|
27
|
+
attribute :valueAt, Types::Strict::String.meta(omittable: true)
|
26
28
|
attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
|
27
29
|
end
|
28
30
|
end
|
@@ -25,6 +25,8 @@ module Cocina
|
|
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)
|
28
|
+
# URL or other pointer to the location of the related resource information.
|
29
|
+
attribute :valueAt, Types::Strict::String.meta(omittable: true)
|
28
30
|
end
|
29
31
|
end
|
30
32
|
end
|
data/lib/cocina/models/title.rb
CHANGED
@@ -25,6 +25,8 @@ module Cocina
|
|
25
25
|
attribute :qualifier, Types::Strict::String.meta(omittable: true)
|
26
26
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
27
27
|
attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
|
28
|
+
# URL or other pointer to the location of the value of the descriptive element.
|
29
|
+
attribute :valueAt, Types::Strict::String.meta(omittable: true)
|
28
30
|
attribute :appliesTo, Types::Strict::Array.of(DescriptiveBasicValue).meta(omittable: true)
|
29
31
|
end
|
30
32
|
end
|
data/openapi.yml
CHANGED
@@ -277,6 +277,9 @@ components:
|
|
277
277
|
type: array
|
278
278
|
items:
|
279
279
|
$ref: "#/components/schemas/DescriptiveValue"
|
280
|
+
valueAt:
|
281
|
+
description: URL or other pointer to the location of the contributor information.
|
282
|
+
type: string
|
280
283
|
Description:
|
281
284
|
type: object
|
282
285
|
additionalProperties: false
|
@@ -348,6 +351,9 @@ components:
|
|
348
351
|
$ref: "#/components/schemas/DescriptiveValue"
|
349
352
|
adminMetadata:
|
350
353
|
$ref: "#/components/schemas/DescriptiveAdminMetadata"
|
354
|
+
valueAt:
|
355
|
+
description: URL or other pointer to the location of the resource description.
|
356
|
+
type: string
|
351
357
|
required:
|
352
358
|
- title
|
353
359
|
DescriptiveAccessMetadata:
|
@@ -480,6 +486,9 @@ components:
|
|
480
486
|
$ref: "#/components/schemas/DescriptiveValue"
|
481
487
|
valueLanguage:
|
482
488
|
$ref: "#/components/schemas/DescriptiveValueLanguage"
|
489
|
+
valueAt:
|
490
|
+
description: URL or other pointer to the location of the value of the descriptive element.
|
491
|
+
type: string
|
483
492
|
DescriptiveGeographicMetadata:
|
484
493
|
description: Value model for mods geographic extension metadata
|
485
494
|
type: object
|
@@ -957,6 +966,9 @@ components:
|
|
957
966
|
value:
|
958
967
|
description: Value of the descriptive element.
|
959
968
|
type: string
|
969
|
+
valueAt:
|
970
|
+
description: URL or other pointer to the location of the language information.
|
971
|
+
type: string
|
960
972
|
valueLanguage:
|
961
973
|
# description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
962
974
|
$ref: "#/components/schemas/DescriptiveValueLanguage"
|
@@ -1064,6 +1076,9 @@ components:
|
|
1064
1076
|
version:
|
1065
1077
|
description: The version of the related resource.
|
1066
1078
|
type: string
|
1079
|
+
valueAt:
|
1080
|
+
description: URL or other pointer to the location of the related resource information.
|
1081
|
+
type: string
|
1067
1082
|
ReleaseTag:
|
1068
1083
|
description: A tag that indicates the item or collection should be released.
|
1069
1084
|
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.46.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: 2021-01
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|