{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Bone Flow DOC Registry",
  "type": "object",
  "required": [
    "docs"
  ],
  "properties": {
    "version": {
      "type": "string"
    },
    "docs": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "docId",
          "title",
          "type",
          "targetUiIds",
          "source",
          "printable",
          "searchable",
          "status",
          "version"
        ],
        "properties": {
          "docId": {
            "type": "string",
            "pattern": "^DOC-[0-9]{4}$"
          },
          "title": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          },
          "type": {
            "type": "string"
          },
          "targetUiIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "tocId": {
            "type": [
              "string",
              "null"
            ]
          },
          "language": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "printable": {
            "type": "boolean"
          },
          "searchable": {
            "type": "boolean"
          },
          "status": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}
