JSON Schema: Structured_date_label

URI Template

Properties

- (string) date_label

- (string) date_type_structured

- (JSONModel(:structured_date_single) object) structured_date_single

- (JSONModel(:structured_date_range) object) structured_date_range

- (string) date_certainty

- (string) date_era

- (string) date_calendar

View Source


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'common/schemas/structured_date_label.rb', line 1

{
  :schema => {
    "$schema" => "http://www.archivesspace.org/archivesspace.json",
    "version" => 1,
    "type" => "object",

    "properties" => {
      "date_label" => {"type" => "string", "dynamic_enum" => "date_label", "ifmissing" => "error"},
      "date_type_structured" => {"type" => "string", "enum" => ["single", "range"], "ifmissing" => "error"},
      "structured_date_single" => {"required" => false, "type" => "JSONModel(:structured_date_single) object"},
      "structured_date_range" => {"required" => false, "type" => "JSONModel(:structured_date_range) object"},
      "date_certainty" => {"type" => "string", "dynamic_enum" => "date_certainty"},
      "date_era" => {"type" => "string", "dynamic_enum" => "date_era"},
      "date_calendar" => {"type" => "string", "dynamic_enum" => "date_calendar"}
    },
  },
}

Plain Text Version