JSON Schema: Merge_request_detail

URI Template

/merge_requests/:record_type

Properties

- (string) uri

- (object) target

- (array (Object (ref))) victims

- (object) selections

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

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

      "target" => {
        "type" => "object",
        "ifmissing" => "error",
        "subtype" => "ref",
        "properties" => {
          "ref" => {
            "type" => MERGEABLE_TYPES,
            "ifmissing" => "error"
          },
        }
      },

      "victims" => {
        "type" => "array",
        "minItems" => 1,
        "items" => {
          "type" => "object",
          "subtype" => "ref",
          "properties" => {
            "ref" => {
              "type" => MERGEABLE_TYPES,
              "ifmissing" => "error"
            },
          }
        }
      },

      "selections" => {"type" => "object"},
    },
  },
}

Plain Text Version