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,15 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+
8
+ "children" => {
9
+ "type" => "array",
10
+ "items" => {"type" => "JSONModel(:digital_object_component) object"}
11
+ },
12
+
13
+ },
14
+ },
15
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/config/enumerations",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "name" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error"},
11
+ "default_value" => {"type" => "string"},
12
+ "editable" => {"type" => "boolean", "readonly" => true},
13
+ "values" => {
14
+ "type" => "array",
15
+ "ifmissing" => "error",
16
+ "items" => {
17
+ "type" => "string",
18
+ }
19
+ },
20
+ "readonly_values" => {
21
+ "type" => "array",
22
+ "readonly" => true,
23
+ "items" => {
24
+ "type" => "string",
25
+ }
26
+ }
27
+ },
28
+ },
29
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/config/enumerations/migration",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+ "enum_uri" => {"type" => "JSONModel(:enumeration) uri", "ifmissing" => "error"},
10
+ "from" => {"type" => "string", "ifmissing" => "error"},
11
+ "to" => {"type" => "string", "ifmissing" => "error"},
12
+ },
13
+ },
14
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/repositories/:repo_id/events",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "external_ids" => {"type" => "array", "items" => {"type" => "JSONModel(:external_id) object"}},
11
+
12
+ "event_type" => {
13
+ "type" => "string",
14
+ "ifmissing" => "error",
15
+ "dynamic_enum" => "event_event_type"
16
+ },
17
+
18
+ "date" => {"type" => "JSONModel(:date) object"},
19
+ "timestamp" => {"type" => "string"},
20
+ "outcome" => {"type" => "string", "dynamic_enum" => "event_outcome"},
21
+ "outcome_note" => {"type" => "string", "maxLength" => 16384},
22
+
23
+ "suppressed" => {"type" => "boolean"},
24
+
25
+ "linked_agents" => {
26
+ "type" => "array",
27
+ "ifmissing" => "error",
28
+ "minItems" => 1,
29
+ "items" => {
30
+ "type" => "object",
31
+ "subtype" => "ref",
32
+ "properties" => {
33
+ "role" => {
34
+ "type" => "string",
35
+ "dynamic_enum" => "linked_agent_event_roles",
36
+ "ifmissing" => "error",
37
+ },
38
+ "ref" => {"type" => [
39
+ {"type" => "JSONModel(:agent_corporate_entity) uri"},
40
+ {"type" => "JSONModel(:agent_family) uri"},
41
+ {"type" => "JSONModel(:agent_person) uri"},
42
+ {"type" => "JSONModel(:agent_software) uri"}],
43
+ "ifmissing" => "error"},
44
+ "_resolved" => {
45
+ "type" => "object",
46
+ "readonly" => "true"
47
+ }
48
+ }
49
+ }
50
+ },
51
+
52
+ "linked_records" => {
53
+ "type" => "array",
54
+ "ifmissing" => "error",
55
+ "minItems" => 1,
56
+ "items" => {
57
+ "type" => "object",
58
+ "subtype" => "ref",
59
+ "properties" => {
60
+ "role" => {
61
+ "type" => "string",
62
+ "dynamic_enum" => "linked_event_archival_record_roles",
63
+ "ifmissing" => "error",
64
+ },
65
+ "ref" => {
66
+ "type" => [{"type" => "JSONModel(:agent_person) uri"},
67
+ {"type" => "JSONModel(:agent_family) uri"},
68
+ {"type" => "JSONModel(:agent_corporate_entity) uri"},
69
+ {"type" => "JSONModel(:agent_software) uri"},
70
+ {"type" => "JSONModel(:accession) uri"},
71
+ {"type" => "JSONModel(:resource) uri"},
72
+ {"type" => "JSONModel(:digital_object) uri"},
73
+ {"type" => "JSONModel(:archival_object) uri"},
74
+ {"type" => "JSONModel(:digital_object_component) uri"}],
75
+ "ifmissing" => "error"
76
+ },
77
+ "_resolved" => {
78
+ "type" => "object",
79
+ "readonly" => "true"
80
+ }
81
+ }
82
+ }
83
+ },
84
+
85
+ "suppressed" => {"type" => "boolean", "readonly" => "true"},
86
+ },
87
+ }
88
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+
7
+ "properties" => {
8
+ "portion" => {"type" => "string", "minLength" => 1, "ifmissing" => "error", "dynamic_enum" => "extent_portion"},
9
+ "number" => {"type" => "string", "maxLength" => 255, "minLength" => 1, "ifmissing" => "error"},
10
+ "extent_type" => {"type" => "string", "minLength" => 1, "ifmissing" => "error", "dynamic_enum" => "extent_extent_type"},
11
+
12
+ "container_summary" => {"type" => "string", "maxLength" => 65000, "required" => false},
13
+ "physical_details" => {"type" => "string", "maxLength" => 65000, "required" => false},
14
+ "dimensions" => {"type" => "string", "maxLength" => 255, "required" => false},
15
+ },
16
+ },
17
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+ "title" => {"type" => "string", "maxLength" => 16384, "ifmissing" => "error", "minLength" => 1},
8
+ "location" => {"type" => "string", "maxLength" => 16384, "ifmissing" => "error", "default" => ""},
9
+ "publish" => {"type" => "boolean"},
10
+ },
11
+ },
12
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+ "external_id" => {"type" => "string", "maxLength" => 255},
8
+ "source" => {"type" => "string", "maxLength" => 255},
9
+ }
10
+ },
11
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+
8
+ "negated" => {"type" => "boolean", "default" => false},
9
+ "field" => {"type" => "string", "ifmissing" => "error"},
10
+ "value" => {"type" => "string", "ifmissing" => "error"},
11
+
12
+ "literal" => {"type" => "boolean", "default" => false},
13
+ },
14
+ },
15
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+ "identifier" => {"type" => "string", "readonly" => true},
8
+ "file_uri" => {"type" => "string", "maxLength" => 16384, "ifmissing" => "error"},
9
+ "publish" => {"type" => "boolean"},
10
+ "use_statement" => {"type" => "string", "dynamic_enum" => "file_version_use_statement"},
11
+
12
+ "xlink_actuate_attribute" => {"type" => "string", "dynamic_enum" => "file_version_xlink_actuate_attribute"},
13
+
14
+ "xlink_show_attribute" => {"type" => "string", "dynamic_enum" => "file_version_xlink_show_attribute"},
15
+
16
+
17
+ "file_format_name" => {"type" => "string", "dynamic_enum" => "file_version_file_format_name"},
18
+ "file_format_version" => {"type" => "string", "maxLength" => 255},
19
+ "file_size_bytes" => {"type" => "integer"},
20
+
21
+ "checksum" => {"type" => "string", "maxLength" => 255},
22
+ "checksum_method" => {"type" => "string", "dynamic_enum" => "file_version_checksum_methods"},
23
+
24
+ },
25
+ },
26
+ }
@@ -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/groups",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "group_code" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error", "minLength" => 1},
11
+ "description" => {"type" => "string", "maxLength" => 65000, "ifmissing" => "error", "default" => ""},
12
+
13
+ "member_usernames" => {"type" => "array", "items" => {"type" => "string", "minLength" => 1}},
14
+ "grants_permissions" => {"type" => "array", "items" => {"type" => "string", "minLength" => 1}},
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
+ "properties" => {
7
+ "instance_type" => {"type" => "string", "minLength" => 1, "ifmissing" => "error", "dynamic_enum" => "instance_instance_type"},
8
+
9
+ "container" => {"type" => "JSONModel(:container) object"},
10
+
11
+ "digital_object" => {
12
+ "type" => "object",
13
+ "subtype" => "ref",
14
+ "properties" => {
15
+ "ref" => {
16
+ "type" => "JSONModel(:digital_object) uri",
17
+ "ifmissing" => "error"
18
+ },
19
+ "_resolved" => {
20
+ "type" => "object",
21
+ "readonly" => "true"
22
+ }
23
+ }
24
+ },
25
+ },
26
+ },
27
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/repositories/:repo_id/jobs",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "filenames" => {
11
+ "type" => "array",
12
+ "ifmissing" => "error",
13
+ "minItems" => 1,
14
+ "items" => {
15
+ "type" => "string",
16
+ }
17
+ },
18
+
19
+ "time_submitted" => {
20
+ "type" => "date-time",
21
+ "readonly" => true
22
+ },
23
+
24
+ "time_started" => {
25
+ "type" => "date-time",
26
+ "readonly" => true
27
+ },
28
+
29
+ "time_finished" => {
30
+ "type" => "date-time",
31
+ "readonly" => true
32
+ },
33
+
34
+ "owner" => {
35
+ "type" => "string",
36
+ "readonly" => true
37
+ },
38
+
39
+ "status" => {
40
+ "type" => "string",
41
+ "enum" => ["running", "completed", "canceled", "queued", "failed"],
42
+ "default" => "queued",
43
+ "readonly" => true
44
+ },
45
+
46
+ "import_type" => {
47
+ "type" => "string",
48
+ "ifmissing" => "error"
49
+ },
50
+
51
+ "queue_position" => {
52
+ "type" => "number",
53
+ "readonly" => true
54
+ }
55
+ },
56
+ },
57
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/locations",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "title" => {"type" => "string", "readonly" => true},
11
+
12
+ "external_ids" => {"type" => "array", "items" => {"type" => "JSONModel(:external_id) object"}},
13
+
14
+ "building" => {"type" => "string", "maxLength" => 255, "minLength" => 1, "ifmissing" => "error"},
15
+
16
+ "floor" => {"type" => "string", "maxLength" => 255, "required" => false},
17
+ "room" => {"type" => "string", "maxLength" => 255, "required" => false},
18
+ "area" => {"type" => "string", "maxLength" => 255, "required" => false},
19
+
20
+ "barcode" => {"type" => "string", "maxLength" => 255, "required" => false},
21
+ "classification" => {"type" => "string", "maxLength" => 255, "required" => false},
22
+
23
+ "coordinate_1_label" => {"type" => "string", "maxLength" => 255, "required" => false},
24
+ "coordinate_1_indicator" => {"type" => "string", "maxLength" => 255, "required" => false},
25
+
26
+ "coordinate_2_label" => {"type" => "string", "maxLength" => 255, "required" => false},
27
+ "coordinate_2_indicator" => {"type" => "string", "maxLength" => 255, "required" => false},
28
+
29
+ "coordinate_3_label" => {"type" => "string", "maxLength" => 255, "required" => false},
30
+ "coordinate_3_indicator" => {"type" => "string", "maxLength" => 255, "required" => false},
31
+
32
+ "temporary" => {"type" => "string", "dynamic_enum" => "location_temporary"},
33
+
34
+ },
35
+ },
36
+ }
@@ -0,0 +1,45 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "parent" => "location",
7
+ "properties" => {
8
+
9
+ "coordinate_1_range" => {
10
+ "type" => "object",
11
+ "ifmissing" => "error",
12
+ "properties" => {
13
+ "label" => {"type" => "string", "ifmissing" => "error"},
14
+ "start" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
15
+ "end" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
16
+ "prefix" => {"type" => "string"},
17
+ "suffix" => {"type" => "string"},
18
+ }
19
+ },
20
+
21
+ "coordinate_2_range" => {
22
+ "type" => "object",
23
+ "properties" => {
24
+ "label" => {"type" => "string", "ifmissing" => "error"},
25
+ "start" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
26
+ "end" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
27
+ "prefix" => {"type" => "string"},
28
+ "suffix" => {"type" => "string"},
29
+ }
30
+ },
31
+
32
+ "coordinate_3_range" => {
33
+ "type" => "object",
34
+ "properties" => {
35
+ "label" => {"type" => "string", "ifmissing" => "error"},
36
+ "start" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
37
+ "end" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
38
+ "prefix" => {"type" => "string"},
39
+ "suffix" => {"type" => "string"},
40
+ }
41
+ }
42
+
43
+ },
44
+ },
45
+ }
@@ -0,0 +1,48 @@
1
+ MERGEABLE_TYPES = [
2
+ {"type" => "JSONModel(:subject) uri"},
3
+ {"type" => "JSONModel(:agent_person) uri"},
4
+ {"type" => "JSONModel(:agent_corporate_entity) uri"},
5
+ {"type" => "JSONModel(:agent_software) uri"},
6
+ {"type" => "JSONModel(:agent_family) uri"},
7
+ {"type" => "JSONModel(:resource) uri"},
8
+ {"type" => "JSONModel(:digital_object) uri"}
9
+ ]
10
+
11
+ {
12
+ :schema => {
13
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
14
+ "uri" => "/merge_requests/:record_type",
15
+ "version" => 1,
16
+ "type" => "object",
17
+ "properties" => {
18
+ "uri" => {"type" => "string", "required" => false},
19
+
20
+ "target" => {
21
+ "type" => "object",
22
+ "ifmissing" => "error",
23
+ "subtype" => "ref",
24
+ "properties" => {
25
+ "ref" => {
26
+ "type" => MERGEABLE_TYPES,
27
+ "ifmissing" => "error"
28
+ },
29
+ }
30
+ },
31
+
32
+ "victims" => {
33
+ "type" => "array",
34
+ "minItems" => 1,
35
+ "items" => {
36
+ "type" => "object",
37
+ "subtype" => "ref",
38
+ "properties" => {
39
+ "ref" => {
40
+ "type" => MERGEABLE_TYPES,
41
+ "ifmissing" => "error"
42
+ },
43
+ }
44
+ }
45
+ },
46
+ },
47
+ },
48
+ }