JSON Schema: Abstract_classification

URI Template

Properties

- (string) uri

- (string (max length: 255)) identifier

- (string (max length: 16384)) title

- (string (max length: 65000)) description

- (boolean) publish

- (array (Object (identifier, title))) path_from_root

- (array (Object (ref, _resolved))) linked_records

- (object) creator

View Source


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'common/schemas/abstract_classification.rb', line 1

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",
    "properties" => {
      "uri" => {"type" => "string", "required" => false},

      "identifier" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error"},
      "title" => {"type" => "string", "minLength" => 1, "maxLength" => 16384, "ifmissing" => "error"},
      "description" => {"type" => "string", "maxLength" => 65000},

      "publish" => {"type" => "boolean", "default" => true, "readonly" => true},

      "path_from_root" => {
        "type" => "array",
        "readonly" => true,
        "items" => {
          "type" => "object",
          "properties" => {
            "identifier" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error"},
            "title" => {"type" => "string", "minLength" => 1, "maxLength" => 16384, "ifmissing" => "error"},
          }
        }
      },

      "linked_records" => {
        "type" => "array",
        "items" => {
          "type" => "object",
          "subtype" => "ref",
          "properties" => {
            "ref" => {
              "type" => [
                         {"type" => "JSONModel(:accession) uri"},
                         {"type" => "JSONModel(:resource) uri"},
                         {"type" => "JSONModel(:digital_object) uri"},
                        ],
            },
            "_resolved" => {
              "type" => "object",
              "readonly" => "true"
            }
          }
        }
      },

      "creator" => {
        "type" => "object",
        "subtype" => "ref",
        "properties" => {
          "ref" => {"type" => [{"type" => "JSONModel(:agent_corporate_entity) uri"},
                               {"type" => "JSONModel(:agent_family) uri"},
                               {"type" => "JSONModel(:agent_person) uri"},
                               {"type" => "JSONModel(:agent_software) uri"}],
            "ifmissing" => "error"},
          "_resolved" => {
            "type" => "object",
            "readonly" => "true"
          }
        }
      },
    },
  },
}

Plain Text Version