{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "A Fireside Story of Harry Leary page register",
  "type": "array",
  "items": {
    "type": "object",
    "required": [
      "page",
      "page_id",
      "chapter_number",
      "chapter_title",
      "record_block_count",
      "capture_parts",
      "canonical_files",
      "source_url",
      "records"
    ],
    "properties": {
      "page": {
        "type": "integer",
        "minimum": 1,
        "maximum": 105
      },
      "page_id": {
        "type": "string",
        "pattern": "^FSHL-[0-9]{3}$"
      },
      "chapter_number": {
        "type": "integer",
        "minimum": 1,
        "maximum": 8
      },
      "chapter_title": {
        "type": "string"
      },
      "record_block_count": {
        "type": "integer",
        "enum": [
          2,
          3
        ]
      },
      "capture_parts": {
        "type": "integer",
        "minimum": 1
      },
      "canonical_files": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "minItems": 1
      },
      "source_url": {
        "type": "string",
        "format": "uri"
      },
      "notes": {
        "type": "string"
      },
      "records": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "record_id",
            "position",
            "summary",
            "transcription_status"
          ]
        }
      }
    }
  }
}
