{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://library.mrm.org/schema/part-index.schema.json",
  "title": "Part index.md frontmatter",
  "description": "Frontmatter of content/<work>/<part>/index.md (a book, volume, year or issue). A folder without index.md is still a part.",
  "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"
    },
    "title": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": "string",
      "minLength": 1
    },
    "aliases": {
      "type": "array",
      "items": {
        "$ref": "https://library.mrm.org/schema/common.schema.json#/$defs/slug"
      }
    },
    "kind": {
      "enum": [
        "volume",
        "issue",
        "year",
        "book",
        "part"
      ]
    },
    "volume": {
      "type": "integer",
      "minimum": 1
    },
    "number": {
      "type": "integer",
      "minimum": 1
    },
    "periodical": {
      "type": "string"
    },
    "pages": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "items": {
        "$ref": "https://library.mrm.org/schema/common.schema.json#/$defs/page"
      }
    },
    "order": {
      "type": "number"
    },
    "group": {
      "type": "string",
      "description": "Display heading only (for example 'New Testament'); never a URL level."
    }
  }
}
