{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dmarc-examiner-com/json-schema/dmarc-examiner-com-forensic-report-schema.json",
  "title": "ForensicReport",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dmarc-examiner-com-openapi.yaml#/components/schemas/ForensicReport",
  "type": "object",
  "required": [
    "id",
    "source_ip",
    "reported_domain",
    "auth_failure",
    "arrival_date",
    "created_at"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "domain": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "name": {
          "type": "string"
        }
      }
    },
    "source_ip": {
      "type": "string"
    },
    "original_mail_from": {
      "type": [
        "string",
        "null"
      ]
    },
    "reported_domain": {
      "type": "string"
    },
    "auth_failure": {
      "type": "string",
      "enum": [
        "dmarc",
        "spf",
        "dkim"
      ]
    },
    "delivery_result": {
      "type": [
        "string",
        "null"
      ]
    },
    "dkim_result": {
      "type": [
        "string",
        "null"
      ]
    },
    "spf_result": {
      "type": [
        "string",
        "null"
      ]
    },
    "arrival_date": {
      "type": "string",
      "format": "date-time"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}