JSON Schema: Note_multipart

URI Template

Properties

- (string) type

- (JSONModel(:rights_restriction) object) rights_restriction

- (array ([{"type"=>"JSONModel(:note_chronology) object"}, {"type"=>"JSONModel(:note_orderedlist) object"}, {"type"=>"JSONModel(:note_definedlist) object"}, {"type"=>"JSONModel(:note_text) object"}])) subnotes

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/note_multipart.rb', line 1

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

    "properties" => {

      "type" => {
        "type" => "string",
        "ifmissing" => "error",
        "dynamic_enum" => "note_multipart_type"
      },

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

      "subnotes" => {
        "type" => "array",
        "items" => {"type" => [{"type" => "JSONModel(:note_chronology) object"},
                               {"type" => "JSONModel(:note_orderedlist) object"},
                               {"type" => "JSONModel(:note_definedlist) object"},
                               {"type" => "JSONModel(:note_text) object"}]},
      },
    },
  },
}

Plain Text Version