{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SurveyObject",
  "title": "SurveyObject",
  "type": "object",
  "required": [
    "id",
    "surveyName",
    "meetingId",
    "questions"
  ],
  "properties": {
    "id": {
      "type": "string",
      "example": "18d2e565770c4eee918784ee333510ec",
      "description": "Unique identifier for the survey."
    },
    "surveyName": {
      "type": "string",
      "example": "Survey name",
      "description": "Name for the survey."
    },
    "meetingId": {
      "type": "string",
      "example": "560d7b784f5143e3be2fc3064a5c4999",
      "description": "Unique identifier for the meeting."
    },
    "description": {
      "type": "string",
      "example": "Survey name",
      "description": "Description for the survey."
    },
    "allowAnonymousSubmit": {
      "type": "boolean",
      "example": true,
      "description": "Whether the survey allows attendees to submit anonymously."
    },
    "questions": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/QuestionObject"
      },
      "description": "Questions for the survey."
    }
  }
}