{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-comment-anchor-schema.json",
  "title": "CommentAnchor",
  "description": "What a thread is about. `job` is the run as a whole; `turn` is one turn of its\ntranscript; `selection` is text someone highlighted, copied at create (up to 500\ncharacters) so the comment still reads right if the transcript is re-processed.\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-comments-api-openapi.yml#/components/schemas/CommentAnchor",
  "type": "object",
  "required": [
    "kind"
  ],
  "properties": {
    "kind": {
      "type": "string",
      "enum": [
        "job",
        "turn",
        "selection"
      ]
    },
    "turnIndex": {
      "type": "integer",
      "minimum": 0,
      "description": "Zero-based. Required for `turn`, optional for `selection`."
    },
    "role": {
      "type": "string",
      "maxLength": 32,
      "description": "Who said the turn, as the page labels it."
    },
    "quote": {
      "type": "string",
      "maxLength": 500,
      "description": "Required for `selection`."
    }
  }
}