JSON Schema: Agent_family

URI Template

/agents/families

Properties

- (string) slug

- (boolean) is_slug_auto

- (array (JSONModel(:name_family) object)) names

- (JSONModel(:name_family) object) display_name

- (array ([{"type"=>"JSONModel(:agent_relationship_parentchild) object"}, {"type"=>"JSONModel(:agent_relationship_earlierlater) object"}, {"type"=>"JSONModel(:agent_relationship_identity) object"}, {"type"=>"JSONModel(:agent_relationship_hierarchical) object"}, {"type"=>"JSONModel(:agent_relationship_temporal) object"}, {"type"=>"JSONModel(:agent_relationship_family) object"}, {"type"=>"JSONModel(:agent_relationship_associative) object"}])) related_agents

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

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",
    "parent" => "abstract_agent",
    "uri" => "/agents/families",
    "properties" => {
      "slug" => {"type" => "string"},
      "is_slug_auto" => {"type" => "boolean", "default" => true},
      "names" => {
        "type" => "array",
        "items" => {"type" => "JSONModel(:name_family) object"},
        "ifmissing" => "error",
        "minItems" => 1
      },

      "display_name" => {
        "type" => "JSONModel(:name_family) object",
        "readonly" => true
      },

      "related_agents" => {
        "type" => "array",
        "items" => {"type" => [{"type" => "JSONModel(:agent_relationship_parentchild) object"},
                               {"type" => "JSONModel(:agent_relationship_earlierlater) object"},
                               {"type" => "JSONModel(:agent_relationship_identity) object"},
                               {"type" => "JSONModel(:agent_relationship_hierarchical) object"},
                               {"type" => "JSONModel(:agent_relationship_temporal) object"},
                               {"type" => "JSONModel(:agent_relationship_family) object"},
                               {"type" => "JSONModel(:agent_relationship_associative) object"}]},
      }

    },
  },
}

Plain Text Version