JSON Schema: Subject
URI Template
/subjects
Properties
- (string) uri
- (string) title
- (array (JSONModel(:external_id) object)) external_ids
- (boolean) is_linked_to_published_record
- (boolean) publish
- (string) slug
- (boolean) is_slug_auto
- (array (JSONModel(:repository) uri)) used_within_repositories
- (array (JSONModel(:repository) uri)) used_within_published_repositories
- (string) source
- (string) scope_note
- (array (JSONModel(:term) uri_or_object)) terms
- (JSONModel(:vocabulary) uri) vocabulary
- (string (max length: 255)) authority_id
- (array (JSONModel(:external_document) object)) external_documents
- (array (JSONModel(:metadata_rights_declaration) object)) metadata_rights_declarations
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 |
# File 'common/schemas/subject.rb', line 1 { :schema => { "$schema" => "http://www.archivesspace.org/archivesspace.json", "version" => 1, "type" => "object", "uri" => "/subjects", "properties" => { "uri" => {"type" => "string", "required" => false}, "title" => {"type" => "string", "readonly" => true}, "external_ids" => {"type" => "array", "items" => {"type" => "JSONModel(:external_id) object"}}, "is_linked_to_published_record" => {"type" => "boolean", "readonly" => true}, "publish" => {"type" => "boolean", "default" => true, "readonly" => true}, "slug" => {"type" => "string"}, "is_slug_auto" => {"type" => "boolean", "default" => true}, "used_within_repositories" => {"type" => "array", "items" => {"type" => "JSONModel(:repository) uri"}, "readonly" => true}, "used_within_published_repositories" => {"type" => "array", "items" => {"type" => "JSONModel(:repository) uri"}, "readonly" => true}, "source" => {"type" => "string", "dynamic_enum" => "subject_source", "ifmissing" => "error"}, "scope_note" => {"type" => "string"}, "terms" => {"type" => "array", "items" => {"type" => "JSONModel(:term) uri_or_object"}, "ifmissing" => "error", "minItems" => 1}, "vocabulary" => {"type" => "JSONModel(:vocabulary) uri", "ifmissing" => "error"}, "authority_id" => {"type" => "string", "maxLength" => 255}, "external_documents" => {"type" => "array", "items" => {"type" => "JSONModel(:external_document) object"}}, "metadata_rights_declarations" => {"type" => "array", "items" => {"type" => "JSONModel(:metadata_rights_declaration) object"}}, }, }, } |
Plain Text Version