{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sambodh-ias-in/json-schema/sambodh-ias-in-create-assessment-request-schema.json",
  "title": "CreateAssessmentRequest",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sambodh-ias-in-openapi.json#/components/schemas/CreateAssessmentRequest",
  "properties": {
    "subject": {
      "type": "string",
      "title": "Subject"
    },
    "topic": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Topic"
    },
    "num_questions": {
      "type": "integer",
      "title": "Num Questions",
      "default": 10
    },
    "difficulty": {
      "type": "string",
      "title": "Difficulty",
      "default": "medium"
    },
    "assessment_type": {
      "type": "string",
      "title": "Assessment Type",
      "default": "mcq"
    },
    "is_adaptive": {
      "type": "boolean",
      "title": "Is Adaptive",
      "default": false
    },
    "subtopic": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Subtopic"
    },
    "include_pyq": {
      "type": "boolean",
      "title": "Include Pyq",
      "default": false
    },
    "window_mode": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Window Mode"
    },
    "window_value": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Window Value"
    },
    "gs_paper": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gs Paper"
    },
    "compilation_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Compilation Id"
    },
    "word_limit": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Word Limit"
    },
    "include_news_enrichment": {
      "type": "boolean",
      "title": "Include News Enrichment",
      "default": true
    },
    "document_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Document Id"
    }
  },
  "type": "object",
  "required": [
    "subject"
  ]
}