{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/git-top/json-schema/git-top-governance-run-input-schema.json",
  "title": "GovernanceRunInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/git-top-admin-api-openapi.yml#/components/schemas/GovernanceRunInput",
  "type": "object",
  "required": [
    "task",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "task": {
      "type": "string",
      "description": "Short governance task identifier."
    },
    "status": {
      "type": "string",
      "enum": [
        "success",
        "failed",
        "running",
        "skipped"
      ]
    },
    "trigger": {
      "type": "string",
      "enum": [
        "github_actions",
        "cron",
        "admin",
        "manual"
      ]
    },
    "started_at": {
      "type": "string",
      "format": "date-time"
    },
    "finished_at": {
      "type": "string",
      "format": "date-time"
    },
    "duration_ms": {
      "type": "integer"
    },
    "summary": {
      "type": "object"
    },
    "report_url": {
      "type": "string"
    },
    "error": {
      "type": "string"
    }
  }
}