{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repowise-dev/json-schema/repowise-dev-health-finding-response-schema.json",
  "title": "HealthFindingResponse",
  "description": "One biomarker finding, as the table and drawer read it.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repowise-dev-code-health-api-openapi.yml#/components/schemas/HealthFindingResponse",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "file_path": {
      "type": "string",
      "title": "File Path"
    },
    "biomarker_type": {
      "type": "string",
      "title": "Biomarker Type"
    },
    "severity": {
      "type": "string",
      "title": "Severity"
    },
    "function_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Function Name"
    },
    "line_start": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Line Start"
    },
    "line_end": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Line End"
    },
    "health_impact": {
      "type": "number",
      "title": "Health Impact"
    },
    "reason": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reason"
    },
    "details": {
      "additionalProperties": true,
      "type": "object",
      "title": "Details",
      "default": {}
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "dimension": {
      "type": "string",
      "title": "Dimension",
      "default": "defect"
    },
    "verification": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Verification"
    },
    "lower_priority": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lower Priority"
    },
    "preview": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Preview"
    }
  },
  "type": "object",
  "required": [
    "id",
    "file_path",
    "biomarker_type",
    "severity",
    "health_impact",
    "status"
  ]
}