{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/taskaid-ai/json-schema/taskaid-ai-task-schema.json",
  "title": "Task",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/taskaid-ai-openapi.json#/components/schemas/Task",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "completed": {
      "type": "boolean"
    },
    "starred": {
      "type": "boolean"
    },
    "when": {
      "type": [
        "string",
        "null"
      ],
      "description": "Calendar date, \"YYYY-MM-DD\", or null for Inbox."
    },
    "reminder": {
      "type": [
        "string",
        "null"
      ],
      "description": "Time of day on the `when` day, \"HH:MM\", or null for none."
    },
    "note": {
      "type": [
        "string",
        "null"
      ]
    },
    "duration": {
      "type": [
        "number",
        "null"
      ]
    },
    "completedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string"
    },
    "updatedAt": {
      "type": "string"
    },
    "source": {
      "type": [
        "string",
        "null"
      ]
    },
    "list": {
      "type": [
        "object",
        "null"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "emoji": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "name",
        "emoji"
      ]
    }
  },
  "required": [
    "id",
    "url",
    "name",
    "completed",
    "starred",
    "when",
    "reminder",
    "note",
    "duration",
    "completedAt",
    "createdAt",
    "updatedAt",
    "source",
    "list"
  ]
}