JSON Schema: Location

URI Template

/locations

Properties

- (string) uri

- (string) title

- (array (JSONModel(:external_id) object)) external_ids

- (string (max length: 255)) building

- (string (max length: 255)) floor

- (string (max length: 255)) room

- (string (max length: 255)) area

- (string (max length: 255)) barcode

- (string (max length: 255)) classification

- (string (max length: 255)) coordinate_1_label

- (string (max length: 255)) coordinate_1_indicator

- (string (max length: 255)) coordinate_2_label

- (string (max length: 255)) coordinate_2_indicator

- (string (max length: 255)) coordinate_3_label

- (string (max length: 255)) coordinate_3_indicator

- (string) temporary

- (object) location_profile

- (object) owner_repo

- (array (JSONModel(:location_function) object)) functions

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
# File 'common/schemas/location.rb', line 1

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

      "title" => {"type" => "string", "readonly" => true},

      "external_ids" => {"type" => "array", "items" => {"type" => "JSONModel(:external_id) object"}},

      "building" => {"type" => "string", "maxLength" => 255, "minLength" => 1, "ifmissing" => "error"},

      "floor" => {"type" => "string", "maxLength" => 255, "required" => false},
      "room" => {"type" => "string", "maxLength" => 255, "required" => false},
      "area" => {"type" => "string", "maxLength" => 255, "required" => false},

      "barcode" => {"type" => "string", "maxLength" => 255, "required" => false},
      "classification" => {"type" => "string", "maxLength" => 255, "required" => false},

      "coordinate_1_label" => {"type" => "string", "maxLength" => 255, "required" => false},
      "coordinate_1_indicator" => {"type" => "string", "maxLength" => 255, "required" => false},

      "coordinate_2_label" => {"type" => "string", "maxLength" => 255, "required" => false},
      "coordinate_2_indicator" => {"type" => "string", "maxLength" => 255, "required" => false},

      "coordinate_3_label" => {"type" => "string", "maxLength" => 255, "required" => false},
      "coordinate_3_indicator" => {"type" => "string", "maxLength" => 255, "required" => false},

      "temporary" => {"type" => "string", "dynamic_enum" => "location_temporary"},

      "location_profile" => {
        "type" => "object",
        "subtype" => "ref",
        "properties" => {
          "ref" => {"type" => "JSONModel(:location_profile) uri"},
          "_resolved" => {
            "type" => "object",
            "readonly" => "true"
          }
        }
      },

      "owner_repo" => {
        "type" => "object",
        "subtype" => "ref",
        "properties" => {
          "ref" => {"type" => "JSONModel(:repository) uri"},
          "_resolved" => {
            "type" => "object",
            "readonly" => "true"
          }
        }
      },

      "functions" => {"type" => "array", "items" => {"type" => "JSONModel(:location_function) object"}},

    },
  },
}

Plain Text Version