cocina-models 0.53.0 → 0.53.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/cocina/models/access_role.rb +1 -1
- data/lib/cocina/models/version.rb +1 -1
- data/openapi.yml +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22b0ca5c4990804a27c1325b95d329f8e2bd807004f9478735aa22003024ec70
|
4
|
+
data.tar.gz: 3dce580621ecbf4ee7d5d04977373ef67e4c91d39aafaf3ac8a4ca0f6a8148fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 752315b42f3ec4f316a53a8660f5fdff8b439771efada674d96cde94a6b853e5ef2468c50395a1afa255a22c685f54c08cad14655ea8d7b477b162af8f3d1405
|
7
|
+
data.tar.gz: ac22bccd06f161a69306dfc31bafe6602b638a57837019566570b4f16403098c7a25cdc1de8baa095ff0d8fa1b5cbd75d095d30b2973c36269d2733e02eabc2c
|
data/README.md
CHANGED
@@ -66,3 +66,12 @@ Once the above listed gems are updated all the following services that use cocin
|
|
66
66
|
If you are using this gem in an application that has an API that accepts Cocina models (e.g., SDR API, Dor-Services-App), make sure that the `openapi.yml` for the application includes the schemas that match the schemas in this `openapi.yml`.
|
67
67
|
|
68
68
|
This can be accomplished by cutting and pasting these schemas. By convention, these schemas are listed first in the `openapi.yml` of the associated projects, followed by the application-specific schemas.
|
69
|
+
|
70
|
+
### Usage conventions
|
71
|
+
|
72
|
+
The following are the recommended naming conventions for code using Cocina models:
|
73
|
+
|
74
|
+
* cocina_item: Cocina::Models::DRO instance
|
75
|
+
* cocina_admin_policy: Cocina::Models::AdminPolicy instance
|
76
|
+
* cocina_collection: Cocina::Models::Collection instance
|
77
|
+
* cocina_object: Cocina::Models::DRO or Cocina::Models::AdminPolicy or Cocina::Models::Collection instance
|
@@ -4,7 +4,7 @@ module Cocina
|
|
4
4
|
module Models
|
5
5
|
class AccessRole < Struct
|
6
6
|
# Name of role
|
7
|
-
attribute :name, Types::Strict::String.enum('
|
7
|
+
attribute :name, Types::Strict::String.enum('dor-apo-creator', 'dor-apo-depositor', 'dor-apo-manager', 'dor-apo-metadata', 'dor-apo-reviewer', 'dor-apo-viewer', 'sdr-administrator', 'sdr-viewer', 'hydrus-collection-creator', 'hydrus-collection-manager', 'hydrus-collection-depositor', 'hydrus-collection-item-depositor', 'hydrus-collection-reviewer', 'hydrus-collection-viewer')
|
8
8
|
attribute :members, Types::Strict::Array.of(AccessRoleMember).default([].freeze)
|
9
9
|
end
|
10
10
|
end
|
data/openapi.yml
CHANGED
@@ -127,9 +127,14 @@ components:
|
|
127
127
|
description: Name of role
|
128
128
|
type: string
|
129
129
|
enum:
|
130
|
+
- 'dor-apo-creator'
|
131
|
+
- 'dor-apo-depositor'
|
132
|
+
- 'dor-apo-manager'
|
133
|
+
- 'dor-apo-metadata'
|
134
|
+
- 'dor-apo-reviewer'
|
135
|
+
- 'dor-apo-viewer'
|
130
136
|
- 'sdr-administrator'
|
131
137
|
- 'sdr-viewer'
|
132
|
-
- 'dor-apo-manager'
|
133
138
|
- 'hydrus-collection-creator'
|
134
139
|
- 'hydrus-collection-manager'
|
135
140
|
- 'hydrus-collection-depositor'
|
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.53.
|
4
|
+
version: 0.53.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: 2021-03-
|
11
|
+
date: 2021-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -329,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
329
329
|
- !ruby/object:Gem::Version
|
330
330
|
version: '0'
|
331
331
|
requirements: []
|
332
|
-
rubygems_version: 3.1.
|
332
|
+
rubygems_version: 3.1.4
|
333
333
|
signing_key:
|
334
334
|
specification_version: 4
|
335
335
|
summary: Data models for the SDR
|