cocina-models 0.46.0 → 0.47.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/lib/cocina/models/descriptive_basic_value.rb +1 -0
- data/lib/cocina/models/descriptive_grouped_value.rb +9 -0
- data/lib/cocina/models/descriptive_value.rb +1 -0
- data/lib/cocina/models/language.rb +1 -0
- data/lib/cocina/models/title.rb +1 -0
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +21 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3327b79d2b536ec110ce95f9e87b83b3626649399d69f88b8c77b80dc17e3b5
|
4
|
+
data.tar.gz: 25dba9e2585c00101526e0e0a99e274f8405e328be47cf4bfd04d9333f22926b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4248e5fce98d78fa06872976aef5d585c5d289cd2efc0d07b5d801c9a8f4d03afab99d71bf1d73f89f6a39865f1a61883d29ad25bf96f5fba825379fc3a2b71
|
7
|
+
data.tar.gz: ccbea259db129c7e189677cab0efc6a5ccea8ccab9d5037d2c2783bfd90379a9678776502d758aaebf5ea15640a836c3704c4b7c05f9eb9aa8d80eb831671886
|
@@ -5,6 +5,7 @@ module Cocina
|
|
5
5
|
class DescriptiveBasicValue < Struct
|
6
6
|
attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
7
7
|
attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
|
+
attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
9
|
# String or integer value of the descriptive element.
|
9
10
|
attribute :value, Types::Nominal::Any.meta(omittable: true)
|
10
11
|
# Type of value provided by the descriptive element.
|
@@ -5,6 +5,7 @@ module Cocina
|
|
5
5
|
class DescriptiveValue < Struct
|
6
6
|
attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
7
7
|
attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
|
+
attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
9
|
# String or integer value of the descriptive element.
|
9
10
|
attribute :value, Types::Nominal::Any.meta(omittable: true)
|
10
11
|
# Type of value provided by the descriptive element.
|
@@ -9,6 +9,7 @@ module Cocina
|
|
9
9
|
# The preferred display label to use for the descriptive element in access systems.
|
10
10
|
attribute :displayLabel, Types::Strict::String.meta(omittable: true)
|
11
11
|
attribute :encoding, Standard.optional.meta(omittable: true)
|
12
|
+
attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
12
13
|
attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
13
14
|
attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
14
15
|
# present for mapping to additional schemas in the future and for consistency but not otherwise used
|
data/lib/cocina/models/title.rb
CHANGED
@@ -5,6 +5,7 @@ module Cocina
|
|
5
5
|
class Title < Struct
|
6
6
|
attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
7
7
|
attribute :parallelValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
|
+
attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
|
8
9
|
# String or integer value of the descriptive element.
|
9
10
|
attribute :value, Types::Nominal::Any.meta(omittable: true)
|
10
11
|
# Type of value provided by the descriptive element.
|
data/openapi.yml
CHANGED
@@ -435,6 +435,7 @@ components:
|
|
435
435
|
allOf:
|
436
436
|
- $ref: "#/components/schemas/DescriptiveStructuredValue"
|
437
437
|
- $ref: "#/components/schemas/DescriptiveParallelValue"
|
438
|
+
- $ref: "#/components/schemas/DescriptiveGroupedValue"
|
438
439
|
- type: object
|
439
440
|
additionalProperties: false
|
440
441
|
properties:
|
@@ -503,6 +504,15 @@ components:
|
|
503
504
|
type: array
|
504
505
|
items:
|
505
506
|
$ref: "#/components/schemas/DescriptiveValue"
|
507
|
+
DescriptiveGroupedValue:
|
508
|
+
description: Value model for a set of descriptive elements grouped together in an unstructured way.
|
509
|
+
type: object
|
510
|
+
additionalProperties: false
|
511
|
+
properties:
|
512
|
+
groupedValue:
|
513
|
+
type: array
|
514
|
+
items:
|
515
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
506
516
|
DescriptiveParallelValue:
|
507
517
|
description: Value model for multiple representations of the same information (e.g. in different languages).
|
508
518
|
type: object
|
@@ -555,6 +565,12 @@ components:
|
|
555
565
|
- type: object
|
556
566
|
required:
|
557
567
|
- parallelValue
|
568
|
+
- type: object
|
569
|
+
required:
|
570
|
+
- groupedValue
|
571
|
+
- type: object
|
572
|
+
required:
|
573
|
+
- valueAt
|
558
574
|
DRO:
|
559
575
|
description: Domain-defined abstraction of a 'work'. Digital Repository Objects' abstraction is describable for our domain’s purposes, i.e. for management needs within our system.
|
560
576
|
type: object
|
@@ -927,6 +943,11 @@ components:
|
|
927
943
|
encoding:
|
928
944
|
# description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
929
945
|
$ref: "#/components/schemas/Standard"
|
946
|
+
groupedValue:
|
947
|
+
description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
948
|
+
type: array
|
949
|
+
items:
|
950
|
+
$ref: "#/components/schemas/DescriptiveValue"
|
930
951
|
note:
|
931
952
|
description: present for mapping to additional schemas in the future and for consistency but not otherwise used
|
932
953
|
type: array
|
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.47.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-02-
|
11
|
+
date: 2021-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -268,6 +268,7 @@ files:
|
|
268
268
|
- lib/cocina/models/descriptive_admin_metadata.rb
|
269
269
|
- lib/cocina/models/descriptive_basic_value.rb
|
270
270
|
- lib/cocina/models/descriptive_geographic_metadata.rb
|
271
|
+
- lib/cocina/models/descriptive_grouped_value.rb
|
271
272
|
- lib/cocina/models/descriptive_parallel_value.rb
|
272
273
|
- lib/cocina/models/descriptive_structured_value.rb
|
273
274
|
- lib/cocina/models/descriptive_value.rb
|