{
  "$id": "ui_style.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "UI Style Schema",
  "description": "Common UI styling options for Learnosity questions",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "validation_stem_numeration": {
      "type": "string",
      "enum": ["number", "upper-alpha", "lower-alpha", "upper-roman", "lower-roman"],
      "description": "Numbering style for elements"
    },
    "type": {
      "type": "string",
      "enum": ["horizontal", "vertical", "block", "no-input-ui", "floating-keyboard"],
      "description": "Layout type for options"
    },
    "orientation": {
      "type": "string",
      "enum": ["horizontal", "vertical"],
      "description": "Deprecated - use 'type' instead"
    },
    "fontsize": {
      "type": "string",
      "enum": ["small", "normal", "large", "xlarge", "xxlarge"],
      "description": "Font size for the question text"
    },
    "possibility_list_position": {
      "type": "string",
      "enum": ["top", "bottom", "left", "right"],
      "description": "Position of the possibility list relative to the stimulus list (used in association questions)"
    },
    "column_titles": {
      "type": "array",
      "items": { "type": "string" },
      "description": "Titles for columns in classification or association questions"
    },
    "height": {
      "type": "string",
      "description": "Height of the question component (e.g., '400px')"
    },
    "width": {
      "type": "string", 
      "description": "Width of the question component (e.g., '400px')"
    },
    "layout": {
      "type": "string",
      "enum": ["horizontal", "vertical"],
      "description": "Layout direction for the component"
    },
    "chart_type": {
      "type": "string",
      "enum": ["histogram", "bar", "line", "pie"],
      "description": "Type of chart for simplechart questions"
    }
  }
}