JSON Schema: Abstract_agent

URI Template

Properties

- (string) uri

- (string) title

- (boolean) is_linked_to_published_record

- (string) agent_type

- (array (JSONModel(:agent_contact) object)) agent_contacts

- (array (string)) linked_agent_roles

- (array (JSONModel(:external_document) object)) external_documents

- (array (JSONModel(:rights_statement) object)) rights_statements

- (boolean) system_generated

- (array ([{"type"=>"JSONModel(:note_bioghist) object"}])) notes

- (array (JSONModel(:date) object)) dates_of_existence

- (boolean) publish

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
43
44
45
46
47
48
49
50
51
52
# File 'common/schemas/abstract_agent.rb', line 1

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

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

      "is_linked_to_published_record" => {"type" => "boolean", "readonly" => true},

      "agent_type" => {
        "type" => "string",
        "required" => false,
        "enum" => ["agent_person", "agent_corporate_entity", "agent_software", "agent_family", "user"]
      },

      "agent_contacts" => {
        "type" => "array",
        "items" => {"type" => "JSONModel(:agent_contact) object"}
      },

      "linked_agent_roles" => {
        "type" => "array",
        "items" => {"type" => "string"},
        "readonly" => true
      },

      "external_documents" => {"type" => "array", "items" => {"type" => "JSONModel(:external_document) object"}},
      "rights_statements" => {"type" => "array", "items" => {"type" => "JSONModel(:rights_statement) object"}},

      "system_generated" => {
        "readonly" => true,
        "type" => "boolean"
      },

      "notes" => {
        "type" => "array",
        "items" => {"type" => [{"type" => "JSONModel(:note_bioghist) object"}]},
      },
      
      "dates_of_existence" => {"type" => "array", "items" => {"type" => "JSONModel(:date) object"}},

      "publish" => {"type" => "boolean"},

    },
  },
}

Plain Text Version