cocina-models 0.65.0 → 0.65.1

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: 8067413d8a77fa81852ba259290d705786b6a48cd4a911238b3f807e695084a2
4
- data.tar.gz: 6a1922fbb79102ca049e6e60cba1095e3959091ea5ee89d1a93c7befd154701b
3
+ metadata.gz: 896e1abaec6ec5cd04b1d3279e30723f0308ee96131656f8197a522fd910ff34
4
+ data.tar.gz: e01d1e2ca3455bacd76c8fd95f4a07b2444983a356e338d03950fc4025acd40c
5
5
  SHA512:
6
- metadata.gz: ba8463f12ef7fb60ba49bbd91a1537b80488044c734baf059ae255f866f57a857e3270defedc2dd038683bf6438e78c575855a68617d9f5d3153c8be3ec217dc
7
- data.tar.gz: f53a8118686874d73832f3a5b3f55c7f2cba725f0ea459f2b06f4b01e3c148b7de31fe2c31206e99d4fc39b100776f0fa5d5dd51e96cee8fc8e5bab3e3be6fba
6
+ metadata.gz: b82cf62f83fe5d2854fb618df552e487476be6ebc0d0926978e56de62cfae9df9d19eeaceddf506eeb99e84037d4561353563a83a1b93e11ca1feebbe377c2ac
7
+ data.tar.gz: 2b479b5e1a73da2e3df558d515d403862312d81b5feb5faf62f1931065b6b074a80961a0a8b8c5492b505482f3adbe3d64f850c96d68c3a296faccf6ce3d6627
@@ -4,7 +4,7 @@ module Cocina
4
4
  module Models
5
5
  class Identification < Struct
6
6
  # A barcode
7
- attribute :barcode, Types::Nominal::Any.optional.meta(omittable: true)
7
+ attribute :barcode, Types::Nominal::Any.meta(omittable: true)
8
8
  attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).default([].freeze)
9
9
  # Digital Object Identifier (https://www.doi.org)
10
10
  # example: 10.25740/bc123df4567
@@ -4,7 +4,7 @@ module Cocina
4
4
  module Models
5
5
  class RequestIdentification < Struct
6
6
  # A barcode
7
- attribute :barcode, Types::Nominal::Any.optional.meta(omittable: true)
7
+ attribute :barcode, Types::Nominal::Any.meta(omittable: true)
8
8
  attribute :catalogLinks, Types::Strict::Array.of(CatalogLink).default([].freeze)
9
9
  # Unique identifier in some other system. This is because a large proportion of what is deposited in SDR, historically and currently, are representations of objects that are also represented in other systems. For example, digitized paper and A/V collections have physical manifestations, and those physical objects are managed in systems that have their own identifiers. Similarly, books have barcodes, archival materials have collection numbers and physical locations, etc. The sourceId allows determining if an item has been deposited before and where to look for the original item if you're looking at its SDR representation. The format is: "namespace:identifier"
10
10
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.65.0'
5
+ VERSION = '0.65.1'
6
6
  end
7
7
  end
data/openapi.yml CHANGED
@@ -314,7 +314,6 @@ components:
314
314
  $ref: "#/components/schemas/DescriptiveBasicValue"
315
315
  Barcode:
316
316
  description: 'A barcode'
317
- nullable: true
318
317
  oneOf:
319
318
  - $ref: '#/components/schemas/BusinessBarcode'
320
319
  - $ref: '#/components/schemas/LaneMedicalBarcode'
@@ -1845,6 +1844,7 @@ components:
1845
1844
  StandardBarcode:
1846
1845
  description: The standard barcode associated with a DRO object, prefixed with 36105
1847
1846
  type: string
1847
+ nullable: true
1848
1848
  pattern: '^36105[0-9]{9}$'
1849
1849
  example: '36105010362304'
1850
1850
  Title:
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.65.0
4
+ version: 0.65.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-08 00:00:00.000000000 Z
11
+ date: 2022-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport