{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://emendatio.reverdin.eu/api/v1/schema/bible-transcription-notes.json",
  "title": "Bible transcription notes",
  "type": "array",
  "items": {
    "type": "object",
    "additionalProperties": false,
    "required": [
      "page",
      "livre",
      "ch",
      "v",
      "from",
      "to",
      "note_fr",
      "note_it",
      "note_en",
      "note_de",
      "note_es",
      "note_pl",
      "note_pt"
    ],
    "properties": {
      "page": {
        "type": "string",
        "pattern": "^.+_n[0-9]+$"
      },
      "livre": {
        "type": "string",
        "pattern": "^[A-Z0-9]{3}$"
      },
      "ch": {
        "type": "integer",
        "minimum": 1
      },
      "v": {
        "type": [
          "integer",
          "string"
        ]
      },
      "from": {
        "type": "string"
      },
      "to": {
        "type": "string"
      },
      "note_it": {
        "type": "string",
        "minLength": 1
      },
      "note_fr": {
        "type": "string",
        "minLength": 1
      },
      "note_en": {
        "type": "string",
        "minLength": 1
      },
      "note_de": {
        "type": "string",
        "minLength": 1
      },
      "note_es": {
        "type": "string",
        "minLength": 1
      },
      "note_pl": {
        "type": "string",
        "minLength": 1
      },
      "note_pt": {
        "type": "string",
        "minLength": 1
      }
    }
  }
}
