JSON Schema: Agent_person
URI Template
/agents/people
Properties
- (string) slug
- (boolean) is_slug_auto
- (array (JSONModel(:name_person) object)) names
- (JSONModel(:name_person) object) display_name
- (array (JSONModel(:agent_gender) object)) agent_genders
- (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 37 38 39 40 41 42 43 |
# File 'common/schemas/agent_person.rb', line 1 { :schema => { "$schema" => "http://www.archivesspace.org/archivesspace.json", "version" => 1, "type" => "object", "parent" => "abstract_agent", "uri" => "/agents/people", "properties" => { "slug" => {"type" => "string"}, "is_slug_auto" => {"type" => "boolean", "default" => true}, "names" => { "type" => "array", "items" => {"type" => "JSONModel(:name_person) object"}, "ifmissing" => "error", "minItems" => 1 }, "display_name" => { "type" => "JSONModel(:name_person) object", "readonly" => true }, "agent_genders" => { "required" => false, "type" => "array", "items" => {"type" => "JSONModel(:agent_gender) object"}, "tags" => ["agent_subrecord"] }, "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