{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/balladic-com/json-schema/balladic-com-board-response-schema.json",
  "title": "BoardResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/balladic-com-board-api-openapi.yml#/components/schemas/BoardResponse",
  "properties": {
    "columns": {
      "items": {
        "$ref": "#/$defs/BoardColumn"
      },
      "type": "array",
      "title": "Columns",
      "default": []
    }
  },
  "type": "object",
  "$defs": {
    "BoardColumn": {
      "properties": {
        "column_id": {
          "type": "string",
          "format": "uuid",
          "title": "Column Id"
        },
        "nodes": {
          "items": {
            "oneOf": [
              {
                "$ref": "#/$defs/TaskNode"
              },
              {
                "$ref": "#/$defs/ContainerNode"
              }
            ]
          },
          "type": "array",
          "title": "Nodes",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "column_id"
      ],
      "title": "BoardColumn"
    },
    "ContainerNode": {
      "properties": {
        "type": {
          "type": "string",
          "const": "container",
          "title": "Type",
          "default": "container"
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "position": {
          "type": "integer",
          "title": "Position"
        },
        "tasks": {
          "items": {
            "$ref": "#/$defs/TaskNode"
          },
          "type": "array",
          "title": "Tasks",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "id",
        "title",
        "position"
      ],
      "title": "ContainerNode"
    },
    "HeightHints": {
      "properties": {
        "tag_count": {
          "type": "integer",
          "title": "Tag Count",
          "default": 0
        },
        "assignee_count": {
          "type": "integer",
          "title": "Assignee Count",
          "default": 0
        },
        "comment_count": {
          "type": "integer",
          "title": "Comment Count",
          "default": 0
        },
        "has_deadline": {
          "type": "boolean",
          "title": "Has Deadline",
          "default": false
        },
        "timer_running": {
          "type": "boolean",
          "title": "Timer Running",
          "default": false
        },
        "priority_level": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Priority Level"
        },
        "pending_approval": {
          "type": "boolean",
          "title": "Pending Approval",
          "default": false
        },
        "links": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Links",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "tag_count",
        "assignee_count",
        "comment_count",
        "has_deadline",
        "timer_running",
        "priority_level",
        "pending_approval",
        "links"
      ],
      "title": "HeightHints"
    },
    "TaskNode": {
      "properties": {
        "type": {
          "type": "string",
          "const": "task",
          "title": "Type",
          "default": "task"
        },
        "id": {
          "type": "string",
          "format": "uuid",
          "title": "Id"
        },
        "number": {
          "type": "integer",
          "title": "Number"
        },
        "slug": {
          "type": "string",
          "title": "Slug"
        },
        "state": {
          "$ref": "#/$defs/TaskState"
        },
        "position": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Position"
        },
        "container_position": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Container Position"
        },
        "done_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Done At"
        },
        "deadline_date": {
          "anyOf": [
            {
              "type": "string",
              "format": "date"
            },
            {
              "type": "null"
            }
          ],
          "title": "Deadline Date"
        },
        "hints": {
          "$ref": "#/$defs/HeightHints"
        }
      },
      "type": "object",
      "required": [
        "type",
        "id",
        "number",
        "slug",
        "state",
        "position",
        "container_position",
        "done_at",
        "deadline_date",
        "hints"
      ],
      "title": "TaskNode"
    },
    "TaskState": {
      "type": "string",
      "enum": [
        "waiting",
        "active",
        "done"
      ],
      "title": "TaskState"
    }
  }
}