{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aicertificates-study/json-schema/aicertificates-study-readiness-stats-schema.json",
  "title": "ReadinessStats",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aicertificates-study-openapi.json#/components/schemas/ReadinessStats",
  "type": "object",
  "required": [
    "exams"
  ],
  "properties": {
    "exams": {
      "type": "object",
      "description": "Keyed by exam slug.",
      "additionalProperties": {
        "$ref": "#/$defs/ExamStats"
      }
    }
  },
  "$defs": {
    "ExamStats": {
      "type": "object",
      "required": [
        "show"
      ],
      "description": "`show: false` means too few attempts to publish; no other field is present.",
      "properties": {
        "show": {
          "type": "boolean"
        },
        "cohortKey": {
          "type": "string",
          "description": "Cohort month, e.g. \"2026-08\"."
        },
        "cohortCount": {
          "type": "integer",
          "description": "Counted attempts in the cohort."
        },
        "median": {
          "type": "integer",
          "description": "Median score out of 12."
        }
      }
    }
  }
}