{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agiscorecard-com/json-schema/agiscorecard-com-scan-report-schema.json",
  "title": "ScanReport",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentready-openapi.json#/components/schemas/ScanReport",
  "type": "object",
  "required": [
    "url",
    "score",
    "grade",
    "checks"
  ],
  "properties": {
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Normalized target URL that was scanned."
    },
    "scannedAt": {
      "type": "string",
      "format": "date-time"
    },
    "score": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "grade": {
      "type": "string"
    },
    "checks": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Check"
      }
    },
    "summary": {
      "type": "string",
      "description": "One-line human summary of the result."
    }
  },
  "additionalProperties": true,
  "$defs": {
    "Check": {
      "type": "object",
      "description": "One itemized check in the scan report.",
      "properties": {
        "id": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "earned": {
          "type": "number",
          "description": "Points earned."
        },
        "possible": {
          "type": "number",
          "description": "Points possible."
        },
        "status": {
          "type": "string",
          "enum": [
            "pass",
            "warn",
            "fail"
          ]
        },
        "detail": {
          "type": "string"
        },
        "fix": {
          "type": [
            "string",
            "null"
          ],
          "description": "Concrete fix suggestion; null when the check passes."
        }
      },
      "additionalProperties": true
    }
  }
}