{
  "$id": "mcq_single_select.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Multiple Choice Question - Single Select",
  "description": "Learnosity MCQ with single selection, reusing the common base schema",
  "$ref": "learnosity-question-base.schema.json",
  "type": "object",
  "required": ["stimulus", "options", "ui_style", "shuffle_options", "feedback_attempts"],
  "properties": {
    "type": {
      "const": "mcq",
      "description": "Question type identifier for single select MCQ"
    },
    "stimulus": {
      "type": "string",
      "description": "The question text"
    },
    "options": {
      "type": "array",
      "minItems": 2,
      "items": {
        "type": "object",
        "required": ["label", "value"],
        "properties": {
          "label": { "type": "string" },
          "value": { "type": "string" }
        },
        "additionalProperties": true
      }
    },
    "ui_style": {
      "allOf": [
        { "$ref": "ui_style.schema.json" },
        { "required": ["type", "orientation"] }
      ]
    },
    "shuffle_options": {
      "type": "boolean",
      "description": "Whether to randomize option order"
    },
    "multiple_responses": {
      "type": "boolean",
      "const": false,
      "description": "Must be false or not present for single select questions"
    },
    "feedback_attempts": {
      "type": ["integer", "string"],
      "description": "Number of attempts before showing feedback"
    }
  }
}
