{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/allianz-engagement-survey/json-schema/allianz-engagement-survey-participant-list-schema.json",
  "title": "ParticipantList",
  "description": "List of survey participants with participation statistics",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/allianz-engagement-survey-participants-api-openapi.yml#/components/schemas/ParticipantList",
  "type": "object",
  "properties": {
    "total": {
      "type": "integer",
      "description": "Total number of invited participants"
    },
    "responded": {
      "type": "integer",
      "description": "Number of participants who responded"
    },
    "participation_rate": {
      "type": "number",
      "format": "double",
      "description": "Percentage of participants who responded"
    },
    "items": {
      "type": "array",
      "description": "List of participant records",
      "items": {
        "$ref": "#/$defs/Participant"
      }
    }
  },
  "$defs": {
    "Participant": {
      "title": "Participant",
      "type": "object",
      "description": "A survey participant record",
      "properties": {
        "participant_id": {
          "type": "string",
          "description": "Unique identifier for the participant record"
        },
        "employee_id": {
          "type": "string",
          "description": "Allianz employee identifier"
        },
        "status": {
          "type": "string",
          "description": "Current response status of the participant",
          "enum": [
            "invited",
            "responded",
            "not_responded"
          ]
        },
        "invited_at": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the invitation was sent"
        },
        "responded_at": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the participant submitted their response"
        }
      }
    }
  }
}