{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commareports-com/json-schema/commareports-com-reviewer-schema.json",
  "title": "Reviewer",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commareports-com-reviewers-api-openapi.yml#/components/schemas/Reviewer",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "report_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid",
      "description": "null = applies to every report the owner has."
    },
    "name": {
      "type": "string"
    },
    "reviewer_url": {
      "type": "string",
      "format": "uri"
    },
    "prompt": {
      "type": [
        "string",
        "null"
      ]
    },
    "enabled": {
      "type": "boolean"
    },
    "auto_on_revision": {
      "type": "boolean",
      "description": "Run automatically whenever a new revision lands."
    },
    "last_run_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "last_run_status": {
      "type": [
        "string",
        "null"
      ]
    },
    "last_run_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "id",
    "name",
    "reviewer_url",
    "enabled",
    "auto_on_revision",
    "created_at",
    "updated_at"
  ]
}