{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/condux-ai/json-schema/condux-ai-cve-fix-run-schema.json",
  "title": "CveFixRun",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/condux-ai-openapi.yml#/components/schemas/CveFixRun",
  "required": [
    "id",
    "repoLinkId",
    "ghsaId",
    "cveId",
    "package",
    "ecosystem",
    "fromRange",
    "toVersion",
    "advisoryUrl",
    "status",
    "provider",
    "model",
    "branch",
    "prUrl",
    "summary",
    "actor",
    "createdAt",
    "updatedAt"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "repoLinkId": {
      "type": "string",
      "format": "uuid"
    },
    "ghsaId": {
      "type": "string"
    },
    "cveId": {
      "type": [
        "string",
        "null"
      ]
    },
    "package": {
      "type": "string"
    },
    "ecosystem": {
      "type": "string"
    },
    "fromRange": {
      "type": "string"
    },
    "toVersion": {
      "type": "string"
    },
    "advisoryUrl": {
      "type": "string"
    },
    "status": {
      "$ref": "#/$defs/FixStatus"
    },
    "provider": {
      "type": "string"
    },
    "model": {
      "type": "string"
    },
    "branch": {
      "type": "string"
    },
    "prUrl": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "actor": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "inputTokens": {
      "type": "integer",
      "format": "int64"
    },
    "outputTokens": {
      "type": "integer",
      "format": "int64"
    },
    "failureReason": {
      "oneOf": [
        {
          "enum": [
            null
          ],
          "nullable": true
        },
        {
          "$ref": "#/$defs/FixFailureReason"
        }
      ]
    },
    "mergedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "verifyStatus": {
      "$ref": "#/$defs/VerifyStatus"
    },
    "verifiedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "verifyEvidence": {
      "oneOf": [
        {
          "enum": [
            null
          ],
          "nullable": true
        },
        {
          "$ref": "#/$defs/CveFixEvidence"
        }
      ]
    }
  },
  "$defs": {
    "CannotVerifyReason": {
      "type": "integer"
    },
    "CveFixEvidence": {
      "required": [
        "evaluatedAt",
        "quietSince",
        "mergedAt",
        "target",
        "ranges",
        "complete",
        "reason",
        "sightings"
      ],
      "type": "object",
      "properties": {
        "evaluatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "quietSince": {
          "type": "string",
          "format": "date-time"
        },
        "mergedAt": {
          "type": "string",
          "format": "date-time"
        },
        "target": {
          "type": "string"
        },
        "ranges": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "complete": {
          "type": "boolean"
        },
        "reason": {
          "oneOf": [
            {
              "enum": [
                null
              ],
              "nullable": true
            },
            {
              "$ref": "#/$defs/CannotVerifyReason"
            }
          ]
        },
        "sightings": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CveFixEvidenceSighting"
          }
        }
      }
    },
    "CveFixEvidenceSighting": {
      "required": [
        "version",
        "environment",
        "release",
        "lastSeen",
        "class",
        "inWindow"
      ],
      "type": "object",
      "properties": {
        "version": {
          "type": "string"
        },
        "environment": {
          "type": "string"
        },
        "release": {
          "type": "string"
        },
        "lastSeen": {
          "type": "string",
          "format": "date-time"
        },
        "class": {
          "$ref": "#/$defs/SightingClass"
        },
        "inWindow": {
          "type": "boolean"
        }
      }
    },
    "FixFailureReason": {
      "type": "integer"
    },
    "FixStatus": {
      "type": "integer"
    },
    "SightingClass": {
      "type": "integer"
    },
    "VerifyStatus": {
      "type": "integer"
    }
  }
}