cocina-models 0.13.0 → 0.14.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: 8e0f86ea43364f19ac571ed53c9ebd0dfd610ff70a16f8e96613f8e8315fbf45
4
- data.tar.gz: 625a041c6b78df070094a61323d46397bae562f6d84d58f3858e1daa60a7f3be
3
+ metadata.gz: a19df9781f8b743413082ed6a6e75bd4f538840ea8fb8395500135d35b781b4d
4
+ data.tar.gz: 30801452b60b5a15dfac691f03eae58ce9d7c3d79fec0f0428ade63667eea512
5
5
  SHA512:
6
- metadata.gz: a69f97500ec76b11e9f87be25f1986858081aa6596c06ad3f2db20edd6e6071cd20fd3aa3268ca1b759168eaa8d18d39ef022576ad3bd34bf1d7a90a1e263f8a
7
- data.tar.gz: c5881f14a057c3b9f1912c0417b297889b410cd3184f6fef7d24eef0ad46484f2a27a9fae493caa3549ca6bee3804dcddf9527e9ba2aeeadd61a6389006e50e2
6
+ metadata.gz: 2e78a6de3d5c22deb8c40e2a644960a934d478477d6a0d2cf7b416b9348f1ff547bc979288dd77766a1d1371fb0fe2f4a68e820f5413dc9f0e68072a6da3615e
7
+ data.tar.gz: df62033a3fc51f7fe72e9e1d6c86f04fc11b5136aa7cab3d0a265a5d3c86a3ee6572b91483c6ad45cedc632e4791c432a28687c83f7f7c2ae4b158bc0ba911e0
@@ -27,10 +27,14 @@ module Cocina
27
27
  # Subschema for administrative concerns
28
28
  class Administrative < Dry::Struct
29
29
  attribute :releaseTags, Types::Strict::Array.of(ReleaseTag).meta(omittable: true)
30
+ # Allowing hasAdminPolicy to be omittable for now (until rolled out to consumers),
31
+ # but I think it's actually required for every DRO
32
+ attribute :hasAdminPolicy, Types::Coercible::String.optional.default(nil)
30
33
 
31
34
  def self.from_dynamic(dyn)
32
35
  params = {}
33
36
  params[:releaseTags] = dyn['releaseTags'].map { |rt| ReleaseTag.from_dynamic(rt) } if dyn['releaseTags']
37
+ params[:hasAdminPolicy] = dyn['hasAdminPolicy']
34
38
  Administrative.new(params)
35
39
  end
36
40
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Cocina
4
4
  module Models
5
- VERSION = '0.13.0'
5
+ VERSION = '0.14.0'
6
6
  end
7
7
  end
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.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne