{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/email-spam-tester-com/json-schema/email-spam-tester-com-dmarc-out-schema.json",
  "title": "DmarcOut",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/email-spam-tester-com-openapi.json#/components/schemas/DmarcOut",
  "properties": {
    "tool": {
      "type": "string",
      "title": "Tool"
    },
    "query": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Query",
      "description": "The inputs after normalisation."
    },
    "checked_at": {
      "type": "string",
      "title": "Checked At",
      "description": "When the lookups ran, ISO 8601 UTC."
    },
    "duration_ms": {
      "type": "integer",
      "title": "Duration Ms"
    },
    "status": {
      "type": "string",
      "enum": [
        "pass",
        "warn",
        "fail",
        "error"
      ],
      "title": "Status",
      "description": "Overall verdict. \"error\" means the check could not complete (timeout, SERVFAIL); it is never \"pass\" when a lookup the verdict needs failed."
    },
    "findings": {
      "items": {
        "$ref": "#/$defs/Finding"
      },
      "type": "array",
      "title": "Findings"
    },
    "name": {
      "type": "string",
      "title": "Name"
    },
    "found_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Found At",
      "description": "Domain whose _dmarc record applies; the organizational domain when the exact name has none (RFC 7489 §6.6.3)."
    },
    "record": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Record"
    },
    "tags": {
      "$ref": "#/$defs/DmarcTags"
    },
    "policy": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "none",
            "quarantine",
            "reject"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Policy",
      "description": "The policy that applies to the domain asked about: sp= when the record was inherited and has one, p= otherwise."
    }
  },
  "type": "object",
  "required": [
    "tool",
    "query",
    "checked_at",
    "duration_ms",
    "status",
    "findings",
    "name",
    "found_at",
    "record",
    "tags",
    "policy"
  ],
  "$defs": {
    "DmarcTags": {
      "properties": {
        "v": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "V"
        },
        "p": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "P"
        },
        "sp": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Sp"
        },
        "np": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Np"
        },
        "pct": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Pct"
        },
        "adkim": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Adkim"
        },
        "aspf": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Aspf"
        },
        "rua": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rua"
        },
        "ruf": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ruf"
        },
        "fo": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fo"
        },
        "ri": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ri"
        },
        "rf": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Rf"
        }
      },
      "type": "object",
      "title": "DmarcTags"
    },
    "Finding": {
      "properties": {
        "code": {
          "type": "string",
          "title": "Code",
          "description": "Stable identifier, e.g. spf.too_many_lookups. The English template for every code is in /i18n/tools/findings.en.json on the website."
        },
        "level": {
          "type": "string",
          "enum": [
            "pass",
            "info",
            "warn",
            "fail",
            "error"
          ],
          "title": "Level"
        },
        "params": {
          "additionalProperties": true,
          "type": "object",
          "title": "Params",
          "description": "Values the message is built from."
        },
        "message": {
          "type": "string",
          "title": "Message",
          "description": "The English sentence, params filled in."
        }
      },
      "type": "object",
      "required": [
        "code",
        "level",
        "params",
        "message"
      ],
      "title": "Finding"
    }
  }
}