{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://living-bread.org/protocol/v0.1/scripture-reference.schema.json",
  "title": "Kingdom Protocol v0.1: ScriptureReference",
  "description": "A passage of the Bible by reference, with its words read from the stored King James Version (public domain). The words are never typed by hand.",
  "type": "object",
  "required": [
    "ref"
  ],
  "properties": {
    "ref": {
      "description": "Human reference, e.g. John 3:16",
      "type": "string"
    },
    "book": {
      "description": "Book",
      "type": [
        "string",
        "null"
      ]
    },
    "chapter": {
      "description": "Chapter",
      "type": [
        "integer",
        "null"
      ]
    },
    "verses": {
      "description": "Verse numbers and words",
      "type": [
        "array",
        "null"
      ],
      "items": {}
    },
    "text": {
      "description": "The words, from the stored KJV",
      "type": [
        "string",
        "null"
      ]
    },
    "translation": {
      "description": "KJV",
      "type": [
        "string",
        "null"
      ]
    },
    "url": {
      "description": "A page to read it in context",
      "type": [
        "string",
        "null"
      ],
      "format": "uri"
    }
  },
  "additionalProperties": true,
  "x-lb-urn": "lb:scripture:verse-<book>-<chapter>-<verse>",
  "x-lb-schema-org": "https://schema.org/Quotation",
  "x-lb-door": "/api/scripture/{ref}",
  "x-lb-license": "Directory data CC BY 4.0. Words written by people remain theirs; quote with attribution."
}