{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thecoop-media/json-schema/thecoop-media-article-schema.json",
  "title": "Article",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecoop-media-data-openapi.yml#/components/schemas/Article",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "article"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "Canonical URL. Cite this."
    },
    "title": {
      "type": "string"
    },
    "excerpt": {
      "type": "string"
    },
    "topic": {
      "type": "string"
    },
    "format": {
      "type": "string"
    },
    "published_at": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO 8601 date or date-time."
        },
        {
          "type": "null"
        }
      ]
    },
    "checked_at": {
      "anyOf": [
        {
          "type": "string",
          "description": "ISO 8601 date or date-time."
        },
        {
          "type": "null"
        }
      ]
    },
    "author": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "slug": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": {}
    },
    "sponsored": {
      "type": "boolean"
    },
    "disclosure": {
      "description": "Sponsorship or other disclosure, when one applies.",
      "type": "string"
    },
    "body": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string"
          }
        },
        "required": [
          "kind"
        ],
        "additionalProperties": {}
      },
      "description": "Article text as ordered blocks: paragraph, heading, quote or list."
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "checked_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "ISO 8601 date or date-time."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "label",
          "url"
        ],
        "additionalProperties": {},
        "description": "A public source behind a record or fact."
      }
    }
  },
  "required": [
    "type",
    "slug",
    "url",
    "title",
    "body",
    "sources"
  ],
  "additionalProperties": {}
}