{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aurinko/json-schema/aurinko-task-schema.json",
  "title": "Task",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aurinko-tasks-api-openapi.yml#/components/schemas/Task",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "etag": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "lastModifiedTime": {
      "type": "string",
      "format": "date-time"
    },
    "parentId": {
      "type": "string"
    },
    "position": {
      "type": "string"
    },
    "notes": {
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/TaskStatus"
    },
    "importance": {
      "$ref": "#/$defs/TaskImportance"
    },
    "due": {
      "type": "string",
      "format": "date-time"
    },
    "completed": {
      "type": "string",
      "format": "date-time"
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TaskLink"
      }
    },
    "startDateTime": {
      "type": "string",
      "format": "date-time"
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "owner": {
      "type": "string"
    },
    "omitted": {
      "type": "array",
      "readOnly": true,
      "items": {
        "type": "string",
        "enum": [
          "notes"
        ]
      }
    }
  },
  "$defs": {
    "TaskImportance": {
      "type": "string",
      "enum": [
        "low",
        "normal",
        "high"
      ]
    },
    "TaskLink": {
      "type": "object",
      "properties": {
        "source": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "link": {
          "type": "string"
        }
      }
    },
    "TaskStatus": {
      "type": "string",
      "enum": [
        "notStarted",
        "inProgress",
        "completed",
        "waitingOnOthers",
        "deferred"
      ]
    }
  }
}