JSON Schema: Enumeration

URI Template

/config/enumerations

Properties

- (string) uri

- (string (max length: 255)) name

- (string) default_value

- (boolean) editable

- (array (string)) relationships

- (array (JSONModel(:enumeration_value) object)) enumeration_values

- (array (string)) values

- (array (string)) readonly_values

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

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

      "name" => {"type" => "string", "maxLength" => 255, "ifmissing" => "error"},
      "default_value" => {"type" => "string"},
      "editable" => {"type" => "boolean", "readonly" => true},
      "relationships" => {
        "type" => "array",
        "items" => {
          "type" => "string",
        }
      },
      "enumeration_values" => {"type" => "array", "items" => {"type" => "JSONModel(:enumeration_value) object"}},
      "values" => {
        "type" => "array",
        "ifmissing" => "error",
        "items" => {
          "type" => "string",
        }
      },
      "readonly_values" => {
        "type" => "array",
        "readonly" => true,
        "items" => {
          "type" => "string",
        }
      }
    },
  },
}

Plain Text Version