{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/monerometrics-net/json-schema/monerometrics-net-news-response-schema.json",
  "title": "NewsResponse",
  "description": "Monero news from three sources, each item labelled with the one it came from.\n\nThe project's own blog for releases and announcements, Monero Observer for\nthe day-to-day of the ecosystem, and the GitHub releases, which often land\nbefore the site announces them. Each source only gets a few slots: the\nObserver publishes several times a day and would otherwise fill the banner\non its own. Items carry their date — a banner that looks live while showing\na month-old entry is worse than no banner.\n\nFetched server-side and cached, so a visitor's browser never contacts any\nof these sites and no IP leaks to a third party.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/monerometrics-net-openapi.json#/components/schemas/NewsResponse",
  "properties": {
    "sources": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Sources",
      "default": [
        "getmonero.org",
        "monero.observer",
        "github.com"
      ]
    },
    "items": {
      "items": {
        "$ref": "#/$defs/NewsItem"
      },
      "type": "array",
      "title": "Items",
      "default": []
    },
    "fetched_unix": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Fetched Unix"
    },
    "stale": {
      "type": "boolean",
      "title": "Stale",
      "default": false
    }
  },
  "type": "object",
  "$defs": {
    "NewsItem": {
      "properties": {
        "id": {
          "type": "string",
          "title": "Id"
        },
        "source": {
          "type": "string",
          "title": "Source",
          "default": "getmonero"
        },
        "title": {
          "type": "string",
          "title": "Title"
        },
        "url": {
          "type": "string",
          "title": "Url"
        },
        "published_unix": {
          "type": "integer",
          "title": "Published Unix"
        },
        "categories": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Categories",
          "default": []
        }
      },
      "type": "object",
      "required": [
        "id",
        "title",
        "url",
        "published_unix"
      ],
      "title": "NewsItem"
    }
  }
}