{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hubvibe-io-com/json-schema/hubvibe-io-com-result-schema.json",
  "title": "Result",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hubvibe-io-com-openapi.json#/components/schemas/Result",
  "type": "object",
  "properties": {
    "query": {
      "type": [
        "string",
        "null"
      ],
      "description": "Topic searched, as given; null when only a symbol was asked."
    },
    "symbol": {
      "type": [
        "string",
        "null"
      ],
      "description": "Ticker whose company name was searched; null when none."
    },
    "language": {
      "type": [
        "string",
        "null"
      ],
      "description": "BCP-47 language asked for; null when none."
    },
    "language_filter": {
      "type": [
        "string",
        "null"
      ],
      "description": "Language the articles were limited to; null when every language was searched."
    },
    "sources_searched": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Search id."
      },
      "description": "Searches this call ran."
    },
    "sources_ok": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "Search id."
      },
      "description": "Searches that answered."
    },
    "sources_failed": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "description": "Search id."
          },
          "reason": {
            "type": "string",
            "description": "Why it did not answer this call."
          }
        },
        "required": [
          "source",
          "reason"
        ],
        "description": "A search that failed for this call."
      },
      "description": "Searches that did not answer, with the reason; never silently dropped."
    },
    "articles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "description": "Headline in its original language."
          },
          "url": {
            "type": "string",
            "description": "The publisher's article link."
          },
          "source_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Publisher domain."
          },
          "source_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Publisher site."
          },
          "published_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When GDELT first saw it (UTC, 15-minute batches)."
          },
          "summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "Summary; GDELT carries none, so null."
          },
          "language": {
            "type": [
              "string",
              "null"
            ],
            "description": "Article language (BCP-47)."
          },
          "feed": {
            "type": "string",
            "enum": [
              "gdelt"
            ],
            "description": "Which source it came from."
          }
        },
        "required": [
          "title",
          "url",
          "source_name",
          "source_url",
          "published_at",
          "summary",
          "language",
          "feed"
        ],
        "description": "One article."
      },
      "description": "Articles, newest first, duplicates by title removed."
    },
    "article_count": {
      "type": "integer",
      "description": "Articles returned."
    },
    "limit": {
      "type": "integer",
      "description": "Most articles asked for."
    },
    "since_hours": {
      "type": "integer",
      "description": "Window searched, in hours."
    },
    "attribution": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "Required citation."
        },
        "url": {
          "type": "string",
          "description": "Required link."
        }
      },
      "required": [
        "text",
        "url"
      ],
      "description": "The citation GDELT's licence requires with every use."
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string",
        "description": "A caveat."
      },
      "description": "Caveats; empty when none."
    },
    "checked_at": {
      "type": "string",
      "format": "date-time",
      "description": "When this node read the source (UTC). Nothing here is cached."
    }
  },
  "required": [
    "query",
    "symbol",
    "language",
    "language_filter",
    "sources_searched",
    "sources_ok",
    "sources_failed",
    "articles",
    "article_count",
    "limit",
    "since_hours",
    "attribution",
    "notes",
    "checked_at"
  ]
}