{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hangingcontext-com/json-schema/hangingcontext-com-story-schema.json",
  "title": "Story",
  "description": "One story with the Manifests it cites.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hangingcontext-com-openapi.json#/components/schemas/Story",
  "type": "object",
  "required": [
    "slug",
    "url",
    "headline",
    "published_at",
    "sections",
    "cited_manifest_ids"
  ],
  "properties": {
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "headline": {
      "type": "string"
    },
    "dek": {
      "type": "string"
    },
    "published_at": {
      "type": "string",
      "format": "date-time"
    },
    "key_facts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "manifest_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": true
      }
    },
    "sections": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "unresolved": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cited_manifest_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "manifests": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "reuse": {
      "$ref": "#/$defs/ReuseTerms"
    }
  },
  "additionalProperties": true,
  "$defs": {
    "ReuseTerms": {
      "type": "object",
      "description": "The reuse terms for stories.",
      "properties": {
        "version": {
          "type": "string"
        },
        "summary": {
          "type": "string"
        },
        "attribution": {
          "type": "string"
        },
        "link_rule": {
          "type": "string"
        },
        "keep_ids_rule": {
          "type": "string"
        },
        "no_endorsement": {
          "type": "string"
        },
        "license_url": {
          "type": "string",
          "format": "uri"
        },
        "machine_url": {
          "type": "string",
          "format": "uri"
        }
      },
      "additionalProperties": true
    }
  }
}