aspace_client 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/lib/aspace_client.rb +15 -0
  3. data/lib/aspace_client/archivesspace_json_schema.rb +210 -0
  4. data/lib/aspace_client/asutils.rb +142 -0
  5. data/lib/aspace_client/client_enum_source.rb +30 -0
  6. data/lib/aspace_client/exceptions.rb +15 -0
  7. data/lib/aspace_client/helpers.rb +0 -0
  8. data/lib/aspace_client/json_schema_concurrency_fix.rb +52 -0
  9. data/lib/aspace_client/json_schema_utils.rb +414 -0
  10. data/lib/aspace_client/jsonmodel.rb +342 -0
  11. data/lib/aspace_client/jsonmodel_client.rb +528 -0
  12. data/lib/aspace_client/jsonmodel_i18n_mixin.rb +77 -0
  13. data/lib/aspace_client/jsonmodel_type.rb +478 -0
  14. data/lib/aspace_client/memoryleak.rb +59 -0
  15. data/lib/aspace_client/schemas/abstract_agent.rb +51 -0
  16. data/lib/aspace_client/schemas/abstract_agent_relationship.rb +12 -0
  17. data/lib/aspace_client/schemas/abstract_archival_object.rb +96 -0
  18. data/lib/aspace_client/schemas/abstract_classification.rb +44 -0
  19. data/lib/aspace_client/schemas/abstract_name.rb +23 -0
  20. data/lib/aspace_client/schemas/abstract_note.rb +13 -0
  21. data/lib/aspace_client/schemas/accession.rb +174 -0
  22. data/lib/aspace_client/schemas/accession_parts_relationship.rb +31 -0
  23. data/lib/aspace_client/schemas/accession_sibling_relationship.rb +31 -0
  24. data/lib/aspace_client/schemas/active_edits.rb +23 -0
  25. data/lib/aspace_client/schemas/advanced_query.rb +12 -0
  26. data/lib/aspace_client/schemas/agent_contact.rb +25 -0
  27. data/lib/aspace_client/schemas/agent_corporate_entity.rb +32 -0
  28. data/lib/aspace_client/schemas/agent_family.rb +29 -0
  29. data/lib/aspace_client/schemas/agent_person.rb +31 -0
  30. data/lib/aspace_client/schemas/agent_relationship_associative.rb +28 -0
  31. data/lib/aspace_client/schemas/agent_relationship_earlierlater.rb +28 -0
  32. data/lib/aspace_client/schemas/agent_relationship_parentchild.rb +26 -0
  33. data/lib/aspace_client/schemas/agent_relationship_subordinatesuperior.rb +26 -0
  34. data/lib/aspace_client/schemas/agent_software.rb +22 -0
  35. data/lib/aspace_client/schemas/archival_object.rb +60 -0
  36. data/lib/aspace_client/schemas/archival_record_children.rb +15 -0
  37. data/lib/aspace_client/schemas/boolean_field_query.rb +13 -0
  38. data/lib/aspace_client/schemas/boolean_query.rb +13 -0
  39. data/lib/aspace_client/schemas/classification.rb +10 -0
  40. data/lib/aspace_client/schemas/classification_term.rb +38 -0
  41. data/lib/aspace_client/schemas/classification_tree.rb +17 -0
  42. data/lib/aspace_client/schemas/collection_management.rb +27 -0
  43. data/lib/aspace_client/schemas/container.rb +29 -0
  44. data/lib/aspace_client/schemas/container_location.rb +19 -0
  45. data/lib/aspace_client/schemas/date.rb +19 -0
  46. data/lib/aspace_client/schemas/date_field_query.rb +14 -0
  47. data/lib/aspace_client/schemas/deaccession.rb +20 -0
  48. data/lib/aspace_client/schemas/defaults.rb +104 -0
  49. data/lib/aspace_client/schemas/digital_object.rb +64 -0
  50. data/lib/aspace_client/schemas/digital_object_component.rb +53 -0
  51. data/lib/aspace_client/schemas/digital_object_tree.rb +19 -0
  52. data/lib/aspace_client/schemas/digital_record_children.rb +15 -0
  53. data/lib/aspace_client/schemas/enumeration.rb +29 -0
  54. data/lib/aspace_client/schemas/enumeration_migration.rb +14 -0
  55. data/lib/aspace_client/schemas/event.rb +88 -0
  56. data/lib/aspace_client/schemas/extent.rb +17 -0
  57. data/lib/aspace_client/schemas/external_document.rb +12 -0
  58. data/lib/aspace_client/schemas/external_id.rb +11 -0
  59. data/lib/aspace_client/schemas/field_query.rb +15 -0
  60. data/lib/aspace_client/schemas/file_version.rb +26 -0
  61. data/lib/aspace_client/schemas/group.rb +17 -0
  62. data/lib/aspace_client/schemas/instance.rb +27 -0
  63. data/lib/aspace_client/schemas/job.rb +57 -0
  64. data/lib/aspace_client/schemas/location.rb +36 -0
  65. data/lib/aspace_client/schemas/location_batch.rb +45 -0
  66. data/lib/aspace_client/schemas/merge_request.rb +48 -0
  67. data/lib/aspace_client/schemas/name_corporate_entity.rb +15 -0
  68. data/lib/aspace_client/schemas/name_family.rb +13 -0
  69. data/lib/aspace_client/schemas/name_form.rb +15 -0
  70. data/lib/aspace_client/schemas/name_person.rb +19 -0
  71. data/lib/aspace_client/schemas/name_software.rb +14 -0
  72. data/lib/aspace_client/schemas/note_abstract.rb +17 -0
  73. data/lib/aspace_client/schemas/note_bibliography.rb +29 -0
  74. data/lib/aspace_client/schemas/note_bioghist.rb +22 -0
  75. data/lib/aspace_client/schemas/note_chronology.rb +28 -0
  76. data/lib/aspace_client/schemas/note_citation.rb +32 -0
  77. data/lib/aspace_client/schemas/note_definedlist.rb +25 -0
  78. data/lib/aspace_client/schemas/note_digital_object.rb +23 -0
  79. data/lib/aspace_client/schemas/note_index.rb +29 -0
  80. data/lib/aspace_client/schemas/note_index_item.rb +25 -0
  81. data/lib/aspace_client/schemas/note_multipart.rb +25 -0
  82. data/lib/aspace_client/schemas/note_orderedlist.rb +27 -0
  83. data/lib/aspace_client/schemas/note_outline.rb +20 -0
  84. data/lib/aspace_client/schemas/note_outline_level.rb +21 -0
  85. data/lib/aspace_client/schemas/note_singlepart.rb +24 -0
  86. data/lib/aspace_client/schemas/note_text.rb +17 -0
  87. data/lib/aspace_client/schemas/permission.rb +15 -0
  88. data/lib/aspace_client/schemas/preference.rb +16 -0
  89. data/lib/aspace_client/schemas/record_tree.rb +17 -0
  90. data/lib/aspace_client/schemas/repository.rb +32 -0
  91. data/lib/aspace_client/schemas/repository_with_agent.rb +14 -0
  92. data/lib/aspace_client/schemas/resource.rb +112 -0
  93. data/lib/aspace_client/schemas/resource_tree.rb +20 -0
  94. data/lib/aspace_client/schemas/rights_statement.rb +35 -0
  95. data/lib/aspace_client/schemas/subject.rb +30 -0
  96. data/lib/aspace_client/schemas/term.rb +16 -0
  97. data/lib/aspace_client/schemas/user.rb +56 -0
  98. data/lib/aspace_client/schemas/user_defined.rb +42 -0
  99. data/lib/aspace_client/schemas/vocabulary.rb +15 -0
  100. data/lib/aspace_client/validations.rb +434 -0
  101. data/lib/aspace_client/validator_cache.rb +47 -0
  102. data/lib/aspace_client/version.rb +3 -0
  103. metadata +244 -0
@@ -0,0 +1,13 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+
8
+ "op" => {"type" => "string", "enum" => ["AND", "OR", "NOT"], "ifmissing" => "error"},
9
+ "subqueries" => {"type" => ["JSONModel(:boolean_query) object", "JSONModel(:field_query) object", "JSONModel(:boolean_field_query) object", "JSONModel(:date_field_query) object"], "ifmissing" => "error", "minItems" => 1},
10
+
11
+ },
12
+ },
13
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "parent" => "abstract_classification",
7
+ "uri" => "/repositories/:repo_id/classifications",
8
+ "properties" => {},
9
+ },
10
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "parent" => "abstract_classification",
7
+ "uri" => "/repositories/:repo_id/classification_terms",
8
+ "properties" => {
9
+
10
+ "position" => {"type" => "integer", "required" => false},
11
+
12
+ "parent" => {
13
+ "type" => "object",
14
+ "subtype" => "ref",
15
+ "properties" => {
16
+ "ref" => {"type" => "JSONModel(:classification_term) uri"},
17
+ "_resolved" => {
18
+ "type" => "object",
19
+ "readonly" => "true"
20
+ }
21
+ },
22
+ },
23
+
24
+ "classification" => {
25
+ "type" => "object",
26
+ "subtype" => "ref",
27
+ "ifmissing" => "error",
28
+ "properties" => {
29
+ "ref" => {"type" => "JSONModel(:classification) uri"},
30
+ "_resolved" => {
31
+ "type" => "object",
32
+ "readonly" => "true"
33
+ },
34
+ }
35
+ }
36
+ },
37
+ },
38
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/repositories/:repo_id/classifications/:classification_id/tree",
7
+ "parent" => "record_tree",
8
+ "properties" => {
9
+ "identifier" => {"type" => "string", "maxLength" => 255},
10
+ "children" => {
11
+ "type" => "array",
12
+ "additionalItems" => false,
13
+ "items" => { "type" => "JSONModel(:classification_tree) object" }
14
+ }
15
+ },
16
+ },
17
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/repositories/:repo_id/collection_management",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "external_ids" => {"type" => "array", "items" => {"type" => "JSONModel(:external_id) object"}},
11
+
12
+ "cataloged_note" => {"type" => "string", "maxLength" => 65000, "required" => false},
13
+ "processing_hours_per_foot_estimate" => {"type" => "string", "maxLength" => 255, "required" => false},
14
+ "processing_total_extent" => {"type" => "string", "maxLength" => 255, "required" => false},
15
+ "processing_total_extent_type" => {"type" => "string", "required" => false, "dynamic_enum" => "extent_extent_type"},
16
+ "processing_hours_total" => {"type" => "string", "maxLength" => 255, "required" => false},
17
+ "processing_plan" => {"type" => "string", "maxLength" => 65000, "required" => false},
18
+ "processing_priority" => {"type" => "string", "required" => false, "dynamic_enum" => "collection_management_processing_priority"},
19
+ "processing_started_date" => {"type" => "date", "minLength" => 1, "required" => false},
20
+ "processing_status" => {"type" => "string", "required" => false, "dynamic_enum" => "collection_management_processing_status"},
21
+ "processing_funding_source" => {"type" => "string", "maxLength" => 65000, "required" => false},
22
+ "processors" => {"type" => "string", "maxLength" => 65000, "required" => false},
23
+ "rights_determined" => {"type" => "boolean", "default" => false},
24
+
25
+ },
26
+ }
27
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+
8
+ "type_1" => {"type" => "string", "dynamic_enum" => "container_type", "required" => false},
9
+ "indicator_1" => {"type" => "string", "maxLength" => 255, "minLength" => 1, "required" => false },
10
+ "barcode_1" => {"type" => "string", "maxLength" => 255, "minLength" => 1},
11
+
12
+ "type_2" => {"type" => "string", "dynamic_enum" => "container_type"},
13
+ "indicator_2" => {"type" => "string", "maxLength" => 255},
14
+
15
+ "type_3" => {"type" => "string", "dynamic_enum" => "container_type"},
16
+ "indicator_3" => {"type" => "string", "maxLength" => 255},
17
+
18
+ "container_extent" => {"type" => "string", "maxLength" => 255, "required" => false},
19
+ "container_extent_type" => {"type" => "string", "required" => false, "dynamic_enum" => "extent_extent_type"},
20
+
21
+ "container_locations" => {
22
+ "type" => "array",
23
+ "items" => {
24
+ "type" => "JSONModel(:container_location) object",
25
+ }
26
+ }
27
+ },
28
+ },
29
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "subtype" => "ref",
7
+ "properties" => {
8
+ "status" => {"type" => "string", "minLength" => 1, "ifmissing" => "error", "dynamic_enum" => "container_location_status"},
9
+ "start_date" => {"type" => "date", "minLength" => 1, "ifmissing" => "error"},
10
+ "end_date" => {"type" => "date"},
11
+ "note" => {"type" => "string"},
12
+ "ref" => {"type" => "JSONModel(:location) uri", "ifmissing" => "error"},
13
+ "_resolved" => {
14
+ "type" => "object",
15
+ "readonly" => "true"
16
+ }
17
+ },
18
+ },
19
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+
7
+ "properties" => {
8
+ "date_type" => {"type" => "string", "dynamic_enum" => "date_type", "ifmissing" => "error"},
9
+ "label" => {"type" => "string", "dynamic_enum" => "date_label", "ifmissing" => "error"},
10
+
11
+ "certainty" => {"type" => "string", "dynamic_enum" => "date_certainty"},
12
+ "expression" => {"type" => "string", "maxLength" => 255},
13
+ "begin" => {"type" => "string", "maxLength" => 255},
14
+ "end" => {"type" => "string", "maxLength" => 255},
15
+ "era" => {"type" => "string", "dynamic_enum" => "date_era"},
16
+ "calendar" => {"type" => "string", "dynamic_enum" => "date_calendar"},
17
+ },
18
+ },
19
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+
8
+ "comparator" => {"type" => "string", "enum" => ["greater_than", "lesser_than", "equal"]},
9
+ "field" => {"type" => "string", "ifmissing" => "error"},
10
+ "value" => {"type" => "date", "ifmissing" => "error"},
11
+
12
+ },
13
+ },
14
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+
8
+ "scope" => {"type" => "string", "dynamic_enum" => "deaccession_scope", "ifmissing" => "error"},
9
+ "description" => {"type" => "string", "maxLength" => 65000, "minLength" => 1, "ifmissing" => "error"},
10
+
11
+ "reason" => {"type" => "string", "maxLength" => 65000},
12
+ "disposition" => {"type" => "string", "maxLength" => 65000},
13
+ "notification" => {"type" => "boolean", "default" => false},
14
+
15
+ "date" => {"type" => "JSONModel(:date) object", "ifmissing" => "error"},
16
+
17
+ "extents" => {"type" => "array", "items" => {"type" => "JSONModel(:extent) object"}},
18
+ },
19
+ },
20
+ }
@@ -0,0 +1,104 @@
1
+ accession_browse_column_enum = [
2
+ "identifier", "accession_date", "acquisition_type", "resource_type",
3
+ "restrictions_apply", "access_restrictions", "use_restrictions",
4
+ "publish", 'no_value'
5
+ ]
6
+ resource_browse_column_enum = [
7
+ "identifier", "resource_type", "level", "language", "restrictions",
8
+ "ead_id", "finding_aid_status", "publish", 'no_value'
9
+ ]
10
+ digital_object_browse_column_enum = [
11
+ "digital_object_id", "digital_object_type", "level", "restrictions",
12
+ "publish", 'no_value'
13
+ ]
14
+ {
15
+ :schema => {
16
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
17
+ "version" => 1,
18
+ "type" => "object",
19
+ "properties" => {
20
+
21
+ "show_suppressed" => {"type" => "boolean", "required" => false},
22
+ "publish" => {"type" => "boolean", "required" => false},
23
+
24
+ "accession_browse_column_1" => {
25
+ "type" => "string",
26
+ "enum" => accession_browse_column_enum,
27
+ "required" => false
28
+ },
29
+ "accession_browse_column_2" => {
30
+ "type" => "string",
31
+ "enum" => accession_browse_column_enum,
32
+ "required" => false
33
+ },
34
+ "accession_browse_column_3" => {
35
+ "type" => "string",
36
+ "enum" => accession_browse_column_enum,
37
+ "required" => false
38
+ },
39
+ "accession_browse_column_4" => {
40
+ "type" => "string",
41
+ "enum" => accession_browse_column_enum,
42
+ "required" => false
43
+ },
44
+ "accession_browse_column_5" => {
45
+ "type" => "string",
46
+ "enum" => accession_browse_column_enum,
47
+ "required" => false
48
+ },
49
+
50
+ "resource_browse_column_1" => {
51
+ "type" => "string",
52
+ "enum" => resource_browse_column_enum,
53
+ "required" => false
54
+ },
55
+ "resource_browse_column_2" => {
56
+ "type" => "string",
57
+ "enum" => resource_browse_column_enum,
58
+ "required" => false
59
+ },
60
+ "resource_browse_column_3" => {
61
+ "type" => "string",
62
+ "enum" => resource_browse_column_enum,
63
+ "required" => false
64
+ },
65
+ "resource_browse_column_4" => {
66
+ "type" => "string",
67
+ "enum" => resource_browse_column_enum,
68
+ "required" => false
69
+ },
70
+ "resource_browse_column_5" => {
71
+ "type" => "string",
72
+ "enum" => resource_browse_column_enum,
73
+ "required" => false
74
+ },
75
+
76
+ "digital_object_browse_column_1" => {
77
+ "type" => "string",
78
+ "enum" => digital_object_browse_column_enum,
79
+ "required" => false
80
+ },
81
+ "digital_object_browse_column_2" => {
82
+ "type" => "string",
83
+ "enum" => digital_object_browse_column_enum,
84
+ "required" => false
85
+ },
86
+ "digital_object_browse_column_3" => {
87
+ "type" => "string",
88
+ "enum" => digital_object_browse_column_enum,
89
+ "required" => false
90
+ },
91
+ "digital_object_browse_column_4" => {
92
+ "type" => "string",
93
+ "enum" => digital_object_browse_column_enum,
94
+ "required" => false
95
+ },
96
+ "digital_object_browse_column_5" => {
97
+ "type" => "string",
98
+ "enum" => digital_object_browse_column_enum,
99
+ "required" => false
100
+ },
101
+
102
+ },
103
+ },
104
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "parent" => "abstract_archival_object",
7
+ "uri" => "/repositories/:repo_id/digital_objects",
8
+ "properties" => {
9
+
10
+ "digital_object_id" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error"},
11
+ "level" => {"type" => "string", "dynamic_enum" => "digital_object_level"},
12
+ "digital_object_type" => {
13
+ "type" => "string",
14
+ "dynamic_enum" => "digital_object_digital_object_type"
15
+ },
16
+
17
+ "file_versions" => {"type" => "array", "items" => {"type" => "JSONModel(:file_version) object"}},
18
+
19
+ "restrictions" => {"type" => "boolean", "default" => false},
20
+ "tree" => {
21
+ "type" => "object",
22
+ "subtype" => "ref",
23
+ "properties" => {
24
+ "ref" => {
25
+ "type" => "JSONModel(:digital_object_tree) uri",
26
+ "ifmissing" => "error"
27
+ },
28
+ "_resolved" => {
29
+ "type" => "object",
30
+ "readonly" => "true"
31
+ }
32
+ }
33
+ },
34
+
35
+
36
+ "notes" => {
37
+ "type" => "array",
38
+ "items" => {"type" => [{"type" => "JSONModel(:note_bibliography) object"},
39
+ {"type" => "JSONModel(:note_digital_object) object"}]},
40
+ },
41
+ "collection_management" => {"type" => "JSONModel(:collection_management) object"},
42
+ "user_defined" => {"type" => "JSONModel(:user_defined) object"},
43
+
44
+ "linked_instances" => {
45
+ "type" => "array",
46
+ "readonly" => "true",
47
+ "items" => {
48
+ "type" => "object",
49
+ "subtype" => "ref",
50
+ "properties" => {
51
+ "ref" => {
52
+ "type" => ["JSONModel(:resource) uri", "JSONModel(:archival_object) object"],
53
+ "ifmissing" => "error"
54
+ },
55
+ "_resolved" => {
56
+ "type" => "object",
57
+ "readonly" => "true"
58
+ }
59
+ }
60
+ },
61
+ },
62
+ },
63
+ },
64
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "parent" => "abstract_archival_object",
7
+ "uri" => "/repositories/:repo_id/digital_object_components",
8
+ "properties" => {
9
+
10
+ "component_id" => {"type" => "string", "maxLength" => 255},
11
+ "label" => {"type" => "string", "maxLength" => 255},
12
+ "title" => {"type" => "string", "maxLength" => 16384, "ifmissing" => nil},
13
+ "display_string" => {"type" => "string", "maxLength" => 8192, "readonly" => true},
14
+
15
+ "file_versions" => {"type" => "array", "items" => {"type" => "JSONModel(:file_version) object"}},
16
+
17
+ "parent" => {
18
+ "type" => "object",
19
+ "subtype" => "ref",
20
+ "properties" => {
21
+ "ref" => {"type" => "JSONModel(:digital_object_component) uri"},
22
+ "_resolved" => {
23
+ "type" => "object",
24
+ "readonly" => "true"
25
+ }
26
+ }
27
+ },
28
+
29
+ "digital_object" => {
30
+ "type" => "object",
31
+ "subtype" => "ref",
32
+ "properties" => {
33
+ "ref" => {"type" => "JSONModel(:digital_object) uri"},
34
+ "_resolved" => {
35
+ "type" => "object",
36
+ "readonly" => "true"
37
+ }
38
+ }
39
+ },
40
+
41
+ "position" => {"type" => "integer", "required" => false},
42
+
43
+ "notes" => {
44
+ "type" => "array",
45
+ "items" => {"type" => [{"type" => "JSONModel(:note_bibliography) object"},
46
+ {"type" => "JSONModel(:note_digital_object) object"}]},
47
+ },
48
+
49
+ "has_unpublished_ancestor" => {"type" => "boolean", "readonly" => "true"},
50
+
51
+ },
52
+ },
53
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/repositories/:repo_id/digital_objects/:digital_object_id/tree",
7
+ "parent" => "record_tree",
8
+ "properties" => {
9
+ "level" => {"type" => "string", "maxLength" => 255},
10
+ "digital_object_type" => {"type" => "string", "maxLength" => 255},
11
+ "file_versions" => {"type" => "array", "items" => {"type" => "object"}},
12
+ "children" => {
13
+ "type" => "array",
14
+ "additionalItems" => false,
15
+ "items" => { "type" => "JSONModel(:digital_object_tree) object" }
16
+ }
17
+ },
18
+ },
19
+ }