{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agenticfinancegraph-com/json-schema/agenticfinancegraph-com-flag-schema.json",
  "title": "Flag",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agenticfinancegraph-com-openapi.json#/components/schemas/Flag",
  "type": "object",
  "required": [
    "id",
    "t",
    "kind",
    "severity",
    "title",
    "source_url"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "t": {
      "type": "string",
      "format": "date-time",
      "description": "The x position on the chart"
    },
    "kind": {
      "type": "string",
      "enum": [
        "launch",
        "incident",
        "regulation",
        "rail",
        "vault",
        "market"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "info",
        "notable",
        "major"
      ]
    },
    "title": {
      "type": "string",
      "maxLength": 60
    },
    "body": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 400
    },
    "source_url": {
      "type": "string",
      "format": "uri",
      "description": "Required https URL. No flag exists without a source."
    },
    "producer": {
      "type": "string"
    },
    "metrics": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Which series the event is about"
    }
  }
}