JSON Schema: Sub_container

URI Template

Properties

- (object) top_container

- (string) type_2

- (string (max length: 255)) indicator_2

- (string (max length: 255)) barcode_2

- (string) type_3

- (string (max length: 255)) indicator_3

- (string) display_string

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

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",
    "properties" => {
      "top_container" => {
        "type" => "object",
        "subtype" => "ref",
        "ifmissing" => "error",
        "properties" => {
          "ref" => {
            "type" => "JSONModel(:top_container) uri",
            "ifmissing" => "error",
          },
          "_resolved" => {
            "type" => "object",
            "readonly" => "true"
          }
        }
      },

      "type_2" => {"type" => "string", "dynamic_enum" => "container_type"},
      "indicator_2" => {"type" => "string", "maxLength" => 255},
      "barcode_2" => {"type" => "string", "maxLength" => 255},

      "type_3" => {"type" => "string", "dynamic_enum" => "container_type"},
      "indicator_3" => {"type" => "string", "maxLength" => 255},

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

Plain Text Version