{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Task",
  "title": "Task",
  "type": "object",
  "description": "A content task in the CMP workflow",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the task"
    },
    "title": {
      "type": "string",
      "description": "Title of the task"
    },
    "description": {
      "type": "string",
      "description": "Description of the task"
    },
    "status": {
      "type": "string",
      "description": "Current workflow status of the task"
    },
    "assignee": {
      "type": "object",
      "description": "User assigned to the task",
      "properties": {
        "id": {
          "type": "string",
          "description": "User identifier"
        },
        "name": {
          "type": "string",
          "description": "User display name"
        }
      }
    },
    "due_date": {
      "type": "string",
      "format": "date",
      "description": "Due date for the task"
    },
    "campaign_id": {
      "type": "string",
      "description": "Associated campaign identifier"
    },
    "labels": {
      "type": "array",
      "description": "Labels associated with the task",
      "items": {
        "type": "string"
      }
    },
    "assets": {
      "type": "array",
      "description": "Assets attached to the task",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Asset identifier"
          },
          "type": {
            "type": "string",
            "description": "Asset type"
          }
        }
      }
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the task was created"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Timestamp when the task was last updated"
    }
  }
}