cocina-models 0.67.1 → 0.69.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +12 -0
- data/README.md +19 -0
- data/cocina-models.gemspec +1 -0
- data/lib/cocina/generator/generator.rb +15 -12
- data/lib/cocina/generator/vocab.rb +46 -42
- data/lib/cocina/models/access.rb +3 -3
- data/lib/cocina/models/admin_policy.rb +1 -1
- data/lib/cocina/models/{admin_policy_default_access.rb → admin_policy_access_template.rb} +4 -4
- data/lib/cocina/models/admin_policy_administrative.rb +1 -1
- data/lib/cocina/models/administrative.rb +0 -3
- data/lib/cocina/models/citation_only_access.rb +3 -3
- data/lib/cocina/models/collection.rb +5 -5
- data/lib/cocina/models/collection_access.rb +1 -1
- data/lib/cocina/models/controlled_digital_lending_access.rb +3 -3
- data/lib/cocina/models/dark_access.rb +3 -3
- data/lib/cocina/models/dro.rb +15 -15
- data/lib/cocina/models/dro_access.rb +4 -4
- data/lib/cocina/models/dro_rights_description_builder.rb +67 -0
- data/lib/cocina/models/embargo.rb +3 -3
- data/lib/cocina/models/file.rb +1 -1
- data/lib/cocina/models/file_access.rb +3 -3
- data/lib/cocina/models/file_set.rb +16 -16
- data/lib/cocina/models/file_set_type.rb +25 -0
- data/lib/cocina/models/license.rb +10 -0
- data/lib/cocina/models/location_based_access.rb +3 -3
- data/lib/cocina/models/location_based_download_access.rb +3 -3
- data/lib/cocina/models/object_type.rb +31 -0
- data/lib/cocina/models/request_admin_policy.rb +1 -1
- data/lib/cocina/models/request_administrative.rb +14 -0
- data/lib/cocina/models/request_collection.rb +6 -6
- data/lib/cocina/models/request_dro.rb +16 -16
- data/lib/cocina/models/request_file.rb +1 -1
- data/lib/cocina/models/request_file_set.rb +16 -16
- data/lib/cocina/models/rights_description_builder.rb +81 -0
- data/lib/cocina/models/stanford_access.rb +3 -3
- data/lib/cocina/models/title_builder.rb +203 -0
- data/lib/cocina/models/version.rb +1 -1
- data/lib/cocina/models/vocabulary.rb +30 -0
- data/lib/cocina/models/world_access.rb +3 -3
- data/lib/cocina/models.rb +26 -7
- data/lib/cocina/rspec/matchers.rb +103 -0
- data/lib/cocina/rspec.rb +10 -0
- data/openapi.yml +132 -124
- metadata +31 -8
- data/lib/cocina/models/vocab.rb +0 -162
data/openapi.yml
CHANGED
@@ -174,11 +174,6 @@ components:
|
|
174
174
|
type: array
|
175
175
|
items:
|
176
176
|
$ref: '#/components/schemas/ReleaseTag'
|
177
|
-
partOfProject:
|
178
|
-
description: Administrative or Internal project this resource is a part of
|
179
|
-
example: Google Books
|
180
|
-
type: string
|
181
|
-
nullable: true
|
182
177
|
required:
|
183
178
|
- hasAdminPolicy
|
184
179
|
AdminPolicy:
|
@@ -190,7 +185,7 @@ components:
|
|
190
185
|
type:
|
191
186
|
type: string
|
192
187
|
enum:
|
193
|
-
- '
|
188
|
+
- 'https://cocina.sul.stanford.edu/models/admin_policy'
|
194
189
|
externalIdentifier:
|
195
190
|
$ref: '#/components/schemas/Druid'
|
196
191
|
label:
|
@@ -213,8 +208,8 @@ components:
|
|
213
208
|
type: object
|
214
209
|
additionalProperties: false
|
215
210
|
properties:
|
216
|
-
|
217
|
-
$ref: '#/components/schemas/
|
211
|
+
accessTemplate:
|
212
|
+
$ref: '#/components/schemas/AdminPolicyAccessTemplate'
|
218
213
|
registrationWorkflow:
|
219
214
|
description: When you register an item with this admin policy, these are the workflows that are available.
|
220
215
|
type: array
|
@@ -241,13 +236,13 @@ components:
|
|
241
236
|
required:
|
242
237
|
- hasAdminPolicy
|
243
238
|
- hasAgreement
|
244
|
-
-
|
245
|
-
|
246
|
-
description: 'Provides the
|
239
|
+
- accessTemplate
|
240
|
+
AdminPolicyAccessTemplate:
|
241
|
+
description: 'Provides the template of access settings that is copied to the items goverend by an AdminPolicy. This is almost the same as DROAccess, but it provides no defaults and has no embargo.'
|
247
242
|
type: object
|
248
243
|
additionalProperties: false
|
249
244
|
properties:
|
250
|
-
|
245
|
+
view:
|
251
246
|
type: string
|
252
247
|
enum:
|
253
248
|
- 'world'
|
@@ -275,11 +270,12 @@ components:
|
|
275
270
|
- 'stanford'
|
276
271
|
- 'location-based'
|
277
272
|
- 'none'
|
278
|
-
|
273
|
+
location:
|
279
274
|
description: >
|
280
|
-
If access is "location-based",
|
281
|
-
This is used in the transition from
|
282
|
-
|
275
|
+
If access or download is "location-based", this indicates which
|
276
|
+
location should have access. This is used in the transition from
|
277
|
+
Fedora as a way to set a default location at registration that is
|
278
|
+
copied down to all the files.
|
283
279
|
|
284
280
|
type: string
|
285
281
|
nullable: true
|
@@ -349,7 +345,7 @@ components:
|
|
349
345
|
CitationOnlyAccess:
|
350
346
|
type: object
|
351
347
|
properties:
|
352
|
-
|
348
|
+
view:
|
353
349
|
description: Access level.
|
354
350
|
type: string
|
355
351
|
enum:
|
@@ -359,8 +355,8 @@ components:
|
|
359
355
|
type: string
|
360
356
|
enum:
|
361
357
|
- 'none'
|
362
|
-
|
363
|
-
description:
|
358
|
+
location:
|
359
|
+
description: Not used for this access type, must be null.
|
364
360
|
type: string
|
365
361
|
nullable: true
|
366
362
|
enum:
|
@@ -371,7 +367,7 @@ components:
|
|
371
367
|
enum:
|
372
368
|
- false
|
373
369
|
required:
|
374
|
-
-
|
370
|
+
- view
|
375
371
|
- download
|
376
372
|
CocinaVersion:
|
377
373
|
description: The version of Cocina with which this object conforms.
|
@@ -389,11 +385,11 @@ components:
|
|
389
385
|
description: The content type of the Collection. Selected from an established set of values.
|
390
386
|
type: string
|
391
387
|
enum:
|
392
|
-
- '
|
393
|
-
- '
|
394
|
-
- '
|
395
|
-
- '
|
396
|
-
- '
|
388
|
+
- 'https://cocina.sul.stanford.edu/models/collection'
|
389
|
+
- 'https://cocina.sul.stanford.edu/models/curated-collection'
|
390
|
+
- 'https://cocina.sul.stanford.edu/models/user-collection'
|
391
|
+
- 'https://cocina.sul.stanford.edu/models/exhibit'
|
392
|
+
- 'https://cocina.sul.stanford.edu/models/series'
|
397
393
|
externalIdentifier:
|
398
394
|
$ref: '#/components/schemas/Druid'
|
399
395
|
label:
|
@@ -423,7 +419,7 @@ components:
|
|
423
419
|
type: object
|
424
420
|
additionalProperties: false
|
425
421
|
properties:
|
426
|
-
|
422
|
+
view:
|
427
423
|
description: Access level
|
428
424
|
type: string
|
429
425
|
enum:
|
@@ -499,7 +495,7 @@ components:
|
|
499
495
|
ControlledDigitalLendingAccess:
|
500
496
|
type: object
|
501
497
|
properties:
|
502
|
-
|
498
|
+
view:
|
503
499
|
description: Access level.
|
504
500
|
type: string
|
505
501
|
enum:
|
@@ -509,8 +505,8 @@ components:
|
|
509
505
|
type: string
|
510
506
|
enum:
|
511
507
|
- none
|
512
|
-
|
513
|
-
description:
|
508
|
+
location:
|
509
|
+
description: Not used for this access type, must be null.
|
514
510
|
type: string
|
515
511
|
nullable: true
|
516
512
|
enum:
|
@@ -520,13 +516,13 @@ components:
|
|
520
516
|
type: boolean
|
521
517
|
default: false
|
522
518
|
required:
|
523
|
-
-
|
519
|
+
- view
|
524
520
|
- download
|
525
521
|
- controlledDigitalLending
|
526
522
|
DarkAccess:
|
527
523
|
type: object
|
528
524
|
properties:
|
529
|
-
|
525
|
+
view:
|
530
526
|
description: Access level.
|
531
527
|
type: string
|
532
528
|
default: 'dark'
|
@@ -538,8 +534,8 @@ components:
|
|
538
534
|
default: 'none'
|
539
535
|
enum:
|
540
536
|
- 'none'
|
541
|
-
|
542
|
-
description:
|
537
|
+
location:
|
538
|
+
description: Not used for this access type, must be null.
|
543
539
|
type: string
|
544
540
|
nullable: true
|
545
541
|
default: null
|
@@ -854,21 +850,21 @@ components:
|
|
854
850
|
description: The content type of the DRO. Selected from an established set of values.
|
855
851
|
type: string
|
856
852
|
enum:
|
857
|
-
- '
|
858
|
-
- '
|
859
|
-
- '
|
860
|
-
- '
|
861
|
-
- '
|
862
|
-
- '
|
863
|
-
- '
|
864
|
-
- '
|
865
|
-
- '
|
866
|
-
- '
|
867
|
-
- '
|
868
|
-
- '
|
869
|
-
- '
|
870
|
-
- '
|
871
|
-
- '
|
853
|
+
- 'https://cocina.sul.stanford.edu/models/object'
|
854
|
+
- 'https://cocina.sul.stanford.edu/models/3d'
|
855
|
+
- 'https://cocina.sul.stanford.edu/models/agreement'
|
856
|
+
- 'https://cocina.sul.stanford.edu/models/book'
|
857
|
+
- 'https://cocina.sul.stanford.edu/models/document'
|
858
|
+
- 'https://cocina.sul.stanford.edu/models/geo'
|
859
|
+
- 'https://cocina.sul.stanford.edu/models/image'
|
860
|
+
- 'https://cocina.sul.stanford.edu/models/page'
|
861
|
+
- 'https://cocina.sul.stanford.edu/models/photograph'
|
862
|
+
- 'https://cocina.sul.stanford.edu/models/manuscript'
|
863
|
+
- 'https://cocina.sul.stanford.edu/models/map'
|
864
|
+
- 'https://cocina.sul.stanford.edu/models/media'
|
865
|
+
- 'https://cocina.sul.stanford.edu/models/track'
|
866
|
+
- 'https://cocina.sul.stanford.edu/models/webarchive-binary'
|
867
|
+
- 'https://cocina.sul.stanford.edu/models/webarchive-seed'
|
872
868
|
externalIdentifier:
|
873
869
|
$ref: '#/components/schemas/Druid'
|
874
870
|
label:
|
@@ -951,7 +947,7 @@ components:
|
|
951
947
|
- 'https://creativecommons.org/licenses/by-nc/3.0/legalcode'
|
952
948
|
- 'https://creativecommons.org/licenses/by-nc-sa/3.0/legalcode'
|
953
949
|
- 'https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode'
|
954
|
-
- '
|
950
|
+
- 'https://cocina.sul.stanford.edu/licenses/none' # Only used in some legacy ETDs and not actually permitted per the Project Chimera docs.
|
955
951
|
DROStructural:
|
956
952
|
description: Structural metadata
|
957
953
|
type: object
|
@@ -1052,7 +1048,7 @@ components:
|
|
1052
1048
|
description: The content type of the File.
|
1053
1049
|
type: string
|
1054
1050
|
enum:
|
1055
|
-
- '
|
1051
|
+
- 'https://cocina.sul.stanford.edu/models/file'
|
1056
1052
|
externalIdentifier:
|
1057
1053
|
description: Identifier for the resource within the SDR architecture but outside of the repository. UUID. Constant across resource versions. What clients will use calling the repository.
|
1058
1054
|
type: string
|
@@ -1131,22 +1127,22 @@ components:
|
|
1131
1127
|
description: The content type of the Fileset.
|
1132
1128
|
type: string
|
1133
1129
|
enum:
|
1134
|
-
- '
|
1135
|
-
- '
|
1136
|
-
- '
|
1137
|
-
- '
|
1138
|
-
- '
|
1139
|
-
- '
|
1140
|
-
- '
|
1141
|
-
- '
|
1142
|
-
- '
|
1143
|
-
- '
|
1144
|
-
- '
|
1145
|
-
- '
|
1146
|
-
- '
|
1147
|
-
- '
|
1148
|
-
- '
|
1149
|
-
- '
|
1130
|
+
- 'https://cocina.sul.stanford.edu/models/resources/audio'
|
1131
|
+
- 'https://cocina.sul.stanford.edu/models/resources/attachment'
|
1132
|
+
- 'https://cocina.sul.stanford.edu/models/resources/document'
|
1133
|
+
- 'https://cocina.sul.stanford.edu/models/resources/file'
|
1134
|
+
- 'https://cocina.sul.stanford.edu/models/resources/image'
|
1135
|
+
- 'https://cocina.sul.stanford.edu/models/resources/main-augmented'
|
1136
|
+
- 'https://cocina.sul.stanford.edu/models/resources/main-original'
|
1137
|
+
- 'https://cocina.sul.stanford.edu/models/resources/media'
|
1138
|
+
- 'https://cocina.sul.stanford.edu/models/resources/object'
|
1139
|
+
- 'https://cocina.sul.stanford.edu/models/resources/page'
|
1140
|
+
- 'https://cocina.sul.stanford.edu/models/resources/permissions'
|
1141
|
+
- 'https://cocina.sul.stanford.edu/models/resources/preview'
|
1142
|
+
- 'https://cocina.sul.stanford.edu/models/resources/supplement'
|
1143
|
+
- 'https://cocina.sul.stanford.edu/models/resources/3d'
|
1144
|
+
- 'https://cocina.sul.stanford.edu/models/resources/thumb'
|
1145
|
+
- 'https://cocina.sul.stanford.edu/models/resources/video'
|
1150
1146
|
externalIdentifier:
|
1151
1147
|
type: string
|
1152
1148
|
label:
|
@@ -1267,7 +1263,7 @@ components:
|
|
1267
1263
|
LocationBasedAccess:
|
1268
1264
|
type: object
|
1269
1265
|
properties:
|
1270
|
-
|
1266
|
+
view:
|
1271
1267
|
description: Access level.
|
1272
1268
|
type: string
|
1273
1269
|
enum:
|
@@ -1278,8 +1274,8 @@ components:
|
|
1278
1274
|
enum:
|
1279
1275
|
- location-based
|
1280
1276
|
- none
|
1281
|
-
|
1282
|
-
description: If access is "location-based", which location should have access.
|
1277
|
+
location:
|
1278
|
+
description: If access or download is "location-based", which location should have access.
|
1283
1279
|
type: string
|
1284
1280
|
enum:
|
1285
1281
|
- 'spec'
|
@@ -1294,13 +1290,13 @@ components:
|
|
1294
1290
|
enum:
|
1295
1291
|
- false
|
1296
1292
|
required:
|
1297
|
-
-
|
1293
|
+
- view
|
1298
1294
|
- download
|
1299
|
-
-
|
1295
|
+
- location
|
1300
1296
|
LocationBasedDownloadAccess:
|
1301
1297
|
type: object
|
1302
1298
|
properties:
|
1303
|
-
|
1299
|
+
view:
|
1304
1300
|
description: Access level.
|
1305
1301
|
type: string
|
1306
1302
|
enum:
|
@@ -1311,8 +1307,8 @@ components:
|
|
1311
1307
|
type: string
|
1312
1308
|
enum:
|
1313
1309
|
- location-based
|
1314
|
-
|
1315
|
-
description:
|
1310
|
+
location:
|
1311
|
+
description: Which location should have download access.
|
1316
1312
|
type: string
|
1317
1313
|
enum:
|
1318
1314
|
- 'spec'
|
@@ -1327,9 +1323,9 @@ components:
|
|
1327
1323
|
enum:
|
1328
1324
|
- false
|
1329
1325
|
required:
|
1330
|
-
-
|
1326
|
+
- view
|
1331
1327
|
- download
|
1332
|
-
-
|
1328
|
+
- location
|
1333
1329
|
MessageDigest:
|
1334
1330
|
description: The output of the message digest algorithm.
|
1335
1331
|
type: object
|
@@ -1469,6 +1465,18 @@ components:
|
|
1469
1465
|
example: Searchworks
|
1470
1466
|
release:
|
1471
1467
|
type: boolean
|
1468
|
+
RequestAdministrative:
|
1469
|
+
type: object
|
1470
|
+
additionalProperties: false
|
1471
|
+
allOf:
|
1472
|
+
- $ref: "#/components/schemas/Administrative"
|
1473
|
+
- type: object
|
1474
|
+
additionalProperties: false
|
1475
|
+
properties:
|
1476
|
+
partOfProject:
|
1477
|
+
description: Internal project this resource is a part of. This governs routing of messages about this object.
|
1478
|
+
example: Google Books
|
1479
|
+
type: string
|
1472
1480
|
RequestAdminPolicy:
|
1473
1481
|
description: Same as an AdminPolicy, but doesn't have an externalIdentifier as one will be created
|
1474
1482
|
type: object
|
@@ -1479,7 +1487,7 @@ components:
|
|
1479
1487
|
type:
|
1480
1488
|
type: string
|
1481
1489
|
enum:
|
1482
|
-
- '
|
1490
|
+
- 'https://cocina.sul.stanford.edu/models/admin_policy'
|
1483
1491
|
label:
|
1484
1492
|
type: string
|
1485
1493
|
version:
|
@@ -1507,11 +1515,11 @@ components:
|
|
1507
1515
|
type:
|
1508
1516
|
type: string
|
1509
1517
|
enum:
|
1510
|
-
- '
|
1511
|
-
- '
|
1512
|
-
- '
|
1513
|
-
- '
|
1514
|
-
- '
|
1518
|
+
- 'https://cocina.sul.stanford.edu/models/collection'
|
1519
|
+
- 'https://cocina.sul.stanford.edu/models/curated-collection'
|
1520
|
+
- 'https://cocina.sul.stanford.edu/models/user-collection'
|
1521
|
+
- 'https://cocina.sul.stanford.edu/models/exhibit'
|
1522
|
+
- 'https://cocina.sul.stanford.edu/models/series'
|
1515
1523
|
label:
|
1516
1524
|
type: string
|
1517
1525
|
version:
|
@@ -1522,7 +1530,7 @@ components:
|
|
1522
1530
|
access:
|
1523
1531
|
$ref: '#/components/schemas/CollectionAccess'
|
1524
1532
|
administrative:
|
1525
|
-
$ref: '#/components/schemas/
|
1533
|
+
$ref: '#/components/schemas/RequestAdministrative'
|
1526
1534
|
description:
|
1527
1535
|
$ref: '#/components/schemas/RequestDescription'
|
1528
1536
|
identification:
|
@@ -1617,21 +1625,21 @@ components:
|
|
1617
1625
|
type:
|
1618
1626
|
type: string
|
1619
1627
|
enum:
|
1620
|
-
- '
|
1621
|
-
- '
|
1622
|
-
- '
|
1623
|
-
- '
|
1624
|
-
- '
|
1625
|
-
- '
|
1626
|
-
- '
|
1627
|
-
- '
|
1628
|
-
- '
|
1629
|
-
- '
|
1630
|
-
- '
|
1631
|
-
- '
|
1632
|
-
- '
|
1633
|
-
- '
|
1634
|
-
- '
|
1628
|
+
- 'https://cocina.sul.stanford.edu/models/object'
|
1629
|
+
- 'https://cocina.sul.stanford.edu/models/3d'
|
1630
|
+
- 'https://cocina.sul.stanford.edu/models/agreement'
|
1631
|
+
- 'https://cocina.sul.stanford.edu/models/book'
|
1632
|
+
- 'https://cocina.sul.stanford.edu/models/document'
|
1633
|
+
- 'https://cocina.sul.stanford.edu/models/geo'
|
1634
|
+
- 'https://cocina.sul.stanford.edu/models/image'
|
1635
|
+
- 'https://cocina.sul.stanford.edu/models/page'
|
1636
|
+
- 'https://cocina.sul.stanford.edu/models/photograph'
|
1637
|
+
- 'https://cocina.sul.stanford.edu/models/manuscript'
|
1638
|
+
- 'https://cocina.sul.stanford.edu/models/map'
|
1639
|
+
- 'https://cocina.sul.stanford.edu/models/media'
|
1640
|
+
- 'https://cocina.sul.stanford.edu/models/track'
|
1641
|
+
- 'https://cocina.sul.stanford.edu/models/webarchive-binary'
|
1642
|
+
- 'https://cocina.sul.stanford.edu/models/webarchive-seed'
|
1635
1643
|
label:
|
1636
1644
|
type: string
|
1637
1645
|
version:
|
@@ -1642,7 +1650,7 @@ components:
|
|
1642
1650
|
access:
|
1643
1651
|
$ref: '#/components/schemas/DROAccess'
|
1644
1652
|
administrative:
|
1645
|
-
$ref: '#/components/schemas/
|
1653
|
+
$ref: '#/components/schemas/RequestAdministrative'
|
1646
1654
|
description:
|
1647
1655
|
$ref: '#/components/schemas/RequestDescription'
|
1648
1656
|
identification:
|
@@ -1683,7 +1691,7 @@ components:
|
|
1683
1691
|
type:
|
1684
1692
|
type: string
|
1685
1693
|
enum:
|
1686
|
-
- '
|
1694
|
+
- 'https://cocina.sul.stanford.edu/models/file'
|
1687
1695
|
label:
|
1688
1696
|
type: string
|
1689
1697
|
filename:
|
@@ -1723,22 +1731,22 @@ components:
|
|
1723
1731
|
type:
|
1724
1732
|
type: string
|
1725
1733
|
enum:
|
1726
|
-
- '
|
1727
|
-
- '
|
1728
|
-
- '
|
1729
|
-
- '
|
1730
|
-
- '
|
1731
|
-
- '
|
1732
|
-
- '
|
1733
|
-
- '
|
1734
|
-
- '
|
1735
|
-
- '
|
1736
|
-
- '
|
1737
|
-
- '
|
1738
|
-
- '
|
1739
|
-
- '
|
1740
|
-
- '
|
1741
|
-
- '
|
1734
|
+
- 'https://cocina.sul.stanford.edu/models/resources/audio'
|
1735
|
+
- 'https://cocina.sul.stanford.edu/models/resources/attachment'
|
1736
|
+
- 'https://cocina.sul.stanford.edu/models/resources/document'
|
1737
|
+
- 'https://cocina.sul.stanford.edu/models/resources/file'
|
1738
|
+
- 'https://cocina.sul.stanford.edu/models/resources/image'
|
1739
|
+
- 'https://cocina.sul.stanford.edu/models/resources/main-augmented'
|
1740
|
+
- 'https://cocina.sul.stanford.edu/models/resources/main-original'
|
1741
|
+
- 'https://cocina.sul.stanford.edu/models/resources/media'
|
1742
|
+
- 'https://cocina.sul.stanford.edu/models/resources/object'
|
1743
|
+
- 'https://cocina.sul.stanford.edu/models/resources/page'
|
1744
|
+
- 'https://cocina.sul.stanford.edu/models/resources/permissions'
|
1745
|
+
- 'https://cocina.sul.stanford.edu/models/resources/preview'
|
1746
|
+
- 'https://cocina.sul.stanford.edu/models/resources/supplement'
|
1747
|
+
- 'https://cocina.sul.stanford.edu/models/resources/3d'
|
1748
|
+
- 'https://cocina.sul.stanford.edu/models/resources/thumb'
|
1749
|
+
- 'https://cocina.sul.stanford.edu/models/resources/video'
|
1742
1750
|
label:
|
1743
1751
|
type: string
|
1744
1752
|
version:
|
@@ -1883,7 +1891,7 @@ components:
|
|
1883
1891
|
StanfordAccess:
|
1884
1892
|
type: object
|
1885
1893
|
properties:
|
1886
|
-
|
1894
|
+
view:
|
1887
1895
|
description: Access level.
|
1888
1896
|
type: string
|
1889
1897
|
enum:
|
@@ -1893,8 +1901,8 @@ components:
|
|
1893
1901
|
type: string
|
1894
1902
|
enum:
|
1895
1903
|
- stanford
|
1896
|
-
|
1897
|
-
description:
|
1904
|
+
location:
|
1905
|
+
description: Not used for this access type, must be null.
|
1898
1906
|
type: string
|
1899
1907
|
nullable: true
|
1900
1908
|
enum:
|
@@ -1905,12 +1913,12 @@ components:
|
|
1905
1913
|
enum:
|
1906
1914
|
- false
|
1907
1915
|
required:
|
1908
|
-
-
|
1916
|
+
- view
|
1909
1917
|
- download
|
1910
1918
|
WorldAccess:
|
1911
1919
|
type: object
|
1912
1920
|
properties:
|
1913
|
-
|
1921
|
+
view:
|
1914
1922
|
description: Access level.
|
1915
1923
|
type: string
|
1916
1924
|
enum:
|
@@ -1922,8 +1930,8 @@ components:
|
|
1922
1930
|
- none
|
1923
1931
|
- stanford
|
1924
1932
|
- world
|
1925
|
-
|
1926
|
-
description:
|
1933
|
+
location:
|
1934
|
+
description: Not used for this access type, must be null.
|
1927
1935
|
type: string
|
1928
1936
|
nullable: true
|
1929
1937
|
enum:
|
@@ -1934,5 +1942,5 @@ components:
|
|
1934
1942
|
enum:
|
1935
1943
|
- false
|
1936
1944
|
required:
|
1937
|
-
-
|
1945
|
+
- view
|
1938
1946
|
- download
|
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.
|
4
|
+
version: 0.69.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -86,6 +86,20 @@ dependencies:
|
|
86
86
|
- - "<"
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '1.0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: super_diff
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
type: :runtime
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '0'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: thor
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -277,8 +291,8 @@ files:
|
|
277
291
|
- lib/cocina/models/access_role.rb
|
278
292
|
- lib/cocina/models/access_role_member.rb
|
279
293
|
- lib/cocina/models/admin_policy.rb
|
294
|
+
- lib/cocina/models/admin_policy_access_template.rb
|
280
295
|
- lib/cocina/models/admin_policy_administrative.rb
|
281
|
-
- lib/cocina/models/admin_policy_default_access.rb
|
282
296
|
- lib/cocina/models/administrative.rb
|
283
297
|
- lib/cocina/models/applies_to.rb
|
284
298
|
- lib/cocina/models/business_barcode.rb
|
@@ -308,6 +322,7 @@ files:
|
|
308
322
|
- lib/cocina/models/doi.rb
|
309
323
|
- lib/cocina/models/dro.rb
|
310
324
|
- lib/cocina/models/dro_access.rb
|
325
|
+
- lib/cocina/models/dro_rights_description_builder.rb
|
311
326
|
- lib/cocina/models/dro_structural.rb
|
312
327
|
- lib/cocina/models/druid.rb
|
313
328
|
- lib/cocina/models/embargo.rb
|
@@ -317,18 +332,22 @@ files:
|
|
317
332
|
- lib/cocina/models/file_administrative.rb
|
318
333
|
- lib/cocina/models/file_set.rb
|
319
334
|
- lib/cocina/models/file_set_structural.rb
|
335
|
+
- lib/cocina/models/file_set_type.rb
|
320
336
|
- lib/cocina/models/geographic.rb
|
321
337
|
- lib/cocina/models/identification.rb
|
322
338
|
- lib/cocina/models/lane_medical_barcode.rb
|
323
339
|
- lib/cocina/models/language.rb
|
340
|
+
- lib/cocina/models/license.rb
|
324
341
|
- lib/cocina/models/location_based_access.rb
|
325
342
|
- lib/cocina/models/location_based_download_access.rb
|
326
343
|
- lib/cocina/models/message_digest.rb
|
344
|
+
- lib/cocina/models/object_type.rb
|
327
345
|
- lib/cocina/models/presentation.rb
|
328
346
|
- lib/cocina/models/purl.rb
|
329
347
|
- lib/cocina/models/related_resource.rb
|
330
348
|
- lib/cocina/models/release_tag.rb
|
331
349
|
- lib/cocina/models/request_admin_policy.rb
|
350
|
+
- lib/cocina/models/request_administrative.rb
|
332
351
|
- lib/cocina/models/request_collection.rb
|
333
352
|
- lib/cocina/models/request_description.rb
|
334
353
|
- lib/cocina/models/request_dro.rb
|
@@ -337,6 +356,7 @@ files:
|
|
337
356
|
- lib/cocina/models/request_file_set.rb
|
338
357
|
- lib/cocina/models/request_file_set_structural.rb
|
339
358
|
- lib/cocina/models/request_identification.rb
|
359
|
+
- lib/cocina/models/rights_description_builder.rb
|
340
360
|
- lib/cocina/models/sequence.rb
|
341
361
|
- lib/cocina/models/source.rb
|
342
362
|
- lib/cocina/models/source_id.rb
|
@@ -344,17 +364,20 @@ files:
|
|
344
364
|
- lib/cocina/models/standard_barcode.rb
|
345
365
|
- lib/cocina/models/stanford_access.rb
|
346
366
|
- lib/cocina/models/title.rb
|
367
|
+
- lib/cocina/models/title_builder.rb
|
347
368
|
- lib/cocina/models/validatable.rb
|
348
369
|
- lib/cocina/models/validator.rb
|
349
370
|
- lib/cocina/models/version.rb
|
350
|
-
- lib/cocina/models/
|
371
|
+
- lib/cocina/models/vocabulary.rb
|
351
372
|
- lib/cocina/models/world_access.rb
|
373
|
+
- lib/cocina/rspec.rb
|
374
|
+
- lib/cocina/rspec/matchers.rb
|
352
375
|
- openapi.yml
|
353
376
|
homepage: https://github.com/sul-dlss/cocina-models
|
354
377
|
licenses: []
|
355
378
|
metadata:
|
356
379
|
rubygems_mfa_required: 'true'
|
357
|
-
post_install_message:
|
380
|
+
post_install_message:
|
358
381
|
rdoc_options: []
|
359
382
|
require_paths:
|
360
383
|
- lib
|
@@ -369,8 +392,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
369
392
|
- !ruby/object:Gem::Version
|
370
393
|
version: '0'
|
371
394
|
requirements: []
|
372
|
-
rubygems_version: 3.
|
373
|
-
signing_key:
|
395
|
+
rubygems_version: 3.2.32
|
396
|
+
signing_key:
|
374
397
|
specification_version: 4
|
375
398
|
summary: Data models for the SDR
|
376
399
|
test_files: []
|