{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/intodns-ai/json-schema/intodns-ai-security-headers-analyze-result-schema.json",
  "title": "SecurityHeadersAnalyzeResult",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/intodns-ai-openapi.json#/components/schemas/SecurityHeadersAnalyzeResult",
  "type": "object",
  "properties": {
    "domain": {
      "type": "string"
    },
    "scannedAt": {
      "type": "string",
      "format": "date-time"
    },
    "httpsAvailable": {
      "type": "boolean"
    },
    "headerFetchTimedOut": {
      "type": "boolean",
      "description": "When true, header absence could not be verified — every status is 'unknown' and a note is set"
    },
    "note": {
      "type": "string",
      "description": "Present only when the header fetch timed out"
    },
    "current": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "present": {
            "type": "boolean"
          },
          "value": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "pass",
              "missing",
              "unknown"
            ]
          }
        }
      }
    },
    "missing": {
      "type": "array",
      "description": "Header names confidently missing (empty when the fetch timed out)",
      "items": {
        "type": "string"
      }
    },
    "recommended": {
      "type": "object",
      "description": "The recommended baseline security-headers config"
    },
    "outputs": {
      "type": "object",
      "description": "Ready-to-paste recommended configuration per server format"
    },
    "warnings": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}