JSON Schema: Rights_restriction

URI Template

Properties

- (string) begin

- (string) end

- (array (string)) local_access_restriction_type

- (object) linked_records

- (string) restriction_note_type

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

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

    "properties" => {
      "begin" => {
        "type" => "string",
      },

      "end" => {
        "type" => "string",
      },

      "local_access_restriction_type" => {
        "type" => "array",
        "items" => {"type" => "string",
                    "dynamic_enum" => "restriction_type"},
      },

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

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

Plain Text Version