{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Bone Flow TOC Registry",
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "version": {
      "type": "string"
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "tocId",
          "docId",
          "order",
          "visible",
          "printVisible"
        ],
        "properties": {
          "tocId": {
            "type": "string",
            "pattern": "^TOC-[0-9]{4}$"
          },
          "docId": {
            "type": "string",
            "pattern": "^DOC-[0-9]{4}$"
          },
          "parentTocId": {
            "type": [
              "string",
              "null"
            ]
          },
          "order": {
            "type": "number"
          },
          "chapterNo": {
            "type": [
              "string",
              "null"
            ]
          },
          "titleOverride": {
            "type": [
              "string",
              "null"
            ]
          },
          "visible": {
            "type": "boolean"
          },
          "printVisible": {
            "type": "boolean"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}
