{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blawgy-com/json-schema/blawgy-com-public-post-schema.json",
  "title": "PublicPost",
  "description": "A published post. Fields without a value are left out.",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blawgy-com-openapi.json#/components/schemas/PublicPost",
  "type": "object",
  "required": [
    "id"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The post id. Works as {slugOrId}."
    },
    "title": {
      "type": "string"
    },
    "blogTitle": {
      "type": "string",
      "description": "The title as written on the article."
    },
    "slug": {
      "type": "string"
    },
    "blogContent": {
      "type": "string",
      "description": "The article body (HTML). On the list only with include=content."
    },
    "articleSummary": {
      "type": "string",
      "description": "A short summary of the article. On the list only with include=content."
    },
    "metaDescription": {
      "type": "string"
    },
    "metaKeywords": {
      "type": "string"
    },
    "keywords": {
      "description": "The keywords the article targets (usually an array of strings)."
    },
    "resources": {
      "description": "Sources and references the article cites."
    },
    "imageUrl": {
      "type": "string",
      "description": "The featured image."
    },
    "imageDescription": {
      "type": "string",
      "description": "Alt text for the featured image."
    },
    "publishDate": {
      "type": "string",
      "format": "date-time"
    },
    "lastUpdated": {
      "type": "string",
      "format": "date-time",
      "description": "When the content last changed."
    },
    "published": {
      "type": "boolean"
    },
    "blogStatus": {
      "type": "string",
      "enum": [
        "published"
      ]
    },
    "category": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "The live URL, once known."
    },
    "publishedUrl": {
      "type": "string",
      "description": "Same as url."
    }
  },
  "additionalProperties": false
}