{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/comp-ai/json-schema/comp-ai-answer-single-question-dto-schema.json",
  "title": "AnswerSingleQuestionDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/comp-ai-questionnaire-api-openapi.yml#/components/schemas/AnswerSingleQuestionDto",
  "type": "object",
  "properties": {
    "question": {
      "type": "string",
      "description": "Security questionnaire question to answer."
    },
    "questionIndex": {
      "type": "number",
      "description": "Zero-based index of this question in the questionnaire or page batch.",
      "minimum": 0
    },
    "totalQuestions": {
      "type": "number",
      "description": "Total number of questions in the current questionnaire or page batch.",
      "minimum": 1
    },
    "organizationId": {
      "type": "string",
      "description": "Organization ID for validation. The API uses the authenticated active organization and overwrites this value server-side."
    },
    "questionnaireId": {
      "type": "string",
      "description": "Optional questionnaire record to save the generated answer into. Omit for webpage-only answer generation."
    }
  },
  "required": [
    "question",
    "questionIndex",
    "totalQuestions",
    "organizationId"
  ]
}