{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mashprime-dev/json-schema/mashprime-dev-post-detail-schema.json",
  "title": "PostDetail",
  "description": "A published blog post with its full markdown text.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mashprime-dev-openapi.json#/components/schemas/PostDetail",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string",
      "description": "URL-safe identifier; use with GET /api/v1/posts/{slug}.",
      "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
    },
    "title": {
      "type": "string",
      "description": "Post title."
    },
    "description": {
      "type": "string",
      "description": "One- or two-sentence summary of the post."
    },
    "date": {
      "type": "string",
      "description": "Publication date (YYYY-MM-DD).",
      "format": "date"
    },
    "url": {
      "type": "string",
      "description": "Canonical HTML URL of the post.",
      "format": "uri"
    },
    "markdown_url": {
      "type": "string",
      "description": "URL of the post's raw markdown.",
      "format": "uri"
    },
    "markdown": {
      "type": "string",
      "description": "Full post as markdown, starting with a `# Title` heading."
    }
  },
  "required": [
    "slug",
    "title",
    "description",
    "date",
    "url",
    "markdown_url",
    "markdown"
  ],
  "additionalProperties": false
}