{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/condux-ai/json-schema/condux-ai-fix-detail-schema.json",
  "title": "FixDetail",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/condux-ai-openapi.yml#/components/schemas/FixDetail",
  "required": [
    "id",
    "issuePublicId",
    "issueTitle",
    "issueLevel",
    "status",
    "verifyStatus",
    "repoFullName",
    "provider",
    "model",
    "branch",
    "prUrl",
    "summary",
    "createdAt",
    "updatedAt",
    "mergedAt",
    "verifiedAt",
    "archived",
    "viewed",
    "inputTokens",
    "outputTokens",
    "costUsd",
    "audit"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "issuePublicId": {
      "type": "string",
      "format": "uuid"
    },
    "issueTitle": {
      "type": "string"
    },
    "issueLevel": {
      "type": "integer",
      "format": "int32"
    },
    "status": {
      "$ref": "#/$defs/FixStatus"
    },
    "verifyStatus": {
      "$ref": "#/$defs/VerifyStatus"
    },
    "repoFullName": {
      "type": "string"
    },
    "provider": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "branch": {
      "type": "string"
    },
    "prUrl": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "mergedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "verifiedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "archived": {
      "type": "boolean"
    },
    "viewed": {
      "type": "boolean"
    },
    "inputTokens": {
      "type": "integer",
      "format": "int64"
    },
    "outputTokens": {
      "type": "integer",
      "format": "int64"
    },
    "costUsd": {
      "type": [
        "number",
        "null"
      ],
      "format": "double"
    },
    "audit": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FixAuditEntry"
      }
    },
    "failureReason": {
      "oneOf": [
        {
          "enum": [
            null
          ],
          "nullable": true
        },
        {
          "$ref": "#/$defs/FixFailureReason"
        }
      ]
    }
  },
  "$defs": {
    "FixAuditEntry": {
      "required": [
        "actor",
        "event",
        "createdAt"
      ],
      "type": "object",
      "properties": {
        "actor": {
          "type": "string"
        },
        "event": {
          "type": "string"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "FixFailureReason": {
      "type": "integer"
    },
    "FixStatus": {
      "type": "integer"
    },
    "VerifyStatus": {
      "type": "integer"
    }
  }
}