{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/astraverify-com/json-schema/astraverify-com-email-result-schema.json",
  "title": "EmailResult",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/astraverify-com-openapi.json#/components/schemas/EmailResult",
  "properties": {
    "cache_age_seconds": {
      "type": "integer"
    },
    "capped": {
      "type": "boolean"
    },
    "components": {
      "items": {
        "$ref": "#/$defs/Component"
      },
      "type": "array"
    },
    "domain": {
      "type": "string"
    },
    "grade": {
      "type": "string"
    },
    "held_back": {
      "description": "Points the cap holds back; components add up to score + held_back",
      "type": "integer"
    },
    "null_mx": {
      "type": "boolean"
    },
    "open_fixes": {
      "type": "integer"
    },
    "provider": {
      "type": "string"
    },
    "raw": {
      "type": "integer"
    },
    "recommendations": {
      "items": {
        "$ref": "#/$defs/Recommendation"
      },
      "type": "array"
    },
    "records": {
      "additionalProperties": {
        "items": {
          "type": "object"
        },
        "type": "array"
      },
      "description": "DNS records found, keyed mx, spf, dkim, dmarc",
      "type": "object"
    },
    "report_url": {
      "type": "string"
    },
    "score": {
      "type": "integer"
    }
  },
  "type": "object",
  "$defs": {
    "Component": {
      "description": "One scored area",
      "properties": {
        "key": {
          "type": "string"
        },
        "max": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "points": {
          "type": "integer"
        },
        "summary": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "Fix": {
      "description": "The record, tag or file to add",
      "properties": {
        "kind": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "value": {
          "type": "string"
        },
        "where": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "Recommendation": {
      "properties": {
        "fix": {
          "$ref": "#/$defs/Fix"
        },
        "id": {
          "type": "string"
        },
        "scan": {
          "enum": [
            "email",
            "discoverability"
          ],
          "type": "string"
        },
        "severity": {
          "enum": [
            "critical",
            "important",
            "info"
          ],
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "why": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}