{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hacktron/json-schema/hacktron-rest-scan-response-dto-schema.json",
  "title": "RestScanResponseDto",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hacktron-openapi.json#/components/schemas/RestScanResponseDto",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "task_id": {
      "type": "string"
    },
    "scan_type": {
      "type": "string",
      "enum": [
        "pr",
        "full"
      ]
    },
    "status": {
      "type": "string"
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "repo_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "branch": {
      "type": [
        "string",
        "null"
      ]
    },
    "pr_number": {
      "type": [
        "number",
        "null"
      ]
    },
    "target_urls": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "findings_summary": {
      "$ref": "#/$defs/RestScanFindingsSummaryDto"
    },
    "created_at": {
      "type": "string"
    },
    "updated_at": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "task_id",
    "scan_type",
    "status",
    "name",
    "repo_url",
    "branch",
    "pr_number",
    "target_urls",
    "findings_summary",
    "created_at",
    "updated_at"
  ],
  "$defs": {
    "RestScanFindingsSummaryDto": {
      "type": "object",
      "properties": {
        "critical": {
          "type": "number"
        },
        "high": {
          "type": "number"
        },
        "medium": {
          "type": "number"
        },
        "low": {
          "type": "number"
        },
        "info": {
          "type": "number"
        }
      },
      "required": [
        "critical",
        "high",
        "medium",
        "low",
        "info"
      ]
    }
  }
}