{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/saaskly-com/json-schema/saaskly-com-readiness-scan-schema.json",
  "title": "ReadinessScan",
  "description": "An AI readiness check of one domain: the scanner summary (layers, actionable fixes, passing checks, AgentReady 1.0 conformance, attribution) and, on request, every check row.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/saaskly-com-openapi.json#/components/schemas/ReadinessScan",
  "type": "object",
  "properties": {
    "domain": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "running",
        "complete",
        "partial",
        "blocked",
        "failed"
      ]
    },
    "profile": {
      "type": "string",
      "enum": [
        "saas",
        "services"
      ]
    },
    "scannedAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "cacheExpiresAt": {
      "type": [
        "string",
        "null"
      ]
    },
    "score": {
      "type": [
        "number",
        "null"
      ],
      "description": "Out of 100. Null when the site refused the crawler: such a site is blocked, not scored."
    },
    "blocked": {
      "type": "object",
      "description": "Present when the site turned the crawler away (status is then blocked and score, grade and summary are null).",
      "properties": {
        "reason": {
          "type": "string"
        },
        "httpStatus": {
          "type": [
            "integer",
            "null"
          ]
        },
        "details": {
          "type": "string"
        }
      }
    },
    "grade": {
      "type": [
        "string",
        "null"
      ]
    },
    "gradeLabel": {
      "type": [
        "string",
        "null"
      ]
    },
    "conforms": {
      "type": "boolean"
    },
    "summary": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "checks": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "markdown": {
      "type": "string",
      "format": "uri"
    }
  }
}