{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/verifly-email/json-schema/verifly-email-domain-health-result-schema.json",
  "title": "DomainHealthResult",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/verifly-email-openapi.json#/components/schemas/DomainHealthResult",
  "type": "object",
  "properties": {
    "domain": {
      "type": "string"
    },
    "score": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "mx": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "exchange": {
            "type": "string"
          },
          "priority": {
            "type": "integer"
          }
        },
        "required": [
          "exchange",
          "priority"
        ]
      }
    },
    "spf": {
      "type": "object",
      "properties": {
        "found": {
          "type": "boolean"
        },
        "count": {
          "type": "integer"
        },
        "records": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "dmarc": {
      "type": "object",
      "properties": {
        "found": {
          "type": "boolean"
        },
        "policy": {
          "type": "string",
          "description": "none|quarantine|reject (empty when not found)."
        },
        "records": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "txtLookup": {
      "type": "object",
      "properties": {
        "rootError": {
          "type": "string"
        },
        "dmarcError": {
          "type": "string"
        }
      }
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "checkedAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "domain",
    "score",
    "mx",
    "spf",
    "dmarc"
  ]
}