{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/groundmail-dev/json-schema/groundmail-dev-validate-email-response-schema.json",
  "title": "ValidateEmailResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/groundmail-dev-validation-api-openapi.yml#/components/schemas/ValidateEmailResponse",
  "type": "object",
  "required": [
    "email",
    "domain",
    "verdict",
    "reasons",
    "suggestion",
    "disposable",
    "role"
  ],
  "properties": {
    "email": {
      "type": "string",
      "description": "The address as checked (trimmed, lowercased)"
    },
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "verdict": {
      "type": "string",
      "enum": [
        "valid",
        "risky",
        "invalid"
      ],
      "description": "`valid`: nothing wrong found. `risky`: can probably receive email but deserves a second look (disposable, catch-all, likely typo). `invalid`: cannot receive email.\n"
    },
    "reasons": {
      "type": "array",
      "description": "What was found. Invalid: `syntax`, `no_mail_server`, `mailbox_not_found`, `previously_bounced`. Risky: `disposable`, `catch_all`, `possible_typo`. Informational (does not change the verdict): `role`.\n",
      "items": {
        "type": "string",
        "enum": [
          "syntax",
          "no_mail_server",
          "mailbox_not_found",
          "previously_bounced",
          "disposable",
          "catch_all",
          "possible_typo",
          "role"
        ]
      }
    },
    "suggestion": {
      "type": [
        "string",
        "null"
      ],
      "description": "The address with a likely-mistyped domain corrected, or null"
    },
    "disposable": {
      "type": "boolean",
      "description": "A throwaway-inbox service"
    },
    "role": {
      "type": "boolean",
      "description": "A team or queue mailbox such as `info@` or `support@`"
    }
  }
}