{
  "$id": "https://learnaboutpearls.com/data/timeline.schema.json",
  "title": "Learn About Pearls: timeline",
  "type": "array",
  "items": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "date": {
        "type": "string"
      },
      "precision": {
        "type": "string",
        "enum": [
          "day",
          "month",
          "year",
          "decade",
          "century",
          "approximate"
        ]
      },
      "sortKey": {
        "type": "number"
      },
      "title": {
        "type": "string"
      },
      "summary": {
        "type": "string"
      },
      "place": {
        "type": "string"
      },
      "disputed": {
        "default": false,
        "type": "boolean"
      },
      "sources": {
        "minItems": 1,
        "type": "array",
        "items": {
          "type": "string",
          "pattern": "^[a-z0-9][a-z0-9-]*$"
        }
      }
    },
    "required": [
      "id",
      "date",
      "precision",
      "sortKey",
      "title",
      "summary",
      "sources"
    ]
  }
}
