{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scanmalware-com/json-schema/scanmalware-com-scan-report-schema.json",
  "title": "ScanReport",
  "description": "Model for reporting issues with scanned URLs",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scanmalware-com-openapi.json#/components/schemas/ScanReport",
  "properties": {
    "scan_id": {
      "type": "string",
      "pattern": "^[a-f0-9-]{36}$",
      "title": "Scan Id",
      "description": "Scan ID to report"
    },
    "report_type": {
      "type": "string",
      "pattern": "^(positive_feedback|phishing|spam|counterfeit|scam|broken_scan|malware|illegal_content|copyright|technical_issue|other)$",
      "title": "Report Type"
    },
    "report_details": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Report Details",
      "description": "Additional details, especially for 'other' category"
    },
    "captcha_answer": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Captcha Answer",
      "description": "Captcha answer"
    },
    "captcha_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Captcha Token",
      "description": "Captcha token"
    },
    "skip_captcha": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Skip Captcha",
      "description": "Skip captcha for positive feedback",
      "default": false
    },
    "voter_token": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Voter Token",
      "description": "Random per-browser id sent with Mark as Safe / Mark as Malicious, so a vote can be changed"
    }
  },
  "type": "object",
  "required": [
    "scan_id",
    "report_type"
  ]
}