{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://library.mrm.org/schema/section.schema.json",
  "title": "Section frontmatter (differences only)",
  "description": "Frontmatter of a section file: only what differs from its work and parts. The section title is the first H1.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "authors": {
      "$ref": "https://library.mrm.org/schema/common.schema.json#/$defs/people"
    },
    "translators": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "editors": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "publisher": {
      "type": "string",
      "minLength": 1
    },
    "publisher_place": {
      "type": "string"
    },
    "publisher_note": {
      "type": "string"
    },
    "published": {
      "$ref": "https://library.mrm.org/schema/common.schema.json#/$defs/date"
    },
    "edition": {
      "type": "string"
    },
    "language": {
      "type": "string",
      "pattern": "^[a-z]{2,3}(-[A-Za-z0-9]+)*$"
    },
    "rights": {
      "$ref": "https://library.mrm.org/schema/common.schema.json#/$defs/rights"
    },
    "source": {
      "$ref": "https://library.mrm.org/schema/common.schema.json#/$defs/source"
    },
    "curator_note": {
      "type": "string"
    },
    "aliases": {
      "type": "array",
      "items": {
        "$ref": "https://library.mrm.org/schema/common.schema.json#/$defs/slug"
      }
    },
    "description": {
      "type": "string",
      "minLength": 1
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "uniqueItems": true
    },
    "kind": {
      "enum": [
        "chapter",
        "article",
        "discourse",
        "section",
        "front",
        "back",
        "appendix",
        "index"
      ]
    },
    "order": {
      "type": "number"
    },
    "chapter": {
      "type": "integer",
      "minimum": 1
    },
    "verse_count": {
      "type": "integer",
      "minimum": 1
    },
    "start_page": {
      "$ref": "https://library.mrm.org/schema/common.schema.json#/$defs/page"
    },
    "end_page": {
      "$ref": "https://library.mrm.org/schema/common.schema.json#/$defs/page"
    },
    "reference": {
      "type": "string",
      "minLength": 10,
      "description": "Optional citation override; otherwise the build composes a Chicago citation from the fields."
    },
    "volume": {
      "type": "integer",
      "minimum": 1
    },
    "number": {
      "type": "integer",
      "minimum": 1
    },
    "periodical": {
      "type": "string"
    },
    "reporter": {
      "type": "string",
      "description": "Who took down or transcribed the discourse (stenographer or newspaper), as printed."
    },
    "place": {
      "type": "string",
      "description": "Where a discourse was delivered, as printed in its heading (without date or event)."
    }
  }
}
