{
  "$id": "clozetext.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Cloze Text Question",
  "description": "Learnosity cloze text question type extending the base Learnosity schema",
  "$ref": "learnosity-question-base.schema.json",
  "type": "object",
  "required": ["template", "max_length"],
  "properties": {
    "type": {
      "const": "clozetext",
      "description": "Question type identifier for cloze text"
    },
    "stimulus": {
      "type": "string",
      "description": "Optional introductory text or instructions before the template"
    },
    "template": {
      "type": "string",
      "description": "Question text with {{response}} placeholders. Each {{response}} corresponds to a text input for students."
    },
    "max_length": {
      "type": "integer",
      "minimum": 1,
      "description": "Maximum number of characters allowed in each text input"
    }
  }
}
