{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aligned-news/refs/heads/main/json-schema/aligned-news-story-schema.json",
  "title": "Story",
  "description": "An Aligned News story.",
  "type": "object",
  "properties": {
    "id": { "type": "string", "format": "uuid" },
    "title": { "type": "string" },
    "slug": { "type": "string" },
    "section": { "type": "string", "description": "Section slug." },
    "summary": { "type": "string" },
    "body": { "type": "string", "description": "Full story body. Returned by single-story responses." },
    "url": { "type": "string", "format": "uri" },
    "tags": { "type": "array", "items": { "type": "string" } },
    "publishedAt": { "type": "string", "format": "date-time" }
  },
  "required": ["id", "title"]
}
