{
  "$id": "passage-comp.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$ref": "contentitem.schema.json",
  "description": "Passage Content Component in CTK",
  "properties": {
    "type": {
      "type": "string",
      "const": "passage",
      "description": "Shold be always set to Passage"
    },
    "components": {
      "type": "array",
      "items": {
        "oneOf": [
          { "$ref": "video-comp.schema.json" },
          { "$ref": "image-comp.schema.json" },
          { "$ref": "audio-comp.schema.json" },
          { "$ref": "html-comp.schema.json" }
        ]
      }
    },
    "title": {
      "type": "string"
    },
    "isreusable": {
      "type": "boolean",
      "default": false
    },
    "metadata": {
      "type": "array",
      "items": { "$ref": "passage-metadata.schema.json" },
      "additionalProperties": false
    }
  },
  "required": [ "type", "components", "title", "isreusable" ],
  "title": "Passage",
  "type": "object"
}