{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hangingcontext-com/json-schema/hangingcontext-com-latest-stories-schema.json",
  "title": "LatestStories",
  "description": "The latest stories, the topics and the feeds.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hangingcontext-com-openapi.json#/components/schemas/LatestStories",
  "type": "object",
  "required": [
    "stories",
    "generated_at"
  ],
  "properties": {
    "description": {
      "type": "string"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "stories": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StorySummary"
      }
    },
    "published_last_24h": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/StorySummary"
      }
    },
    "newsrooms": {
      "type": "array",
      "description": "The topics. Use id as the topic slug.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "json": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "feeds": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "format": "uri"
      }
    }
  },
  "additionalProperties": true,
  "$defs": {
    "StorySummary": {
      "type": "object",
      "description": "A story in a list.",
      "required": [
        "slug",
        "url",
        "headline",
        "published_at"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "json": {
          "type": "string",
          "format": "uri"
        },
        "markdown": {
          "type": "string",
          "format": "uri"
        },
        "headline": {
          "type": "string"
        },
        "dek": {
          "type": "string"
        },
        "beat": {
          "type": [
            "string",
            "null"
          ]
        },
        "published_at": {
          "type": "string",
          "format": "date-time"
        },
        "trust": {
          "type": "string"
        },
        "source_count": {
          "type": "integer"
        },
        "cited_manifest_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": true
    }
  }
}