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,17 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+
7
+ "properties" => {
8
+ "content" => {
9
+ "type" => "string",
10
+ "maxLength" => 65000,
11
+ "ifmissing" => "error",
12
+ },
13
+
14
+ "publish" => {"type" => "boolean"},
15
+ },
16
+ },
17
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/permissions",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "permission_code" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error", "minLength" => 1},
11
+ "description" => {"type" => "string", "maxLength" => 65000, "ifmissing" => "error", "minLength" => 1},
12
+ "level" => {"type" => "string", "ifmissing" => "error", "enum" => ["repository", "global"]},
13
+ },
14
+ },
15
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/repositories/:repo_id/preferences",
7
+
8
+ "properties" => {
9
+ "uri" => {"type" => "string", "required" => false},
10
+
11
+ "user_id" => {"type" => "integer"},
12
+
13
+ "defaults" => {"type" => "JSONModel(:defaults) object"},
14
+ },
15
+ },
16
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "properties" => {
7
+ "uri" => {"type" => "string", "required" => false},
8
+ "id" => {"type" => "integer", "ifmissing" => "error"},
9
+ "record_uri" => {"type" => "string", "ifmissing" => "error"},
10
+ "title" => {"type" => "string", "minLength" => 1, "required" => false, "maxLength" => 16384},
11
+ "suppressed" => {"type" => "boolean", "default" => false},
12
+ "publish" => {"type" => "boolean"},
13
+ "has_children" => {"type" => "boolean", "readonly" => true},
14
+ "node_type" => {"type" => "string", "maxLength" => 255},
15
+ },
16
+ },
17
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/repositories",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "repo_code" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error", "minLength" => 1},
11
+ "name" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error", "default" => ""},
12
+ "org_code" => {"type" => "string", "maxLength" => 255},
13
+ "country" => {"type" => "string", "required" => false, "dynamic_enum" => "country_iso_3166"},
14
+ "parent_institution_name" => {"type" => "string", "maxLength" => 255},
15
+ "url" => {"type" => "string", "maxLength" => 255, "pattern" => "\\Ahttps?:\\/\\/[\\\S]+\\z"},
16
+ "image_url" => {"type" => "string", "maxLength" => 255, "pattern" => "\\Ahttps?:\\/\\/[\\\S]+\\z"},
17
+ "contact_persons" => {"type" => "string", "maxLength" => 65000},
18
+
19
+ "agent_representation" => {
20
+ "type" => "object",
21
+ "subtype" => "ref",
22
+ "properties" => {
23
+ "ref" => {
24
+ "type" => "JSONModel(:agent_corporate_entity) uri",
25
+ "ifmissing" => "error",
26
+ "readonly" => "true"
27
+ }
28
+ }
29
+ },
30
+ },
31
+ },
32
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/repositories/with_agent",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "repository" => {"type" => "JSONModel(:repository) object", "ifmissing" => "error"},
11
+ "agent_representation" => {"type" => "JSONModel(:agent_corporate_entity) object"},
12
+ },
13
+ },
14
+ }
@@ -0,0 +1,112 @@
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/resources",
8
+ "properties" => {
9
+
10
+ "id_0" => {"type" => "string", "ifmissing" => "error", "maxLength" => 255},
11
+ "id_1" => {"type" => "string", "maxLength" => 255},
12
+ "id_2" => {"type" => "string", "maxLength" => 255},
13
+ "id_3" => {"type" => "string", "maxLength" => 255},
14
+
15
+ "level" => {"type" => "string", "ifmissing" => "error", "dynamic_enum" => "archival_record_level"},
16
+ "other_level" => {"type" => "string", "maxLength" => 255},
17
+
18
+ "language" => {"ifmissing" => "warn"},
19
+
20
+ "resource_type" => {"type" => "string", "dynamic_enum" => "resource_resource_type"},
21
+ "tree" => {
22
+ "type" => "object",
23
+ "subtype" => "ref",
24
+ "properties" => {
25
+ "ref" => {
26
+ "type" => "JSONModel(:resource_tree) uri",
27
+ "ifmissing" => "error"
28
+ },
29
+ "_resolved" => {
30
+ "type" => "object",
31
+ "readonly" => "true"
32
+ }
33
+ }
34
+ },
35
+
36
+ "restrictions" => {"type" => "boolean", "default" => false},
37
+
38
+ "repository_processing_note" => {"type" => "string", "maxLength" => 65000},
39
+
40
+ "ead_id" => {"type" => "string", "maxLength" => 255},
41
+ "ead_location" => {"type" => "string", "maxLength" => 255},
42
+
43
+ # Finding aid
44
+ "finding_aid_title" => {"type" => "string", "maxLength" => 65000},
45
+ "finding_aid_filing_title" => {"type" => "string", "maxLength" => 65000},
46
+ "finding_aid_date" => {"type" => "string", "maxLength" => 255},
47
+ "finding_aid_author" => {"type" => "string", "maxLength" => 65000},
48
+ "finding_aid_description_rules" => {"type" => "string", "dynamic_enum" => "resource_finding_aid_description_rules"},
49
+ "finding_aid_language" => {"type" => "string", "maxLength" => 255},
50
+ "finding_aid_sponsor" => {"type" => "string", "maxLength" => 65000},
51
+ "finding_aid_edition_statement" => {"type" => "string", "maxLength" => 65000},
52
+ "finding_aid_series_statement" => {"type" => "string", "maxLength" => 65000},
53
+ "finding_aid_revision_date" => {"type" => "string", "maxLength" => 255},
54
+ "finding_aid_revision_description" => {"type" => "string", "maxLength" => 65000},
55
+ "finding_aid_status" => {"type" => "string", "dynamic_enum" => "resource_finding_aid_status"},
56
+ "finding_aid_note" => {"type" => "string", "maxLength" => 65000},
57
+
58
+ # Extents (overrides abstract schema)
59
+ "extents" => {"type" => "array", "ifmissing" => "error", "minItems" => 1, "items" => {"type" => "JSONModel(:extent) object"}},
60
+
61
+ # Dates (overrides abstract schema)
62
+ "dates" => {"type" => "array", "ifmissing" => "error", "minItems" => 1, "items" => {"type" => "JSONModel(:date) object"}},
63
+
64
+ "instances" => {"type" => "array", "items" => {"type" => "JSONModel(:instance) object"}},
65
+ "deaccessions" => {"type" => "array", "items" => {"type" => "JSONModel(:deaccession) object"}},
66
+ "collection_management" => {"type" => "JSONModel(:collection_management) object"},
67
+ "user_defined" => {"type" => "JSONModel(:user_defined) object"},
68
+
69
+ "related_accessions" => {
70
+ "type" => "array",
71
+ "items" => {
72
+ "type" => "object",
73
+ "subtype" => "ref",
74
+ "properties" => {
75
+ "ref" => {"type" => [{"type" => "JSONModel(:accession) uri"}],
76
+ "ifmissing" => "error"},
77
+ "_resolved" => {
78
+ "type" => "object",
79
+ "readonly" => "true"
80
+ }
81
+ }
82
+ }
83
+ },
84
+
85
+
86
+ "classification" => {
87
+ "type" => "object",
88
+ "subtype" => "ref",
89
+ "properties" => {
90
+ "ref" => {
91
+ "type" => [{"type" => "JSONModel(:classification) uri"},
92
+ {"type" => "JSONModel(:classification_term) uri"}],
93
+ "ifmissing" => "error"
94
+ },
95
+ "_resolved" => {
96
+ "type" => "object",
97
+ "readonly" => "true"
98
+ }
99
+ }
100
+ },
101
+
102
+ "notes" => {
103
+ "type" => "array",
104
+ "items" => {"type" => [{"type" => "JSONModel(:note_bibliography) object"},
105
+ {"type" => "JSONModel(:note_index) object"},
106
+ {"type" => "JSONModel(:note_multipart) object"},
107
+ {"type" => "JSONModel(:note_singlepart) object"}]},
108
+ },
109
+
110
+ },
111
+ },
112
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/repositories/:repo_id/resources/:resource_id/tree",
7
+ "parent" => "record_tree",
8
+ "properties" => {
9
+ "finding_aid_filing_title" => {"type" => "string", "maxLength" => 65000},
10
+ "level" => {"type" => "string", "maxLength" => 255},
11
+ "instance_types" => {"type" => "array", "items" => {"type" => "string"}},
12
+ "containers" => {"type" => "array", "items" => {"type" => "object"}},
13
+ "children" => {
14
+ "type" => "array",
15
+ "additionalItems" => false,
16
+ "items" => { "type" => "JSONModel(:resource_tree) object" }
17
+ }
18
+ },
19
+ },
20
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+
7
+ "properties" => {
8
+ "rights_type" => {"type" => "string", "minLength" => 1, "ifmissing" => "error", "dynamic_enum" => "rights_statement_rights_type"},
9
+ "identifier" => {"type" => "string", "maxLength" => 255, "minLength" => 1, "required" => false},
10
+
11
+ "active" => {"type" => "boolean", "default" => true},
12
+
13
+ "materials" => {"type" => "string", "maxLength" => 255, "required" => false},
14
+
15
+ "ip_status" => {"type" => "string", "required" => false, "dynamic_enum" => "rights_statement_ip_status"},
16
+ "ip_expiration_date" => {"type" => "date", "required" => false},
17
+
18
+ "license_identifier_terms" => {"type" => "string", "maxLength" => 255, "required" => false},
19
+
20
+ "statute_citation" => {"type" => "string", "maxLength" => 255, "required" => false},
21
+
22
+ "jurisdiction" => {"type" => "string", "required" => false, "dynamic_enum" => "country_iso_3166"},
23
+ "type_note" => {"type" => "string", "maxLength" => 255, "required" => false},
24
+
25
+ "permissions" => {"type" => "string", "maxLength" => 65000, "required" => false},
26
+ "restrictions" => {"type" => "string", "maxLength" => 65000, "required" => false},
27
+ "restriction_start_date" => {"type" => "date", "required" => false},
28
+ "restriction_end_date" => {"type" => "date", "required" => false},
29
+
30
+ "granted_note" => {"type" => "string", "maxLength" => 255, "required" => false},
31
+
32
+ "external_documents" => {"type" => "array", "items" => {"type" => "JSONModel(:external_document) object"}},
33
+ },
34
+ },
35
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/subjects",
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
+ "is_linked_to_published_record" => {"type" => "boolean", "readonly" => true},
15
+
16
+ "publish" => {"type" => "boolean", "default" => true, "readonly" => true},
17
+
18
+ "source" => {"type" => "string", "dynamic_enum" => "subject_source", "ifmissing" => "error"},
19
+
20
+ "scope_note" => {"type" => "string"},
21
+
22
+ "terms" => {"type" => "array", "items" => {"type" => "JSONModel(:term) uri_or_object"}, "ifmissing" => "error", "minItems" => 1},
23
+
24
+ "vocabulary" => {"type" => "JSONModel(:vocabulary) uri", "ifmissing" => "error"},
25
+ "authority_id" => {"type" => "string", "maxLength" => 255},
26
+
27
+ "external_documents" => {"type" => "array", "items" => {"type" => "JSONModel(:external_document) object"}},
28
+ },
29
+ },
30
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/terms",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "term" => {"type" => "string", "maxLength" => 255, "minLength" => 1, "ifmissing" => "error"},
11
+ "term_type" => {"type" => "string", "minLength" => 1, "ifmissing" => "error", "dynamic_enum" => "subject_term_type"},
12
+
13
+ "vocabulary" => {"type" => "JSONModel(:vocabulary) uri", "ifmissing" => "error"}
14
+ },
15
+ },
16
+ }
@@ -0,0 +1,56 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/users",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+
10
+ "username" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error", "minLength" => 1},
11
+ "name" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error", "minLength" => 1},
12
+
13
+ "is_system_user" => {"type" => "boolean", "readonly" => true},
14
+
15
+ "permissions" => {
16
+ "type" => "object",
17
+ "readonly" => true,
18
+ },
19
+
20
+ "groups" => {
21
+ "type" => "array",
22
+ "items" => {
23
+ "type" => "JSONModel(:group) uri"
24
+ }
25
+ },
26
+
27
+ "email" => {"type" => "string", "maxLength" => 255},
28
+ "first_name" => {"type" => "string", "maxLength" => 255},
29
+ "last_name" => {"type" => "string", "maxLength" => 255},
30
+ "telephone" => {"type" => "string", "maxLength" => 255},
31
+ "title" => {"type" => "string", "maxLength" => 255},
32
+ "department" => {"type" => "string", "maxLength" => 255},
33
+ "additional_contact" => {"type" => "string", "maxLength" => 65000},
34
+
35
+ "agent_record" => {
36
+ "type" => "object",
37
+ "readonly" => true,
38
+ "subtype" => "ref",
39
+ "properties" => {
40
+ "ref" => {
41
+ "type" => [{"type" => "JSONModel(:agent_person) uri"}, {"type" => "JSONModel(:agent_software) uri"}]
42
+ },
43
+ "_resolved" => {
44
+ "type" => "object",
45
+ "readonly" => "true"
46
+ }
47
+ }
48
+ },
49
+
50
+ "is_admin" => {
51
+ "type" => "boolean",
52
+ "default" => false
53
+ }
54
+ },
55
+ },
56
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+
7
+ "properties" => {
8
+
9
+ "boolean_1" => {"type" => "boolean", "default" => false},
10
+ "boolean_2" => {"type" => "boolean", "default" => false},
11
+ "boolean_3" => {"type" => "boolean", "default" => false},
12
+
13
+ "integer_1" => {"type" => "string", "maxlength" => 255, "required" => false},
14
+ "integer_2" => {"type" => "string", "maxlength" => 255, "required" => false},
15
+ "integer_3" => {"type" => "string", "maxlength" => 255, "required" => false},
16
+
17
+ "real_1" => {"type" => "string", "maxlength" => 13, "required" => false},
18
+ "real_2" => {"type" => "string", "maxlength" => 13, "required" => false},
19
+ "real_3" => {"type" => "string", "maxlength" => 13, "required" => false},
20
+
21
+ "string_1" => {"type" => "string", "maxLength" => 255, "required" => false},
22
+ "string_2" => {"type" => "string", "maxLength" => 255, "required" => false},
23
+ "string_3" => {"type" => "string", "maxLength" => 255, "required" => false},
24
+ "string_4" => {"type" => "string", "maxLength" => 255, "required" => false},
25
+
26
+ "text_1" => {"type" => "string", "maxLength" => 65000, "required" => false},
27
+ "text_2" => {"type" => "string", "maxLength" => 65000, "required" => false},
28
+ "text_3" => {"type" => "string", "maxLength" => 65000, "required" => false},
29
+ "text_4" => {"type" => "string", "maxLength" => 65000, "required" => false},
30
+ "text_5" => {"type" => "string", "maxLength" => 65000, "required" => false},
31
+
32
+ "date_1" => {"type" => "date", "required" => false},
33
+ "date_2" => {"type" => "date", "required" => false},
34
+ "date_3" => {"type" => "date", "required" => false},
35
+
36
+ "enum_1" => {"type" => "string", "dynamic_enum" => "user_defined_enum_1"},
37
+ "enum_2" => {"type" => "string", "dynamic_enum" => "user_defined_enum_2"},
38
+ "enum_3" => {"type" => "string", "dynamic_enum" => "user_defined_enum_3"},
39
+ "enum_4" => {"type" => "string", "dynamic_enum" => "user_defined_enum_4"},
40
+ },
41
+ },
42
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ :schema => {
3
+ "$schema" => "http://www.archivesspace.org/archivesspace.json",
4
+ "version" => 1,
5
+ "type" => "object",
6
+ "uri" => "/vocabularies",
7
+ "properties" => {
8
+ "uri" => {"type" => "string", "required" => false},
9
+ "ref_id" => {"type" => "string", "maxLength" => 255, "minLength" => 1, "ifmissing" => "error"},
10
+ "name" => {"type" => "string", "maxLength" => 255, "minLength" => 1, "ifmissing" => "error"},
11
+
12
+ "terms" => {"type" => "array", "items" => {"type" => "JSONModel(:term) uri"}, "readonly" => true},
13
+ },
14
+ },
15
+ }