{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hashdit/json-schema/hashdit-domain-security-request-schema.json",
  "title": "DomainSecurityRequest",
  "x-generated": "2026-11-16",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hashdit-openapi.json#/components/schemas/DomainSecurityRequest",
  "type": "object",
  "required": [
    "url"
  ],
  "properties": {
    "url": {
      "type": "string",
      "description": "The domain or URL to analyze. A scheme, path and query string are accepted and normalized."
    },
    "liveness_check": {
      "type": "boolean",
      "default": false,
      "description": "When `true`, also report whether a visitor opening this URL would see usable content. Adds latency. A healthy server answering a request is not sufficient. Also accepts `liveness_check`."
    },
    "liveness_policy": {
      "type": "string",
      "enum": [
        "lenient",
        "strict",
        "evidence"
      ],
      "default": "lenient",
      "description": "How to resolve the case where the check was blocked and cannot tell whether a visitor would have been. Only meaningful when `liveness_check` is `true`. Any other value is rejected with HTTP 422. Also accepts `liveness_policy`. Switching policy never changes `risk_level`.\n\n- `lenient` (default) — blocked check is `accessible`. Use when warning users: a site that only blocks automation still works for the person about to click it.\n- `strict` — blocked check is `not_accessible`. Use when vetting a submitted site; expect some manual review.\n- `evidence` — returns no verdict; `status` is `null` and you decide from `http_status`"
    }
  }
}