{
  "$id": "longtextV2.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "LongTextV2 Question Schema",
  "description": "Schema for LongTextV2 question type, supporting extended text input responses with word limits and unscored validation.",
  "type": "object",
  "required": [ "stimulus", "is_math", "validation", "show_word_limit" ],
  "properties": {
    "type": { "const": "longtextV2" },
    "stimulus": {
      "type": "string",
      "description": "The question prompt or stimulus."
    },
    "show_word_limit": {
      "type": "string",
      "enum": [ "on", "off", "always" ],
      "description": "Whether to show word count limit to students"
    },
    "is_math": {
      "type": "boolean",
      "description": "Whether this question involves mathematical content"
    },
    "validation": {
      "type": "object",
      "properties": {
        "unscored": {
          "type": "boolean",
          "description": "Whether this question should be unscored (for open-ended responses)"
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}