{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/craaft-io/json-schema/craaft-io-public-board-schema.json",
  "title": "PublicBoard",
  "description": "Read-only snapshot returned by the unauthenticated\n`GET /public/projects/{token}` endpoint. A trimmed projection of the\nboard: no workspace/ownership fields, no card metadata beyond\npriority + assignee.\n",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/craaft-io-public-api-openapi.yml#/components/schemas/PublicBoard",
  "type": "object",
  "required": [
    "project",
    "columns",
    "cards"
  ],
  "properties": {
    "project": {
      "type": "object",
      "required": [
        "id",
        "name",
        "updatedAt"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string",
          "maxLength": 200
        },
        "description": {
          "type": "string"
        },
        "backgroundImage": {
          "type": "string"
        },
        "backgroundColor": {
          "type": "string"
        },
        "colorScheme": {
          "type": "string"
        },
        "textColor": {
          "type": "string",
          "enum": [
            "dark",
            "light"
          ]
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "columns": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "key",
          "title",
          "position"
        ],
        "properties": {
          "key": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "maxLength": 80
          },
          "color": {
            "type": "string"
          },
          "position": {
            "type": "number",
            "format": "double"
          },
          "isDone": {
            "type": "boolean"
          }
        }
      }
    },
    "cards": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "column",
          "position",
          "title"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "column": {
            "type": "string",
            "description": "column.key"
          },
          "position": {
            "type": "number",
            "format": "double"
          },
          "title": {
            "type": "string",
            "maxLength": 500
          },
          "description": {
            "type": "string"
          },
          "priority": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "low",
              "medium",
              "high",
              "urgent"
            ]
          },
          "assignedUserId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid"
          },
          "assignedUserName": {
            "type": [
              "string",
              "null"
            ]
          },
          "assignedUserAvatarUrl": {
            "type": "string"
          }
        }
      }
    }
  }
}