{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://workspai.dev/schemas/workspace-list.v1.json",
  "title": "Workspai Workspace List",
  "type": "object",
  "required": [
    "schemaVersion",
    "registryPath",
    "workspaces",
    "summary"
  ],
  "properties": {
    "schemaVersion": {
      "const": "rapidkit-workspace-list-v1"
    },
    "registryPath": {
      "type": "string",
      "minLength": 1
    },
    "workspaces": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "summary": {
      "type": "object",
      "required": [
        "total",
        "missing",
        "registryExists",
        "registryValid",
        "cleanupApplied"
      ],
      "properties": {
        "total": {
          "type": "integer",
          "minimum": 0
        },
        "missing": {
          "type": "integer",
          "minimum": 0
        },
        "registryExists": {
          "type": "boolean"
        },
        "registryValid": {
          "type": "boolean"
        },
        "cleanupApplied": {
          "type": "boolean"
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": true
}
