{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presentofai-com/json-schema/presentofai-com-news-list-schema.json",
  "title": "NewsList",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presentofai-com-openapi.json#/components/schemas/NewsList",
  "type": "object",
  "required": [
    "source",
    "attribution",
    "license",
    "url",
    "news",
    "total"
  ],
  "properties": {
    "source": {
      "type": "string",
      "const": "Present of AI"
    },
    "attribution": {
      "type": "string",
      "description": "Data from presentofai.com, CC BY 4.0, link back to the page you use"
    },
    "license": {
      "type": "string",
      "const": "CC BY 4.0"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Canonical presentofai.com page for this response. Link back to it."
    },
    "count": {
      "type": "integer"
    },
    "total": {
      "type": "integer"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "news": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NewsItem"
      }
    }
  },
  "$defs": {
    "NewsItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "date": {
          "type": "string"
        },
        "realm": {
          "type": "string",
          "enum": [
            "virtual",
            "terrestrial",
            "space"
          ]
        },
        "title": {
          "type": "string"
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        },
        "actor": {
          "type": [
            "string",
            "null"
          ]
        },
        "publisher": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "page_url": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}