{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-suspects-response-schema.json",
  "title": "SuspectsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repowise-dev-changes-api-openapi.yml#/components/schemas/SuspectsResponse",
  "properties": {
    "window": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Window"
    },
    "candidates": {
      "type": "integer",
      "title": "Candidates"
    },
    "candidates_capped": {
      "type": "boolean",
      "title": "Candidates Capped"
    },
    "texts_missing": {
      "type": "integer",
      "title": "Texts Missing",
      "default": 0
    },
    "symptom_files": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Symptom Files",
      "default": []
    },
    "suspects": {
      "items": {
        "$ref": "#/$defs/Suspect"
      },
      "type": "array",
      "title": "Suspects"
    },
    "note": {
      "type": "string",
      "title": "Note"
    }
  },
  "type": "object",
  "required": [
    "window",
    "candidates",
    "candidates_capped",
    "suspects",
    "note"
  ],
  "$defs": {
    "Suspect": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "ref": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ref"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "merged_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Merged At"
        },
        "category": {
          "type": "string",
          "title": "Category"
        },
        "head_sha": {
          "type": "string",
          "title": "Head Sha"
        },
        "files_changed": {
          "type": "integer",
          "title": "Files Changed"
        },
        "provenance": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Provenance"
        },
        "rank": {
          "type": "integer",
          "title": "Rank"
        },
        "signals": {
          "additionalProperties": {
            "$ref": "#/$defs/SuspectSignal"
          },
          "type": "object",
          "title": "Signals"
        }
      },
      "type": "object",
      "required": [
        "id",
        "title",
        "category",
        "head_sha",
        "files_changed",
        "rank",
        "signals"
      ],
      "title": "Suspect",
      "description": "One change in reading order; ``signals`` holds each signal that fired."
    },
    "SuspectSignal": {
      "properties": {
        "rank": {
          "type": "integer",
          "title": "Rank"
        },
        "evidence": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Evidence"
        }
      },
      "type": "object",
      "required": [
        "rank",
        "evidence"
      ],
      "title": "SuspectSignal"
    }
  }
}