{
  "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": {
          "bibleTextId": { "type": "string" },
          "name": {
            "type": "string",
            "description": "The name of the bible translation in its own language."
          },
          "alternativeFull": {
            "type": "string",
            "description": "If a bible isn't available for the full Bible due to licensing restrictions, define an alternative Bible that does support full Bible here."
          },
          "audioId": {
            "type": "string",
            "description": "The bibleAudioId of the corresponding audio bible translation, if available."
          },
          "copyright": {
            "type": "string",
            "description": "The copyright attribution text required to be shown in-app for this translation."
          },
          "copyrightImage": {
            "type": "string",
            "description": "The image to display with the copyright."
          },
          "languageId": {
            "type": "string",
            "pattern": "^[a-z]{3}$",
            "description": "The language of the translation."
          },
          "nameEnglish": {
            "type": "string",
            "description": "The name of the bible translation in English."
          },
          "bookNameFallback": { "type": "string" },
          "version": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Data version for this bible. Bump this number when bible text or timings data is updated to trigger a re-fetch on user devices."
          },
          "textSource": {
            "type": "object",
            "properties": {
              "includeSectionTitles": {
                "type": "boolean",
                "description": "Whether or not to include section titles in the text."
              },
              "source": {
                "type": "string",
                "enum": [
                  "dbl",
                  "bibleBrain",
                  "usfm",
                  "usfx",
                  "yvp",
                  "custom",
                  "usx"
                ]
              },
              "sourceId": { "type": "string" }
            },
            "required": ["source"],
            "additionalProperties": false,
            "description": "Information about how to retrieve the text. Ideally, text is  available on the DBL via API.Bible when the license is granted, but there are a few other options. We have access to translations available on BibleBrain as well as being able to parse USFX files. Some translations may be available on the YouVersion Platform (yvp). If none of these work, 'custom' can be used and some custom code added to leviathan to retrieve and parse the text."
          }
        },
        "required": ["bibleTextId", "name", "languageId", "textSource"],
        "additionalProperties": false
      }
    }
  },
  "required": ["$schema", "data"]
}
