{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bernstein-run/json-schema/bernstein-run-workspace-response-schema.json",
  "title": "WorkspaceResponse",
  "description": "Workspace repository status payload.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bernstein-run-workspace-api-openapi.yml#/components/schemas/WorkspaceResponse",
  "properties": {
    "repos": {
      "items": {
        "$ref": "#/$defs/WorkspaceRepoResponse"
      },
      "type": "array",
      "title": "Repos"
    }
  },
  "type": "object",
  "required": [
    "repos"
  ],
  "$defs": {
    "WorkspaceRepoResponse": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "path": {
          "type": "string",
          "title": "Path"
        },
        "branch": {
          "type": "string",
          "title": "Branch"
        },
        "clean": {
          "type": "boolean",
          "title": "Clean"
        },
        "ahead": {
          "type": "integer",
          "title": "Ahead"
        },
        "behind": {
          "type": "integer",
          "title": "Behind"
        }
      },
      "type": "object",
      "required": [
        "name",
        "path",
        "branch",
        "clean",
        "ahead",
        "behind"
      ],
      "title": "WorkspaceRepoResponse",
      "description": "Workspace repository status entry."
    }
  }
}