cocina-models 0.52.0 → 0.53.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a9f53ca8dbbb3649b0dad155b0ad42fa6901f3c9b7a7082ef1571197b006b6e
4
- data.tar.gz: 806294c0697f580c59beb6d8ced0e7b738c843576621c4c60ffb29632305e09b
3
+ metadata.gz: 328b1cc6267ee00ff250c1a255e1639cd99ee687e31ef1eb3644bae1b2b32435
4
+ data.tar.gz: 0131a0371050510c23a902c5e5dc14c848bb828b00bc3408bd74757c258d4642
5
5
  SHA512:
6
- metadata.gz: 8047d6f2a4d16f0c8269440d3ba6db3e616c4cf93c1a7071d62e70c40614f60740f724c03351d579f009b0957e0a658f5bf6a10ef5f256e00621e615f31991c0
7
- data.tar.gz: ebeb2ef783b0ada2f5e23dc181a28ed07cf03be4262917cab39c163179314bf35c255c656d65d02c7cc6b05c7a680789a7d8ec2bcf29ce7c0cd46290417fd76a
6
+ metadata.gz: 98649a23bc16e020e6b8fff14d2ecd86978843ddd113aaafb6857f0dd525c735dc46522a71a3747bc3ac56018578dd1514777ffa8bfb7fcfd965f8fcd8b51f16
7
+ data.tar.gz: 40508d78201cc8438abea8f5dfcdd04a013df6874bc788d31eb380fd135476defe3643eda79c908c5fdaac6102b0e079c2d779cab976e6262479d6e30bfc4068
@@ -3,17 +3,6 @@
3
3
  module Cocina
4
4
  module Models
5
5
  class DescriptiveParallelEvent < Struct
6
- # Code representing the standard or encoding.
7
- attribute :code, Types::Strict::String.meta(omittable: true)
8
- # URI for the standard or encoding.
9
- attribute :uri, Types::Strict::String.meta(omittable: true)
10
- # String describing the standard or encoding.
11
- attribute :value, Types::Strict::String.meta(omittable: true)
12
- attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
13
- # The version of the standard or encoding.
14
- attribute :version, Types::Strict::String.meta(omittable: true)
15
- attribute :source, Source.optional.meta(omittable: true)
16
- attribute :valueScript, Standard.optional.meta(omittable: true)
17
6
  attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
18
7
  # Description of the event (creation, publication, etc.).
19
8
  attribute :type, Types::Strict::String.meta(omittable: true)
@@ -23,6 +12,8 @@ module Cocina
23
12
  attribute :contributor, Types::Strict::Array.of(Contributor).meta(omittable: true)
24
13
  attribute :location, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
25
14
  attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
15
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
16
+ attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
26
17
  end
27
18
  end
28
19
  end
@@ -4,17 +4,6 @@ module Cocina
4
4
  module Models
5
5
  class Event < Struct
6
6
  attribute :structuredValue, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
7
- # Code representing the standard or encoding.
8
- attribute :code, Types::Strict::String.meta(omittable: true)
9
- # URI for the standard or encoding.
10
- attribute :uri, Types::Strict::String.meta(omittable: true)
11
- # String describing the standard or encoding.
12
- attribute :value, Types::Strict::String.meta(omittable: true)
13
- attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
14
- # The version of the standard or encoding.
15
- attribute :version, Types::Strict::String.meta(omittable: true)
16
- attribute :source, Source.optional.meta(omittable: true)
17
- attribute :valueScript, Standard.optional.meta(omittable: true)
18
7
  # Description of the event (creation, publication, etc.).
19
8
  attribute :type, Types::Strict::String.meta(omittable: true)
20
9
  # The preferred display label to use for the event in access systems.
@@ -23,6 +12,8 @@ module Cocina
23
12
  attribute :contributor, Types::Strict::Array.of(Contributor).meta(omittable: true)
24
13
  attribute :location, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
25
14
  attribute :identifier, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
15
+ attribute :note, Types::Strict::Array.of(DescriptiveValue).meta(omittable: true)
16
+ attribute :valueLanguage, DescriptiveValueLanguage.optional.meta(omittable: true)
26
17
  attribute :parallelEvent, Types::Strict::Array.of(DescriptiveParallelEvent).meta(omittable: true)
27
18
  end
28
19
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.52.0'
5
+ VERSION = '0.53.0'
6
6
  end
7
7
  end
data/openapi.yml CHANGED
@@ -581,7 +581,6 @@ components:
581
581
  type: object
582
582
  additionalProperties: false
583
583
  allOf:
584
- - $ref: "#/components/schemas/DescriptiveValueLanguage"
585
584
  - $ref: "#/components/schemas/DescriptiveStructuredValue"
586
585
  - type: object
587
586
  additionalProperties: false
@@ -617,6 +616,9 @@ components:
617
616
  type: array
618
617
  items:
619
618
  $ref: "#/components/schemas/DescriptiveValue"
619
+ valueLanguage:
620
+ # description: Language of the descriptive element value
621
+ $ref: "#/components/schemas/DescriptiveValueLanguage"
620
622
  DescriptiveParallelValue:
621
623
  description: Value model for multiple representations of the same information (e.g. in different languages).
622
624
  type: object
@@ -654,27 +656,6 @@ components:
654
656
  $ref: '#/components/schemas/Standard'
655
657
  # description: An alphabet or other notation used to represent a
656
658
  # language or other symbolic system of the descriptive element value.
657
- Title:
658
- type: object
659
- additionalProperties: false
660
- allOf:
661
- - $ref: "#/components/schemas/DescriptiveValue"
662
- - anyOf:
663
- - type: object
664
- required:
665
- - value
666
- - type: object
667
- required:
668
- - structuredValue
669
- - type: object
670
- required:
671
- - parallelValue
672
- - type: object
673
- required:
674
- - groupedValue
675
- - type: object
676
- required:
677
- - valueAt
678
659
  DRO:
679
660
  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.
680
661
  type: object
@@ -839,7 +820,6 @@ components:
839
820
  additionalProperties: false
840
821
  allOf:
841
822
  - $ref: "#/components/schemas/DescriptiveStructuredValue"
842
- - $ref: "#/components/schemas/DescriptiveValueLanguage"
843
823
  - type: object
844
824
  additionalProperties: false
845
825
  properties:
@@ -874,6 +854,9 @@ components:
874
854
  type: array
875
855
  items:
876
856
  $ref: "#/components/schemas/DescriptiveValue"
857
+ valueLanguage:
858
+ # description: Language of the descriptive element value
859
+ $ref: "#/components/schemas/DescriptiveValueLanguage"
877
860
  parallelEvent:
878
861
  description: For multiple representations of information about the same event (e.g. in different languages)
879
862
  type: array
@@ -1517,3 +1500,24 @@ components:
1517
1500
  type: string
1518
1501
  source:
1519
1502
  $ref: "#/components/schemas/Source"
1503
+ Title:
1504
+ type: object
1505
+ additionalProperties: false
1506
+ allOf:
1507
+ - $ref: "#/components/schemas/DescriptiveValue"
1508
+ - anyOf:
1509
+ - type: object
1510
+ required:
1511
+ - value
1512
+ - type: object
1513
+ required:
1514
+ - structuredValue
1515
+ - type: object
1516
+ required:
1517
+ - parallelValue
1518
+ - type: object
1519
+ required:
1520
+ - groupedValue
1521
+ - type: object
1522
+ required:
1523
+ - valueAt
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocina-models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne