{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/newruntime-com/json-schema/newruntime-com-week-in-review-index-schema.json",
  "title": "WeekInReviewIndex",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/newruntime-com-openapi.json#/components/schemas/WeekInReviewIndex",
  "type": "object",
  "required": [
    "schema_version",
    "type",
    "count",
    "weeks"
  ],
  "properties": {
    "schema_version": {
      "type": "string",
      "const": "newruntime-weeks-index-v0.1"
    },
    "type": {
      "type": "string",
      "const": "week_in_review_index"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "routes": {
      "type": "object"
    },
    "weeks": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "key",
          "label",
          "start",
          "end",
          "count",
          "html",
          "topics"
        ],
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^\\d{4}-w\\d{2}$"
          },
          "label": {
            "type": "string"
          },
          "start": {
            "type": "string",
            "format": "date"
          },
          "end": {
            "type": "string",
            "format": "date"
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "html": {
            "type": "string",
            "format": "uri"
          },
          "summary": {
            "type": [
              "object",
              "null"
            ],
            "description": "Model-written week summary labelled New Runtime synthesis: label, headline, paragraphs, key_stories (slug, why), source_note_count, generated_at; null until one is written."
          },
          "topics": {
            "type": "array",
            "items": {
              "type": "object",
              "description": "slug, label, count, notes (Field Note slugs)."
            }
          }
        }
      }
    }
  }
}