JSON Schema: Location_batch

URI Template

Properties

- (array (JSONModel(:location) uri)) locations

- (object) coordinate_1_range

- (object) coordinate_2_range

- (object) coordinate_3_range

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

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",
    "parent" => "location",
    "properties" => {

      "locations" => {
        "type" => "array",
        "items" => {
          "type" => "JSONModel(:location) uri"
        }
      },

      "coordinate_1_range" => {
        "type" => "object",
        "ifmissing" => "error",
        "properties" => {
          "label" => {"type" => "string", "ifmissing" => "error"},
          "start" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
          "end" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
          "prefix" => {"type" => "string"},
          "suffix" => {"type" => "string"},
        }
      },

      "coordinate_2_range" => {
        "type" => "object",
        "properties" => {
          "label" => {"type" => "string", "ifmissing" => "error"},
          "start" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
          "end" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
          "prefix" => {"type" => "string"},
          "suffix" => {"type" => "string"},
        }
      },

      "coordinate_3_range" => {
        "type" => "object",
        "properties" => {
          "label" => {"type" => "string", "ifmissing" => "error"},
          "start" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
          "end" => {"type" => "string", "ifmissing" => "error", "minLength" => 1},
          "prefix" => {"type" => "string"},
          "suffix" => {"type" => "string"},
        }
      }

    },
  },
}

Plain Text Version