{
  "$id": "orderlist.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "OrderList Question Schema",
  "description": "Schema for OrderList question type, consistent with Learnosity standards.",
  "$ref": "learnosity-question-base.schema.json",
  "type": "object",
  "required": ["stimulus", "list", "feedback_attempts", "is_math"],
  "properties": {
    "type": {
      "type": "string",
      "const": "orderlist",
      "description": "Question type identifier. Must be 'orderlist'."
    },
    "stimulus": {
      "type": "string",
      "description": "The question prompt or stimulus."
    },
    "list": {
      "type": "array",
      "items": { "type": "string" },
      "minItems": 2,
      "description": "List of items to be ordered."
    },
    "feedback_attempts": {
      "type": ["integer", "string"],
      "description": "Number of attempts before showing feedback"
    },
    "ui_style": {
      "allOf": [
        { "$ref": "ui_style.schema.json" }
      ]
    },
    "is_math": {
      "type": "boolean",
      "description": "Indicates if the question is math-related."
    }
  },
  "additionalProperties": true
}
