JSON Schema: Instance

URI Template

Properties

- (string) instance_type

- (JSONModel(:sub_container) object) sub_container

- (object) digital_object

- (boolean) is_representative

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

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",
    "properties" => {
      "instance_type" => {"type" => "string", "minLength" => 1, "ifmissing" => "error", "dynamic_enum" => "instance_instance_type"},

      "sub_container" => {"type" => "JSONModel(:sub_container) object"},

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

      "is_representative" => {"type" => "boolean", "default" => false},
    },
  },
}

Plain Text Version