cocina-models 0.54.0.beta.1 → 0.54.0.beta.2
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3647bdfe1efdf9e51abdd4136d455eac3962cbd38a1d29fd32aa037ca9c8481
|
4
|
+
data.tar.gz: c5ddfe3f1eab351ac6eb0fe4b20ecb9b6597397d00600dcd1fdce2ebff4bf86b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b6e644d13d139fcb672b66979d5ba55e8031e06fe691e0beedd3105180f948133f8c37e1d92ed496934fa4947ac4c623c2e6fa3b1474043e9fb7691e125c2d0
|
7
|
+
data.tar.gz: df4b09ffd691bc52f6fda5d90dd0ae99510261cd73c7017fba9aa3f665643efe8699ae0b2e55e5e30281318391079847e2059d5af29471c4dd2b23fa09477aed
|
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.54.0.beta.
|
4
|
+
version: 0.54.0.beta.2
|
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
|