{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rampify-dev/json-schema/rampify-dev-action-item-array-schema.json",
  "title": "ActionItemArray",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rampify-dev-openapi.yml#/components/schemas/ActionItemArray",
  "type": "array",
  "items": {
    "$ref": "#/$defs/ActionItem"
  },
  "$defs": {
    "ActionItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "siteId": {
          "type": "string",
          "format": "uuid"
        },
        "snapshotId": {
          "type": "string",
          "format": "uuid"
        },
        "category": {
          "type": "string",
          "enum": [
            "seo_elements",
            "icons_images",
            "url_health",
            "conversion",
            "indexing"
          ]
        },
        "actionType": {
          "type": "string",
          "enum": [
            "short_title",
            "long_title",
            "missing_title",
            "short_meta_description",
            "long_meta_description",
            "missing_meta_description",
            "missing_schema",
            "wrong_schema_type",
            "missing_og_image",
            "not_indexed",
            "missing_canonical"
          ],
          "description": "Specific type of action needed"
        },
        "priority": {
          "type": "string",
          "enum": [
            "critical",
            "high",
            "medium",
            "low"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "new",
            "in_progress",
            "completed",
            "dismissed"
          ]
        },
        "title": {
          "type": "string",
          "description": "Human-readable title"
        },
        "description": {
          "type": "string",
          "description": "Detailed description"
        },
        "affectedCount": {
          "type": "integer",
          "description": "Number of URLs affected"
        },
        "metadata": {
          "type": "object",
          "properties": {
            "affected_urls": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "url": {
                    "type": "string"
                  },
                  "url_id": {
                    "type": "string",
                    "format": "uuid"
                  }
                }
              }
            },
            "effort_estimate": {
              "type": "string",
              "enum": [
                "quick",
                "medium",
                "high"
              ]
            },
            "fix_instructions": {
              "type": "string"
            }
          }
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}