JSON Schema: User_defined

URI Template

Properties

- (boolean) boolean_1

- (boolean) boolean_2

- (boolean) boolean_3

- (string) integer_1

- (string) integer_2

- (string) integer_3

- (string) real_1

- (string) real_2

- (string) real_3

- (string (max length: 255)) string_1

- (string (max length: 255)) string_2

- (string (max length: 255)) string_3

- (string (max length: 255)) string_4

- (string (max length: 65000)) text_1

- (string (max length: 65000)) text_2

- (string (max length: 65000)) text_3

- (string (max length: 65000)) text_4

- (string (max length: 65000)) text_5

- (date) date_1

- (date) date_2

- (date) date_3

- (string) enum_1

- (string) enum_2

- (string) enum_3

- (string) enum_4

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

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

    "properties" => {

      "boolean_1" => {"type" => "boolean", "default" => false},
      "boolean_2" => {"type" => "boolean", "default" => false},
      "boolean_3" => {"type" => "boolean", "default" => false},

      "integer_1" => {"type" => "string", "maxlength" => 255, "required" => false},
      "integer_2" => {"type" => "string", "maxlength" => 255, "required" => false},
      "integer_3" => {"type" => "string", "maxlength" => 255, "required" => false},

      "real_1" => {"type" => "string", "maxlength" => 13, "required" => false},
      "real_2" => {"type" => "string", "maxlength" => 13, "required" => false},
      "real_3" => {"type" => "string", "maxlength" => 13, "required" => false},

      "string_1" => {"type" => "string", "maxLength" => 255, "required" => false},
      "string_2" => {"type" => "string", "maxLength" => 255, "required" => false},
      "string_3" => {"type" => "string", "maxLength" => 255, "required" => false},
      "string_4" => {"type" => "string", "maxLength" => 255, "required" => false},

      "text_1" => {"type" => "string", "maxLength" => 65000, "required" => false},
      "text_2" => {"type" => "string", "maxLength" => 65000, "required" => false},
      "text_3" => {"type" => "string", "maxLength" => 65000, "required" => false},
      "text_4" => {"type" => "string", "maxLength" => 65000, "required" => false},
      "text_5" => {"type" => "string", "maxLength" => 65000, "required" => false},

      "date_1" => {"type" => "date", "required" => false},
      "date_2" => {"type" => "date", "required" => false},
      "date_3" => {"type" => "date", "required" => false},

      "enum_1" => {"type" => "string", "dynamic_enum" => "user_defined_enum_1"},
      "enum_2" => {"type" => "string", "dynamic_enum" => "user_defined_enum_2"},
      "enum_3" => {"type" => "string", "dynamic_enum" => "user_defined_enum_3"},
      "enum_4" => {"type" => "string", "dynamic_enum" => "user_defined_enum_4"},
    },
  },
}

Plain Text Version