{
  "description": "This file is auto-generated by scripts/prep. Do not edit manually.",
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "$schema": { "type": "string" },
    "data": {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": { "type": "string", "description": "The name of the book." },
          "title": {
            "type": "string",
            "description": "The title of the book."
          },
          "bookId": {
            "type": "string",
            "description": "The book identifier from the second JSON file."
          },
          "chapters": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": { "type": "string" },
                "verses": { "type": "number" }
              },
              "required": ["id", "verses"],
              "additionalProperties": false
            },
            "description": "An array of chapter identifiers for the book."
          },
          "englishDivision": {
            "type": "string",
            "description": "The English division of the book (e.g., 'Pentateuch', 'Wisdom')."
          },
          "hebrewDivision": {
            "anyOf": [
              {
                "type": "string",
                "description": "The Hebrew division of the book (e.g., 'Torah', 'Ketuvim')."
              },
              {
                "type": "null",
                "description": "The Hebrew division of the book (e.g., 'Torah', 'Ketuvim')."
              }
            ],
            "description": "The Hebrew division of the book (e.g., 'Torah', 'Ketuvim')."
          },
          "hebrewOrder": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991,
                "description": "The order of the book in the Hebrew Bible."
              },
              {
                "type": "null",
                "description": "The order of the book in the Hebrew Bible."
              }
            ],
            "description": "The order of the book in the Hebrew Bible."
          },
          "isNt": {
            "type": "boolean",
            "description": "Indicates if the book is in the New Testament."
          },
          "lowercase": {
            "type": "string",
            "description": "The lowercase title of the book."
          },
          "lowercase_dashes": {
            "type": "string",
            "description": "The lowercase title of the book with dashes."
          },
          "number": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The numeric order of the book in the Bible."
          },
          "order": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The order of the book in the Bible."
          },
          "testament": {
            "type": "string",
            "description": "The testament of the book ('old' or 'new')."
          },
          "title_dashes": {
            "type": "string",
            "description": "The title of the book with dashes."
          },
          "usfm": {
            "type": "string",
            "description": "The USFM code for the book."
          },
          "nameAlternates": {
            "type": "array",
            "items": { "type": "string" },
            "description": "Alternative names for the book."
          }
        },
        "required": [
          "name",
          "title",
          "bookId",
          "chapters",
          "englishDivision",
          "isNt",
          "lowercase",
          "lowercase_dashes",
          "number",
          "order",
          "testament",
          "title_dashes",
          "usfm"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": ["$schema", "data"]
}
