{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/allianz-engagement-survey/json-schema/allianz-engagement-survey-action-plan-list-schema.json",
  "title": "ActionPlanList",
  "description": "List of action plans for a survey",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/allianz-engagement-survey-action-plans-api-openapi.yml#/components/schemas/ActionPlanList",
  "type": "object",
  "properties": {
    "total": {
      "type": "integer",
      "description": "Total number of action plans"
    },
    "items": {
      "type": "array",
      "description": "List of action plan records",
      "items": {
        "$ref": "#/$defs/ActionPlan"
      }
    }
  },
  "$defs": {
    "ActionPlan": {
      "title": "ActionPlan",
      "type": "object",
      "description": "An action plan created to address survey findings",
      "properties": {
        "plan_id": {
          "type": "string",
          "description": "Unique identifier for the action plan"
        },
        "survey_id": {
          "type": "string",
          "description": "Survey this action plan relates to"
        },
        "title": {
          "type": "string",
          "description": "Title of the action plan"
        },
        "description": {
          "type": "string",
          "description": "Detailed description of the planned actions"
        },
        "status": {
          "type": "string",
          "description": "Current status of the action plan",
          "enum": [
            "not_started",
            "in_progress",
            "completed",
            "cancelled"
          ]
        },
        "owner": {
          "type": "string",
          "description": "Name of the action plan owner"
        },
        "due_date": {
          "type": "string",
          "format": "date",
          "description": "Target completion date for the action plan"
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "description": "Timestamp when the action plan was created"
        }
      }
    }
  }
}