{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bithot-news/json-schema/bithot-news-dailies-response-schema.json",
  "title": "DailiesResponse",
  "x-generated": "2026-11-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bithot-news-openapi.json#/components/schemas/DailiesResponse",
  "type": "object",
  "required": [
    "schemaVersion",
    "count",
    "items"
  ],
  "properties": {
    "schemaVersion": {
      "const": 1
    },
    "count": {
      "type": "integer",
      "minimum": 0
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DailyEntry"
      }
    }
  },
  "$defs": {
    "Attribution": {
      "type": "object",
      "description": "Machine-readable BITHOT provenance for traceability. Retain it where technically feasible. Attribution alone is not authorization; see the public terms.",
      "required": [
        "name",
        "url"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "DailyEntry": {
      "type": "object",
      "required": [
        "date",
        "generatedAt",
        "leadTitle",
        "leadParagraph",
        "links"
      ],
      "properties": {
        "date": {
          "type": "string",
          "format": "date"
        },
        "generatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "leadTitle": {
          "type": [
            "string",
            "null"
          ]
        },
        "leadParagraph": {
          "type": [
            "string",
            "null"
          ]
        },
        "links": {
          "type": "object",
          "required": [
            "aihot"
          ],
          "properties": {
            "aihot": {
              "type": "string",
              "format": "uri"
            }
          }
        },
        "attribution": {
          "$ref": "#/$defs/Attribution"
        }
      }
    }
  }
}