{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hantamonitor.com/schemas/live.schema.json",
  "title": "Hanta Monitor Live Candidate Artifact",
  "type": "object",
  "additionalProperties": true,
  "required": [
    "schema_version",
    "generated_at",
    "artifact_version",
    "generator",
    "status",
    "source_status",
    "summary",
    "sources",
    "items"
  ],
  "properties": {
    "schema_version": { "const": 1 },
    "generated_at": { "type": "string", "format": "date-time" },
    "artifact_version": { "type": "string", "minLength": 1 },
    "generator": { "type": "string", "minLength": 1 },
    "status": { "type": "string", "minLength": 1 },
    "source_status": { "type": "object" },
    "input_artifacts": { "type": "object" },
    "summary": { "type": "object" },
    "sources": {
      "type": "array",
      "items": { "type": "object" }
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "id",
          "title",
          "url"
        ],
        "properties": {
          "id": { "type": "string", "minLength": 1 },
          "title": { "type": "string", "minLength": 1 },
          "url": { "type": "string", "format": "uri" },
          "source": { "type": "string" },
          "trust_tier": { "type": "string" },
          "content_class": { "type": "string" },
          "status": { "type": "string" },
          "published_at": { "type": "string", "format": "date-time" },
          "fetched_at": { "type": "string", "format": "date-time" },
          "discovered_at": { "type": "string", "format": "date-time" },
          "location": { "type": "string" },
          "summary": { "type": "string" }
        }
      }
    }
  }
}
