JSON Schema: Agent_corporate_entity

URI Template

/agents/corporate_entities

Properties

- (string) slug

- (boolean) is_slug_auto

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

- (JSONModel(:name_corporate_entity) object) display_name

- (array ([{"type"=>"JSONModel(:agent_relationship_subordinatesuperior) 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

- (string) is_repo_agent

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

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

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

      "related_agents" => {
        "type" => "array",
        "items" => {
          "type" => [{"type" => "JSONModel(:agent_relationship_subordinatesuperior) 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"}],
        }
      },

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

  },
}

Plain Text Version