{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agilehero-io/json-schema/agilehero-io-list-schema.json",
  "title": "List",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agilehero-io-projects-api-openapi.yml#/components/schemas/List",
  "type": "object",
  "required": [
    "id",
    "name",
    "category",
    "position",
    "limit",
    "color",
    "project",
    "done",
    "cards_count"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "category": {
      "type": "string",
      "enum": [
        "to_do",
        "in_progress",
        "done"
      ]
    },
    "position": {
      "type": "integer",
      "description": "Order within the board (lists are grouped by category first)."
    },
    "limit": {
      "type": [
        "integer",
        "null"
      ],
      "description": "The work-in-progress limit (guidance only; the app never blocks a move)."
    },
    "color": {
      "type": [
        "string",
        "null"
      ]
    },
    "project": {
      "$ref": "#/$defs/Reference"
    },
    "done": {
      "type": "boolean",
      "description": "Whether cards in this list count as finished (the `done` category)."
    },
    "cards_count": {
      "type": "integer"
    }
  },
  "$defs": {
    "Reference": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}