{
  "$id": "assignment.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": true,
  "$ref": "contentitem.schema.json",
  "required": [ "type", "segments", "metadata","name" ],
  "title": "Assignment",
  "type": "object",
  "description": "Assignment Content Component in CTK",
  "properties": {
    "type": {
      "type": "string",
      "const": "assignment",
      "description": "Shold be always set to assignment"
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "description": "The name of the assignment"
    },
    "segments": {
      "type": "array",
      "items": { "$ref": "segment.schema.json" },
      "minItems": 1,
      "description": "The segments that make up the assignment"
    },
    "metadata": {
      "type": "array",
      "items": { "$ref": "assignment-metadata.schema.json" },
      "description": "Metadata associated with the assignment"
    }
  }
}
