{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/brixsignage-com/json-schema/brixsignage-com-parsed-feed-schema.json",
  "title": "ParsedFeed",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/brixsignage-com-feeds-api-openapi.yml#/components/schemas/ParsedFeed",
  "type": "object",
  "properties": {
    "source": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The feed's title."
        },
        "handle": {
          "type": "string",
          "description": "The feed URL's host."
        },
        "link": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "description": "The site link the feed gives."
        }
      },
      "required": [
        "name",
        "handle",
        "link"
      ]
    },
    "articles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": "string",
            "description": "Plain-text summary. Can be empty."
          },
          "body": {
            "type": "string",
            "description": "Plain-text body; the description when the feed has only one."
          },
          "url": {
            "type": "string",
            "description": "The article's link."
          },
          "image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "imageCredit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "author": {
            "type": "string",
            "description": "Empty when the feed names no author."
          },
          "publishedAt": {
            "type": "string",
            "description": "A relative phrase made at fetch time (`2 hours ago`, `Yesterday`)."
          },
          "publishedIso": {
            "anyOf": [
              {
                "type": "string",
                "description": "ISO-8601 timestamp (UTC)."
              },
              {
                "type": "null"
              }
            ],
            "description": "The publish time, or null when the feed gives no date that can be read."
          },
          "readTime": {
            "type": "string",
            "description": "Reading-time estimate (`1 min read`)."
          },
          "category": {
            "type": "string",
            "description": "The first category, or empty."
          }
        },
        "required": [
          "id",
          "title",
          "description",
          "body",
          "url",
          "image",
          "imageCredit",
          "author",
          "publishedAt",
          "publishedIso",
          "readTime",
          "category"
        ]
      }
    }
  },
  "required": [
    "source",
    "articles"
  ]
}