{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nessflow-com/json-schema/nessflow-com-accessibility-report-schema.json",
  "title": "AccessibilityReport",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nessflow-com-openapi.json#/components/schemas/AccessibilityReport",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "crawl_id",
    "status",
    "score",
    "score_version",
    "standard",
    "origin",
    "rgaa_compliance_rate",
    "pages_analyzed",
    "pages_total",
    "rendered_pages_analyzed",
    "rendered_pages_total",
    "render_mode",
    "is_protected",
    "contrast_status",
    "contrast_incomplete_count",
    "axes",
    "conformance",
    "rules",
    "by_principle",
    "contrast_pairs",
    "hints",
    "manual_checks"
  ],
  "properties": {
    "crawl_id": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "type": "string",
      "enum": [
        "ready",
        "pending",
        "unavailable"
      ]
    },
    "score": {
      "type": [
        "integer",
        "null"
      ]
    },
    "score_version": {
      "type": [
        "integer",
        "null"
      ]
    },
    "standard": {
      "type": [
        "string",
        "null"
      ]
    },
    "origin": {
      "type": [
        "string",
        "null"
      ]
    },
    "rgaa_compliance_rate": {
      "type": [
        "integer",
        "null"
      ]
    },
    "pages_analyzed": {
      "type": [
        "integer",
        "null"
      ]
    },
    "pages_total": {
      "type": [
        "integer",
        "null"
      ]
    },
    "fetch_failure_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Stable reason code when no page could be read for the audit although the crawl had read them (`pages_analyzed` 0, `pages_total` above 0); `null` otherwise, or for a run older than the recording of reasons."
    },
    "rendered_pages_analyzed": {
      "type": [
        "integer",
        "null"
      ]
    },
    "rendered_pages_total": {
      "type": [
        "integer",
        "null"
      ]
    },
    "render_mode": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_protected": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "contrast_status": {
      "type": [
        "string",
        "null"
      ]
    },
    "contrast_incomplete_count": {
      "type": [
        "integer",
        "null"
      ]
    },
    "axes": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "conformance": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true,
      "description": "WCAG conformance by level."
    },
    "rules": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "by_principle": {
      "type": [
        "array",
        "object",
        "null"
      ],
      "description": "Violations grouped by WCAG principle."
    },
    "contrast_pairs": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "hints": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ReportHint"
      }
    },
    "manual_checks": {
      "type": "array",
      "description": "What no automated tool can verify, to check by hand.",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "ReportHint": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "key",
        "priority"
      ],
      "properties": {
        "key": {
          "type": "string"
        },
        "priority": {
          "type": "string",
          "enum": [
            "high",
            "medium",
            "low"
          ]
        }
      }
    }
  }
}