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 +4 -4
- data/lib/cocina/models/collection.rb +4 -0
- data/lib/cocina/models/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a19df9781f8b743413082ed6a6e75bd4f538840ea8fb8395500135d35b781b4d
|
4
|
+
data.tar.gz: 30801452b60b5a15dfac691f03eae58ce9d7c3d79fec0f0428ade63667eea512
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|