cocina-models 0.46.0 → 0.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8389369c0fe410193de14e970c41f8caf0897529d9f137f12b402c69ae0dfe73
4
- data.tar.gz: e1f670a2f769c2220d7c6e40afe5757fd269649594ed9e1743c715ccb501b24e
3
+ metadata.gz: b3327b79d2b536ec110ce95f9e87b83b3626649399d69f88b8c77b80dc17e3b5
4
+ data.tar.gz: 25dba9e2585c00101526e0e0a99e274f8405e328be47cf4bfd04d9333f22926b
5
5
  SHA512:
6
- metadata.gz: a5e3eb27b903fd4050db36645f74427087a58dbfdaca9827400872977025fecb80797144a430b2b05ec06d426614fa7c81f9cc9bd4b17709bfb941f71b9ca403
7
- data.tar.gz: a1b4edb10305328ee9dd232fd76ce2276f3a265b483be5e754f99f8723a15118c5da56ae25b10b5afa6672875ec25aaf2e54e078b037db8f1509c68006f162d2
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.
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Cocina
4
+ module Models
5
+ class DescriptiveGroupedValue < Struct
6
+ attribute :groupedValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
7
+ end
8
+ end
9
+ end
@@ -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
@@ -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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.46.0'
5
+ VERSION = '0.47.0'
6
6
  end
7
7
  end
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.46.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-01 00:00:00.000000000 Z
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